Jump to content

v2.0.2 won't update to v2.0.3 b187


datihein

Recommended Posts

Alfred detects that and update is required, so I click the update button and it gets downloaded. Then I click the update and relaunch and I see (in Activity Monitor) that Alfred 2 gets stopped and restarted. But the version number is unchanged and the file dates in the app directory haven't changed.  Eventually the "update available" dialog reappears again ... and the same behavior will repeat itself ad infinitum.

 

--

Dave Hein

Link to comment
Share on other sites

Alfred detects that and update is required, so I click the update button and it gets downloaded. Then I click the update and relaunch and I see (in Activity Monitor) that Alfred 2 gets stopped and restarted. But the version number is unchanged and the file dates in the app directory haven't changed.  Eventually the "update available" dialog reappears again ... and the same behavior will repeat itself ad infinitum.

 

--

Dave Hein

 

There may be a permissions issue on trying to actually overwrite the Alfred 2 app. I've added a note to check this during the upgrade process, but for now, if you download 2.0.3 from http://alfredapp.com then things should be fine :)

 

Cheers,

Andrew

Link to comment
Share on other sites

Yes, Console does show a permissions problem:

 

4/19/13 8:56:17.102 PM Alfred Assistant[567]: Update Alfred
4/19/13 8:56:17.176 PM Alfred Assistant[567]: Unzipping '/Users/davehein/Library/Caches/com.runningwithcrayons.Alfred-2/Updates/Alfred_2.0.3_187.zip'
4/19/13 8:56:17.953 PM Alfred Assistant[567]: Looking for instances of Alfred to terminate...
4/19/13 8:56:17.963 PM Alfred Assistant[567]: 1 Alfred related apps found, great!
4/19/13 8:56:17.965 PM Alfred Assistant[567]: Attempting to terminate '/Applications/Alfred 2.app'
4/19/13 8:56:18.589 PM Alfred Assistant[567]: Working with app name 'Alfred 2.app'
4/19/13 8:56:18.759 PM Alfred Assistant[567]: Moving Alfred from '/private/var/folders/66/845n8xtc8v5f19008k8y4ry00000gn/T/TemporaryItems/(A Document Being Saved By Alfred Assistant)/Alfred 2.app' to '/Applications/Alfred 2.app'
4/19/13 8:56:18.760 PM Alfred Assistant[567]: Unable to replace: You don’t have permission to save the file “Alfred 2.app”.
4/19/13 8:56:18.760 PM Alfred Assistant[567]: Cleaning up temp folder
4/19/13 8:56:18.784 PM Alfred Assistant[567]: Restarting '/Applications/Alfred 2.app'
4/19/13 8:56:18.917 PM Alfred Assistant[567]: Deleting update zip
 

 

The "Alfred 2.app" folder is owned by "datihein:staff" which is a normal user account, and is probably the account I used when I installed Alfred 2 (I have Alfred 1 on the system as well). I'm certain I was prompted for an administrative userid (which would be required to write into the /Applications folder).  My admin account is "davehein" and most software gets installed as "davehein:admin" or "davehein:davehein". (aside: on my system "root" belongs to the "admin" group).

 

So, I naively did a "sudo chown -R davehein:admin Alfred\ 2.app" and tried the update again. This time it worked.

 

--

Dave Hein

Link to comment
Share on other sites

Yes, Console does show a permissions problem:

 

4/19/13 8:56:17.102 PM Alfred Assistant[567]: Update Alfred

4/19/13 8:56:17.176 PM Alfred Assistant[567]: Unzipping '/Users/davehein/Library/Caches/com.runningwithcrayons.Alfred-2/Updates/Alfred_2.0.3_187.zip'

4/19/13 8:56:17.953 PM Alfred Assistant[567]: Looking for instances of Alfred to terminate...

4/19/13 8:56:17.963 PM Alfred Assistant[567]: 1 Alfred related apps found, great!

4/19/13 8:56:17.965 PM Alfred Assistant[567]: Attempting to terminate '/Applications/Alfred 2.app'

4/19/13 8:56:18.589 PM Alfred Assistant[567]: Working with app name 'Alfred 2.app'

4/19/13 8:56:18.759 PM Alfred Assistant[567]: Moving Alfred from '/private/var/folders/66/845n8xtc8v5f19008k8y4ry00000gn/T/TemporaryItems/(A Document Being Saved By Alfred Assistant)/Alfred 2.app' to '/Applications/Alfred 2.app'

4/19/13 8:56:18.760 PM Alfred Assistant[567]: Unable to replace: You don’t have permission to save the file “Alfred 2.app”.

4/19/13 8:56:18.760 PM Alfred Assistant[567]: Cleaning up temp folder

4/19/13 8:56:18.784 PM Alfred Assistant[567]: Restarting '/Applications/Alfred 2.app'

4/19/13 8:56:18.917 PM Alfred Assistant[567]: Deleting update zip

 

 

The "Alfred 2.app" folder is owned by "datihein:staff" which is a normal user account, and is probably the account I used when I installed Alfred 2 (I have Alfred 1 on the system as well). I'm certain I was prompted for an administrative userid (which would be required to write into the /Applications folder).  My admin account is "davehein" and most software gets installed as "davehein:admin" or "davehein:davehein". (aside: on my system "root" belongs to the "admin" group).

 

So, I naively did a "sudo chown -R davehein:admin Alfred\ 2.app" and tried the update again. This time it worked.

 

--

Dave Hein

 

Thank you for the extremely detailed breakdown - I should be able to fix this for a future release! :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...