Page 1 of 1
Hazel not emptying trash or App Sweeping

Posted:
Wed Jul 14, 2021 3:54 pm
by JasonNewton
I've noticed in the past few days that Hazel is not emptying the trash and doesn't offer to remove support files when I drag an application to the trash.
I've tried rebooting to no avail. I'm on Big Sur 11.4.
Any advice appreciated.
Re: Hazel not emptying trash or App Sweeping

Posted:
Thu Jul 15, 2021 10:29 am
by Mr_Noodle
Check the logs via Help->View Logs.
Search for a file that is not being emptied and post/email in the relevant log excerpt.
Re: Hazel not emptying trash or App Sweeping

Posted:
Thu Jul 15, 2021 12:53 pm
by JasonNewton
This is the relevant part (I think), in relation to the trash not emptying.
- Code: Select all
2021-07-11 01:10:15.358 hazelworker[29860] Running worker (v5.0.7) for folder with identifier: trash.
2021-07-11 01:10:15.359 hazelworker[29860] ###main load address: 0x104bf0000
2021-07-11 01:10:15.359 hazelworker[29860] ###Hazel Core load address: 0x104c34000
2021-07-11 01:10:15.359 hazelworker[29860] ###Noodle load address: 0x104ea4000
2021-07-11 01:10:15.359 hazelworker[29860] ###CK load address: 0x104d08000
2021-07-11 01:10:15.369 hazelworker[29860] Processing folder Trash
2021-07-11 01:10:16.469 hazelworker[29860] Received error while processing file /Users/jasonnewton/.Trash: Error Domain=NSCocoaErrorDomain Code=257 "The file “Trash” couldn’t be opened because you don’t have permission to view it." UserInfo={NSURL=file:///Users/jasonnewton/.Trash, NSFilePath=/Users/jasonnewton/.Trash, NSUnderlyingError=0x14b734f40 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}
2021-07-11 01:10:16.471 hazelworker[29860] Received error while processing file /System/Volumes/xarts/.Trashes/501: Error Domain=NSCocoaErrorDomain Code=257 "The file “Trash” couldn’t be opened because you don’t have permission to view it." UserInfo={NSURL=file:///System/Volumes/xarts/.Trashes/501, NSFilePath=/System/Volumes/xarts/.Trashes/501, NSUnderlyingError=0x14b75e540 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}
2021-07-11 01:10:16.473 hazelworker[29860] Done processing folder Trash
Re: Hazel not emptying trash or App Sweeping

Posted:
Thu Jul 15, 2021 12:55 pm
by JasonNewton
And when I drop an Application in the Bin, I see this in the logs.
- Code: Select all
2021-07-15 17:54:53.893 hazelworker[87600] Running worker (v5.0.7) for folder with identifier: trash.
2021-07-15 17:54:53.894 hazelworker[87600] ###main load address: 0x10093c000
2021-07-15 17:54:53.894 hazelworker[87600] ###Hazel Core load address: 0x100978000
2021-07-15 17:54:53.894 hazelworker[87600] ###Noodle load address: 0x100a8c000
2021-07-15 17:54:53.894 hazelworker[87600] ###CK load address: 0x100a44000
2021-07-15 17:54:53.901 hazelworker[87600] Processing folder Trash
2021-07-15 17:54:54.965 hazelworker[87600] Received error while processing file /Users/jasonnewton/.Trash: Error Domain=NSCocoaErrorDomain Code=257 "The file “Trash” couldn’t be opened because you don’t have permission to view it." UserInfo={NSURL=file:///Users/jasonnewton/.Trash, NSFilePath=/Users/jasonnewton/.Trash, NSUnderlyingError=0x12a70c1d0 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}
2021-07-15 17:54:54.969 hazelworker[87600] Received error while processing file /System/Volumes/xarts/.Trashes/501: Error Domain=NSCocoaErrorDomain Code=257 "The file “Trash” couldn’t be opened because you don’t have permission to view it." UserInfo={NSURL=file:///System/Volumes/xarts/.Trashes/501, NSFilePath=/System/Volumes/xarts/.Trashes/501, NSUnderlyingError=0x12a610100 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}
2021-07-15 17:54:54.971 hazelworker[87600] Done processing folder Trash
2021-07-15 17:54:57.952 hazelworker[87605] Running worker (v5.0.7) for folder with identifier: trash.
2021-07-15 17:54:57.953 hazelworker[87605] ###main load address: 0x100e4c000
2021-07-15 17:54:57.953 hazelworker[87605] ###Hazel Core load address: 0x100e80000
2021-07-15 17:54:57.953 hazelworker[87605] ###Noodle load address: 0x100f9c000
2021-07-15 17:54:57.953 hazelworker[87605] ###CK load address: 0x100f58000
2021-07-15 17:54:57.968 hazelworker[87605] Processing folder Trash
2021-07-15 17:54:59.042 hazelworker[87605] Received error while processing file /Users/jasonnewton/.Trash: Error Domain=NSCocoaErrorDomain Code=257 "The file “Trash” couldn’t be opened because you don’t have permission to view it." UserInfo={NSURL=file:///Users/jasonnewton/.Trash, NSFilePath=/Users/jasonnewton/.Trash, NSUnderlyingError=0x134667080 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}
2021-07-15 17:54:59.047 hazelworker[87605] Received error while processing file /System/Volumes/xarts/.Trashes/501: Error Domain=NSCocoaErrorDomain Code=257 "The file “Trash” couldn’t be opened because you don’t have permission to view it." UserInfo={NSURL=file:///System/Volumes/xarts/.Trashes/501, NSFilePath=/System/Volumes/xarts/.Trashes/501, NSUnderlyingError=0x134643680 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}
2021-07-15 17:54:59.048 hazelworker[87605] Done processing folder Trash
Re: Hazel not emptying trash or App Sweeping

Posted:
Thu Jul 15, 2021 12:59 pm
by JasonNewton
I should add that in every other aspect, Hazel works absolutely perfectly. It's just the issue with App Sweep and Trash not automatically deleting (which in my case is 1 hour).
Re: Hazel not emptying trash or App Sweeping

Posted:
Fri Jul 16, 2021 8:11 am
by Mr_Noodle
It looks like privacy protections kicking in. Hazel should have prompted you to give it full disk access. If you didn't do that then do the following:
- Launch System Preferences
- Click on Security & Privacy
- Select the Privacy tab
- Go to Full Disk Access.
- Click on the lock in the lower left to allow changes.
- If Hazel is in the list, check it. If not, then add it.
Re: Hazel not emptying trash or App Sweeping

Posted:
Wed Jul 21, 2021 2:57 pm
by JasonNewton
Apologies for the long delay replying. After following your instructions, everything is back to normal.
Thanks again.
Re: Hazel not emptying trash or App Sweeping

Posted:
Sat Aug 14, 2021 12:58 pm
by JasonNewton
There is an issue with this. When I recently rebooted, Hazel lost Full Disk Access again. When I re-added it, it empties the trash but now I have multiple instances of hazel running in the activity monitor.
Re: Hazel not emptying trash or App Sweeping

Posted:
Mon Aug 16, 2021 10:13 am
by Mr_Noodle
Hazel or hazelworker? The latter is normal as there is one process per folder.