Page 1 of 1

Removing apps from Trash Failing

PostPosted: Wed Jun 06, 2012 1:50 pm
by alex
Hi,

I've set Hazel to clean up files sitting in the Trash for more than 3 days. Anyways I've noticed that it fails to complete this action when the file is an application previously installed from MacAppStore.

The relevant part of the log:

Code: Select all
2012-06-06 20:46:33.243 hazelworker[8821] File <APPNAME>.app has been sitting in the trash for too long. Purging.
2012-06-06 20:46:33.243 hazelworker[8821] Removing <APPNAME>.app.
2012-06-06 20:46:33.250 hazelworker[8821] Could not remove <APPNAME>.app: Error Domain=NSCocoaErrorDomain Code=513 "“<APPNAME>.app” couldn’t be removed because you don’t have permission to access it." UserInfo=0x10253a5d0 {NSFilePath=/Users/alex/.Trash/<APPNAME>.app, NSUserStringVariant=(
    Remove
), NSUnderlyingError=0x10253a4f0 "The operation couldn’t be completed. Permission denied"}
2012-06-06 20:46:33.250 hazelworker[8821] [Error] Could not remove file: File <APPNAME>.app could not be removed from the Trash.


I'm logged in with the user the app belonged to (and where the .Trash folder resides), so I'm not really sure why this is a permission issue. Any ideas?

Re: Removing apps from Trash Failing

PostPosted: Wed Jun 06, 2012 2:25 pm
by a_freyer
Can you manually remove these items ?

Re: Removing apps from Trash Failing

PostPosted: Thu Jun 07, 2012 5:40 am
by alex
Yes, these items are manually removable :-) (they are not apps for which Empty Trash results in one of those locked messages).

Re: Removing apps from Trash Failing

PostPosted: Thu Jun 07, 2012 5:46 pm
by Mr_Noodle
If the item is still there, see if you have read permissions on it. Also check the permissions on .Trash itself. It's usually invisible but in Finder if you do "Go to folder" and enter ~/.Trash it should show up. See that you have full permissions (including execute) on this folder.

Re: Removing apps from Trash Failing

PostPosted: Fri Jun 08, 2012 9:57 am
by alex
On ~/.Trash I do have the right permissions:

1. Finder info shows the Read & Write privilege for my account.
2. drwx------ 26 alex staff 884 Jun 8 16:44 .Trash/

Unfortunately I don't have any apps right now in the Trash as I've tested if manually triggering Empty Trash encounters any errors (it didn't)