Hazel Suddenly Won't Move Files

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Hazel Suddenly Won't Move Files Wed Feb 02, 2022 1:25 pm • by brandonhull
I've had a rule in place for a couple of years to move any photo from my Dropbox Camera Uploads to my external Samsung T5 drive. It has always worked like a charm and I've never had to edit it. For some reason, it no longer works right.

I'll get a message that says the file can't be moved, and sure enough it doesn't move. But here's where it gets interesting.

If I then manually drag the file from that Camera Uploads folder to the destination, THEN the rule suddenly activates and it works. Any thoughts on what might be causing the issue, and why it would just now start happening?
brandonhull
 
Posts: 4
Joined: Wed Feb 02, 2022 1:19 pm

Re: Hazel Suddenly Won't Move Files Thu Feb 03, 2022 9:51 am • by Mr_Noodle
Can you check the logs and post the full error you see there?
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Hazel Suddenly Won't Move Files Thu Feb 03, 2022 10:02 am • by brandonhull
Mr_Noodle wrote:Can you check the logs and post the full error you see there?


Here you go:

2022-02-03 13:59:54.442 hazelworker[15263] Error moving file from /Users/brandonhull/Library/CloudStorage/Dropbox/Camera Uploads/2022-02-03 13.58.57.png to /Volumes/Samsung T5/Personal/2022-02-03 13.58.57.png: Error Domain=NSPOSIXErrorDomain Code=11 "Resource deadlock avoided"
2022-02-03 13:59:54.443 hazelworker[15263] [Error] Move failed: Could not move file 2022-02-03 13.58.57.png from folder /Users/brandonhull/Library/CloudStorage/Dropbox/Camera Uploads to folder /Volumes/Samsung T5/Personal/2022-02-03 13.58.57.png.
2022-02-03 13:59:54.443 hazelworker[15263] 2022-01-18 08.39.08.jpg: Rule Move Photos matched.
2022-02-03 13:59:54.447 hazelworker[15263] Error moving file from /Users/brandonhull/Library/CloudStorage/Dropbox/Camera Uploads/2022-01-18 08.39.08.jpg to /Volumes/Samsung T5/Personal/2022-01-18 08.39.08.jpg: Error Domain=NSPOSIXErrorDomain Code=11 "Resource deadlock avoided"
2022-02-03 13:59:54.447 hazelworker[15263] [Error] Move failed: Could not move file 2022-01-18 08.39.08.jpg from folder /Users/brandonhull/Library/CloudStorage/Dropbox/Camera Uploads to folder /Volumes/Samsung T5/Personal/2022-01-18 08.39.08.jpg.
2022-02-03 13:59:54.447 hazelworker[15263] 2022-02-03 09.47.04.png: Rule Move Photos matched.
2022-02-03 13:59:54.448 hazelworker[15263] Error moving file from /Users/brandonhull/Library/CloudStorage/Dropbox/Camera Uploads/2022-02-03 09.47.04.png to /Volumes/Samsung T5/Personal/2022-02-03 09.47.04.png: Error Domain=NSPOSIXErrorDomain Code=11 "Resource deadlock avoided"
2022-02-03 13:59:54.448 hazelworker[15263] [Error] Move failed: Could not move file 2022-02-03 09.47.04.png from folder /Users/brandonhull/Library/CloudStorage/Dropbox/Camera Uploads to folder /Volumes/Samsung T5/Personal/2022-02-03 09.47.04.png.
2022-02-03 13:59:56.461 hazelworker[15263] 2022-02-03 13.58.57.png: Rule Move Photos matched.
2022-02-03 13:59:56.467 hazelworker[15263] Error moving file from /Users/brandonhull/Library/CloudStorage/Dropbox/Camera Uploads/2022-02-03 13.58.57.png to /Volumes/Samsung T5/Personal/2022-02-03 13.58.57.png: Error Domain=NSPOSIXErrorDomain Code=11 "Resource deadlock avoided"
2022-02-03 13:59:56.467 hazelworker[15263] [Error] Move failed: Could not move file 2022-02-03 13.58.57.png from folder /Users/brandonhull/Library/CloudStorage/Dropbox/Camera Uploads to folder /Volumes/Samsung T5/Personal/2022-02-03 13.58.57.png.
2022-02-03 13:59:56.468 hazelworker[15263] 2022-01-18 08.39.08.jpg: Rule Move Photos matched.
2022-02-03 13:59:56.472 hazelworker[15263] Error moving file from /Users/brandonhull/Library/CloudStorage/Dropbox/Camera Uploads/2022-01-18 08.39.08.jpg to /Volumes/Samsung T5/Personal/2022-01-18 08.39.08.jpg: Error Domain=NSPOSIXErrorDomain Code=11 "Resource deadlock avoided"
2022-02-03 13:59:56.472 hazelworker[15263] [Error] Move failed: Could not move file 2022-01-18 08.39.08.jpg from folder /Users/brandonhull/Library/CloudStorage/Dropbox/Camera Uploads to folder /Volumes/Samsung T5/Personal/2022-01-18 08.39.08.jpg.
2022-02-03 13:59:56.473 hazelworker[15263] 2022-02-03 09.47.04.png: Rule Move Photos matched.
2022-02-03 13:59:56.477 hazelworker[15263] Error moving file from /Users/brandonhull/Library/CloudStorage/Dropbox/Camera Uploads/2022-02-03 09.47.04.png to /Volumes/Samsung T5/Personal/2022-02-03 09.47.04.png: Error Domain=NSPOSIXErrorDomain Code=11 "Resource deadlock avoided"
2022-02-03 13:59:56.477 hazelworker[15263] [Error] Move failed: Could not move file 2022-02-03 09.47.04.png from folder /Users/brandonhull/Library/CloudStorage/Dropbox/Camera Uploads to folder /Volumes/Samsung T5/Personal/2022-02-03 09.47.04.png.
2022-02-03 14:00:00.484 hazelworker[15263] 2022-02-03 13.58.57.png: Rule Move Photos matched.
2022-02-03 14:00:00.488 hazelworker[15263] Error moving file from /Users/brandonhull/Library/CloudStorage/Dropbox/Camera Uploads/2022-02-03 13.58.57.png to /Volumes/Samsung T5/Personal/2022-02-03 13.58.57.png: Error Domain=NSPOSIXErrorDomain Code=11 "Resource deadlock avoided"
2022-02-03 14:00:00.488 hazelworker[15263] [Error] Move failed: Could not move file 2022-02-03 13.58.57.png from folder /Users/brandonhull/Library/CloudStorage/Dropbox/Camera Uploads to folder /Volumes/Samsung T5/Personal/2022-02-03 13.58.57.png.
2022-02-03 14:00:00.489 hazelworker[15263] 2022-01-18 08.39.08.jpg: Rule Move Photos matched.
2022-02-03 14:00:00.492 hazelworker[15263] Error moving file from /Users/brandonhull/Library/CloudStorage/Dropbox/Camera Uploads/2022-01-18 08.39.08.jpg to /Volumes/Samsung T5/Personal/2022-01-18 08.39.08.jpg: Error Domain=NSPOSIXErrorDomain Code=11 "Resource deadlock avoided"
2022-02-03 14:00:00.492 hazelworker[15263] [Error] Move failed: Could not move file 2022-01-18 08.39.08.jpg from folder /Users/brandonhull/Library/CloudStorage/Dropbox/Camera Uploads to folder /Volumes/Samsung T5/Personal/2022-01-18 08.39.08.jpg.
2022-02-03 14:00:00.493 hazelworker[15263] 2022-02-03 09.47.04.png: Rule Move Photos matched.
2022-02-03 14:00:00.497 hazelworker[15263] Error moving file from /Users/brandonhull/Library/CloudStorage/Dropbox/Camera Uploads/2022-02-03 09.47.04.png to /Volumes/Samsung T5/Personal/2022-02-03 09.47.04.png: Error Domain=NSPOSIXErrorDomain Code=11 "Resource deadlock avoided"
2022-02-03 14:00:00.497 hazelworker[15263] [Error] Move failed: Could not move file 2022-02-03 09.47.04.png from folder /Users/brandonhull/Library/CloudStorage/Dropbox/Camera Uploads to folder /Volumes/Samsung T5/Personal/2022-02-03 09.47.04.png.
2022-02-03 14:00:00.500 hazelworker[15263] Done processing folder Camera Uploads
2022-02-03 14:00:09.277 hazelworker[15264] Done processing folder Personal
brandonhull
 
Posts: 4
Joined: Wed Feb 02, 2022 1:19 pm

Re: Hazel Suddenly Won't Move Files Mon Feb 07, 2022 9:27 am • by Mr_Noodle
That's a new one for me. I'm wondering if it has to do with Dropbox. Do you have the files stored locally or are they in the cloud?
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Hazel Suddenly Won't Move Files Mon Feb 07, 2022 9:33 am • by brandonhull
Mr_Noodle wrote:That's a new one for me. I'm wondering if it has to do with Dropbox. Do you have the files stored locally or are they in the cloud?


They're stored locally in Dropbox, then I try to use Hazel to move them to my external drive. It's been working for so long. Frustrating that it suddenly doesn't.
brandonhull
 
Posts: 4
Joined: Wed Feb 02, 2022 1:19 pm

Re: Hazel Suddenly Won't Move Files Mon Feb 07, 2022 9:35 am • by Mr_Noodle
A quick search on that error seems to indicate the file isn't local. It might be worth double-checking that. Otherwise, it might be a Dropbox issue.

A test you can try is to use the same rules on a non-Dropbox folder and see if you get similar errors.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Hazel Suddenly Won't Move Files Tue Mar 29, 2022 7:53 am • by brandonhull
Mr_Noodle wrote:A quick search on that error seems to indicate the file isn't local. It might be worth double-checking that. Otherwise, it might be a Dropbox issue.

A test you can try is to use the same rules on a non-Dropbox folder and see if you get similar errors.


SOLVED!!

I realized that when my photos were syncing to my computer they were pushing the photos only to Dropbox in the cloud, not my local Mac. Understandably, Hazel couldn't move what it couldn't see. This all started when I switched from a paid Dropbox account to a downgraded free account. The syncing wasn't automatically happening. All good now.
brandonhull
 
Posts: 4
Joined: Wed Feb 02, 2022 1:19 pm

Re: Hazel Suddenly Won't Move Files Sun Apr 16, 2023 11:48 am • by PhilO
Just for info,

I just had the same issue as @brandonhull, but with mine the files were in the local dropbox folder but they were still not moving. I was also moving my dropbox camera uploads to a folder on an external Samsung T5 SSD. This had been working fine for years but then today I noticed the incoming folder on the SSD was empty and the last few weeks photos were all still stuck in dropbox. Hazel was showing the error message "The operation couldn’t be completed. resource deadlock avoided"

After a while messing around testing rules, to and from different folders I could see the issue was definitely only with the dropbox location. I then realised the cause.

Dropbox on the mac now stores it files in ~/Library/CloudStorage/Dropbox

My rules were previously setup with dropbox in its old location which I had in ~/Cloud Services/Dropbox/ on an older MacMini
I had recently upgraded my old mini to a new M2Pro Mini, and moved all my old rules over.

As I didn't want Dropbox hidden in the Library I had created an alias of ~/Library/CloudStorage/Dropbox which I had placed in ~/Cloud Services so everything looked the same as my old mini. I could see the files in dropbox okay and it looked like Hazel could as well, but Hazel just failed to moved them.

Using the "Check Status of the current rules" in Hazel correctly showed a list of my photos but all the files were showing the deadlock error. Similarly the Hazel log files were also showing the files with the correct path listed but again with the error.
Example Log entry
Code: Select all
2023-04-16 15:26:01.454 hazelworker[9284] Error moving file from /Users/phil/Library/CloudStorage/Dropbox/camera uploads/2023-04-16 15.05.54.jpg to /Volumes/SSD04_T5W/_Camera Uploads/_Incoming/2023-04-16 15.05.54.jpg: Error Domain=NSPOSIXErrorDomain Code=11 "Resource deadlock avoided"


I quickly realised that when I installed Dropbox on the new Mac Mini, Dropbox for Mac had forced the change in storage location and I had just created an alias and placed it in my usual location so dropbox would still appear where I wanted it to.

Assuming this was the issue, I deleted folder in Hazel and recreated it, this time pointing the folder at the new dropbox location in ~/Library/CloudStorage/Dropbox, previously I think I had set it up before the new Dropbox for Mac moved the location and I created the alias link. Hazel must have seen the alias and appeared to be happy, but it wasn't really.

Once the new folder and rule was setup all the files moved over to the SSD okay.

I'm just posting this here incase anyone else ends up with the same issue.
PhilO
 
Posts: 1
Joined: Sun Apr 16, 2023 10:56 am


Return to Support