Page 1 of 1

Can NOT Open .Trash for Box and OneDrive

PostPosted: Tue Apr 08, 2025 9:03 am
by nlucchesi
I'm getting these errors for cloud services Box and OneDrive running Hazel 6.0.4 on macOS 15.3.2 Sequoia on an M4 Pro Mac mini:


Code: Select all
2025-04-08 07:42:08.187 hazelworker[1877] Processing folder Downloads

2025-04-08 07:42:09.251 hazelworker[1878] Received error while processing file /Users/nello/Library/CloudStorage/Box-Box/.Trash: Error Domain=NSCocoaErrorDomain Code=256 "The file “.Trash” couldn’t be opened." UserInfo={NSURL=file:///Users/nello/Library/CloudStorage/Box-Box/.Trash, NSFilePath=/Users/nello/Library/CloudStorage/Box-Box/.Trash, NSUnderlyingError=0x600003c86100 {Error Domain=NSPOSIXErrorDomain Code=11 "Resource deadlock avoided"}}

2025-04-08 07:42:09.253 hazelworker[1878] Received error while processing file /Users/nello/Library/CloudStorage/OneDrive-Personal/.Trash: Error Domain=NSCocoaErrorDomain Code=256 "The file “.Trash” couldn’t be opened." UserInfo={NSURL=file:///Users/nello/Library/CloudStorage/OneDrive-Personal/.Trash, NSFilePath=/Users/nello/Library/CloudStorage/OneDrive-Personal/.Trash, NSUnderlyingError=0x600003c96040 {Error Domain=NSPOSIXErrorDomain Code=11 "Resource deadlock avoided"}}

2025-04-08 07:42:09.253 hazelworker[1878] Done processing folder Trash
2025-04-08 07:42:10.206 hazelworker[1877] Done processing folder Downloads


The only checked options in Hazel → Settings → Trash are:
  • Enable App Sweep, and
  • Enable multi-user sweep

Re: Can NOT Open .Trash for Box and OneDrive

PostPosted: Tue Apr 08, 2025 10:08 am
by Mr_Noodle
Unfortunately, it's the generic cloud services error that the operating system throws. It would look to only affect handling OneDrive trash files. Do you actually have any files in that trash?

Re: Can NOT Open .Trash for Box and OneDrive

PostPosted: Tue Apr 08, 2025 1:03 pm
by nlucchesi
Mr_Noodle wrote:Do you actually have any files in that trash?


I didn't think so but Terminal seems to indicate otherwise:

Code: Select all
nello@miniMe OneDrive % ls -la
total 2552
drwx------@    10 nello  staff      320 Apr  8 07:36 .
drwxr-xr-x+     6 nello  staff      192 Jan 19 18:56 ..
-rwx------@     1 nello  staff       63 Apr  8 07:36 .849C9593-D756-4E56-8D6E-42412F2A707B
-rw-r--r--@     1 nello  staff     6148 Apr  8 11:29 .DS_Store
drwx------@ 65535 nello  staff  2097120 Jan 17 15:54 .Trash
drwx------      3 nello  staff       96 Jan 30 18:07 Desktop
drwx------      2 nello  staff       64 Jan 30 18:31 Documents
drwx------      2 nello  staff       64 Jan 17 15:55 Email attachments
-rw-r--r--@     1 nello  staff        0 Apr  8 07:36 Icon?
drwx------      6 nello  staff      192 Jan 17 15:57 Pictures
nello@miniMe OneDrive %



However, I Terminal times out when I try to list the contents of .Trash:

Code: Select all
nello@miniMe OneDrive % cd .Trash
nello@miniMe .Trash % ls -la
total 0
ls: fts_read: Operation timed out
nello@miniMe .Trash % ls
ls: fts_read: Operation timed out
nello@miniMe .Trash %


I have a regular OneDrive account, NOT Office365.

When I log into https://onedrive.live.com, this web interface lists no files whatsoever in the Recycle bin.

Re: Can NOT Open .Trash for Box and OneDrive

PostPosted: Wed Apr 09, 2025 10:00 am
by Mr_Noodle
The fact that it times out is not a good sign but again, cloud services are super flaky. If you don't have any files there, then that error isn't harmless for the moment but if there are files that get put in there then it might be worth revisiting.