Post-upgrade, Hazel not running at specific times

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

Moderator: Mr_Noodle

Ever since I upgraded to 4.0, I'm having trouble getting two Hazel rules to run.

Both of them use the "Current Time" and "is" trigger, so I think that's causing the rules to fail. One is set to run at 11pm and another at 11:30pm.

I've checked the logs but no actions are showing at those times, so it seems that the rules aren't running (as opposed to running and failing).

Any ideas on how to troubleshoot? I've tried exporting/re-importing the rules but no luck.
sunpost
 
Posts: 5
Joined: Sun Jul 10, 2016 1:10 pm

Are there other conditions in play? Also, are there other rules before this one that the file(s) might match instead?
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

There are no other conditions to the rule running, however there are other rules ahead of these rules that run first.

The sequence is like this:

1. Files are uploaded to Dropbox folder.
2. Hazel renames them (this rule is working).
3. Hazel launches an Automator Workflow at 11:00pm (this rule works sometimes - for instance, it did last night).
4. Hazel deletes all files in the folder at 11:30pm (this rule is not working).
sunpost
 
Posts: 5
Joined: Sun Jul 10, 2016 1:10 pm

If there are other rules ahead of it, and if the file matches any one of those rules, they will not ever get to the rule in question. Use the status interface (the "eye" button) to check this. You need to either re-order/structure your rules to compensate for this or use the "Continue" action to tell Hazel to continue evaluating even if the rule matches.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Thanks Mr. Noodle, I will look into the "Continue" action. I didn't know that about Hazel. As I said in the original post, this workflow ran for about a year with no problems. I'll continue troubleshooting and update the thread if this fixes the problem.

Hazel is an amazing program. Thank you for developing it.
sunpost
 
Posts: 5
Joined: Sun Jul 10, 2016 1:10 pm

Unfortunately, I'm still struggling to get this back to working.

Here's the workflow I'm trying to achieve, complete with photos of the rules involved.

1. I upload a photo to a folder called "Food". Hazel runs a rule to rename the photo.

Image

2. At 11:00pm, Hazel checks inside the "Food" folder to see if any files are present. If they are, it executes an Applescript.

Image

3. At 11:30pm, Hazel deletes all photos in the folder.

Image

The next day the process repeats itself. I took more photos. They're renamed, sent via email and then deleted. The problem is the second rule isn't running (which is not entirely accurate, as it seems to run every now and then but I haven't been able to pinpoint why. Most days Rule 2 does not run.
sunpost
 
Posts: 5
Joined: Sun Jul 10, 2016 1:10 pm

Check the logs around that time and post/email them.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Thanks Mr. Noodle - the rules have been wildly inconsistent. Sometimes they run, sometimes they don't. Still having trouble isolating the cause. Last night the rule launching the Automator workflow did not launch but the rule that deletes the photos at 11:30 did. Below are the logs from that time period.

Code: Select all
), NSUnderlyingError=0x7f831153d480 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}
2016-08-01 19:13:42.820 hazelworker[44687] [Error] Could not remove file: File Tweetbot.app could not be removed from the Trash.
2016-08-01 19:13:42.839 hazelworker[44687] Done processing folder Trash
2016-08-01 20:07:27.246 hazelworker[45219] ###main load address: 0x10294e000
2016-08-01 20:07:27.258 hazelworker[45219] ###Noodle load address: 0x102a66000
2016-08-01 20:07:27.258 hazelworker[45219] ###CK load address: 0x102a29000
2016-08-01 20:07:27.347 hazelworker[45219] Processing folder Food
2016-08-01 20:07:29.433 hazelworker[45219] iPhone Photo .jpeg: Rule Rename Photo with Timestamp matched.
2016-08-01 20:07:29.435 hazelworker[45219] [File Event] File renamed: /Users/joshuaholt/Dropbox/Action/Food/iPhone Photo .jpeg renamed to /Users/joshuaholt/Dropbox/Action/Food/2007PM (time) - Food Photo.jpg.
2016-08-01 20:07:31.459 hazelworker[45219] 0906AM (time) - Food Photo.jpg: Rule Rename Photo with Timestamp matched.
2016-08-01 20:07:31.461 hazelworker[45219] 1246PM (time) - Food Photo.jpg: Rule Rename Photo with Timestamp matched.
2016-08-01 20:07:31.463 hazelworker[45219] 2007PM (time) - Food Photo.jpg: Rule Rename Photo with Timestamp matched.
2016-08-01 20:07:33.481 hazelworker[45219] 2007PM (time) - Food Photo.jpg: Rule Rename Photo with Timestamp matched.
2016-08-01 20:07:33.484 hazelworker[45219] Done processing folder Food
2016-08-01 20:13:42.689 hazelworker[45294] ###main load address: 0x105c2b000
2016-08-01 20:13:42.700 hazelworker[45294] ###Noodle load address: 0x105d44000
2016-08-01 20:13:42.700 hazelworker[45294] ###CK load address: 0x105d09000
2016-08-01 20:13:42.726 hazelworker[45294] Processing folder Trash
2016-08-01 20:13:43.780 hazelworker[45294] File Hazel (1321).prefPane has been sitting in the trash for too long. Purging.
2016-08-01 20:13:43.780 hazelworker[45294] Removing Hazel (1321).prefPane.
2016-08-01 20:13:43.787 hazelworker[45294] Could not remove Hazel (1321).prefPane: Error Domain=NSCocoaErrorDomain Code=513 "“Hazel (1321).prefPane” couldn’t be removed because you don’t have permission to access it." UserInfo={NSFilePath=/Users/joshuaholt/.Trash/Hazel (1321).prefPane, NSUserStringVariant=(
    Remove
), NSUnderlyingError=0x7fa7a1f1e4a0 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}
2016-08-01 20:13:43.789 hazelworker[45294] [Error] Could not remove file: File Hazel (1321).prefPane could not be removed from the Trash.
2016-08-01 20:13:43.790 hazelworker[45294] File Hazel (1459).prefPane has been sitting in the trash for too long. Purging.
2016-08-01 20:13:43.790 hazelworker[45294] Removing Hazel (1459).prefPane.
2016-08-01 20:13:43.791 hazelworker[45294] Could not remove Hazel (1459).prefPane: Error Domain=NSCocoaErrorDomain Code=513 "“Hazel (1459).prefPane” couldn’t be removed because you don’t have permission to access it." UserInfo={NSFilePath=/Users/joshuaholt/.Trash/Hazel (1459).prefPane, NSUserStringVariant=(
    Remove
), NSUnderlyingError=0x7fa7a1f1d140 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}
2016-08-01 20:13:43.791 hazelworker[45294] [Error] Could not remove file: File Hazel (1459).prefPane could not be removed from the Trash.
2016-08-01 20:13:43.792 hazelworker[45294] File Hazel (1483).prefPane has been sitting in the trash for too long. Purging.
2016-08-01 20:13:43.792 hazelworker[45294] Removing Hazel (1483).prefPane.
2016-08-01 20:13:43.794 hazelworker[45294] Could not remove Hazel (1483).prefPane: Error Domain=NSCocoaErrorDomain Code=513 "“Hazel (1483).prefPane” couldn’t be removed because you don’t have permission to access it." UserInfo={NSFilePath=/Users/joshuaholt/.Trash/Hazel (1483).prefPane, NSUserStringVariant=(
    Remove
), NSUnderlyingError=0x7fa7a1f22a10 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}
2016-08-01 20:13:43.794 hazelworker[45294] [Error] Could not remove file: File Hazel (1483).prefPane could not be removed from the Trash.
2016-08-01 20:13:43.808 hazelworker[45294] File Tweetbot.app has been sitting in the trash for too long. Purging.
2016-08-01 20:13:43.808 hazelworker[45294] Removing Tweetbot.app.
2016-08-01 20:13:43.814 hazelworker[45294] Could not remove Tweetbot.app: Error Domain=NSCocoaErrorDomain Code=513 "“Tweetbot” couldn’t be removed because you don’t have permission to access it." UserInfo={NSFilePath=/Users/joshuaholt/.Trash/Tweetbot.app, NSUserStringVariant=(
    Remove
), NSUnderlyingError=0x7fa7a1c231e0 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}
2016-08-01 20:13:43.814 hazelworker[45294] [Error] Could not remove file: File Tweetbot.app could not be removed from the Trash.
2016-08-01 20:13:43.834 hazelworker[45294] Done processing folder Trash
2016-08-01 21:13:43.721 hazelworker[45880] ###main load address: 0x108272000
2016-08-01 21:13:43.727 hazelworker[45880] ###Noodle load address: 0x108387000
2016-08-01 21:13:43.727 hazelworker[45880] ###CK load address: 0x10834c000
2016-08-01 21:13:43.747 hazelworker[45880] Processing folder Trash
2016-08-01 21:13:44.797 hazelworker[45880] File Hazel (1321).prefPane has been sitting in the trash for too long. Purging.
2016-08-01 21:13:44.797 hazelworker[45880] Removing Hazel (1321).prefPane.
2016-08-01 21:13:44.803 hazelworker[45880] Could not remove Hazel (1321).prefPane: Error Domain=NSCocoaErrorDomain Code=513 "“Hazel (1321).prefPane” couldn’t be removed because you don’t have permission to access it." UserInfo={NSFilePath=/Users/joshuaholt/.Trash/Hazel (1321).prefPane, NSUserStringVariant=(
    Remove
), NSUnderlyingError=0x7febe0617d00 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}
2016-08-01 21:13:44.807 hazelworker[45880] [Error] Could not remove file: File Hazel (1321).prefPane could not be removed from the Trash.
2016-08-01 21:13:44.807 hazelworker[45880] File Hazel (1459).prefPane has been sitting in the trash for too long. Purging.
2016-08-01 21:13:44.807 hazelworker[45880] Removing Hazel (1459).prefPane.
2016-08-01 21:13:44.809 hazelworker[45880] Could not remove Hazel (1459).prefPane: Error Domain=NSCocoaErrorDomain Code=513 "“Hazel (1459).prefPane” couldn’t be removed because you don’t have permission to access it." UserInfo={NSFilePath=/Users/joshuaholt/.Trash/Hazel (1459).prefPane, NSUserStringVariant=(
    Remove
), NSUnderlyingError=0x7febe0403c00 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}
2016-08-01 21:13:44.809 hazelworker[45880] [Error] Could not remove file: File Hazel (1459).prefPane could not be removed from the Trash.
2016-08-01 21:13:44.809 hazelworker[45880] File Hazel (1483).prefPane has been sitting in the trash for too long. Purging.
2016-08-01 21:13:44.809 hazelworker[45880] Removing Hazel (1483).prefPane.
2016-08-01 21:13:44.810 hazelworker[45880] Could not remove Hazel (1483).prefPane: Error Domain=NSCocoaErrorDomain Code=513 "“Hazel (1483).prefPane” couldn’t be removed because you don’t have permission to access it." UserInfo={NSFilePath=/Users/joshuaholt/.Trash/Hazel (1483).prefPane, NSUserStringVariant=(
    Remove
), NSUnderlyingError=0x7febe040f560 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}
2016-08-01 21:13:44.810 hazelworker[45880] [Error] Could not remove file: File Hazel (1483).prefPane could not be removed from the Trash.
2016-08-01 21:13:44.824 hazelworker[45880] File Tweetbot.app has been sitting in the trash for too long. Purging.
2016-08-01 21:13:44.825 hazelworker[45880] Removing Tweetbot.app.
2016-08-01 21:13:44.831 hazelworker[45880] Could not remove Tweetbot.app: Error Domain=NSCocoaErrorDomain Code=513 "“Tweetbot” couldn’t be removed because you don’t have permission to access it." UserInfo={NSFilePath=/Users/joshuaholt/.Trash/Tweetbot.app, NSUserStringVariant=(
    Remove
), NSUnderlyingError=0x7febe07111b0 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}
2016-08-01 21:13:44.831 hazelworker[45880] [Error] Could not remove file: File Tweetbot.app could not be removed from the Trash.
2016-08-01 21:13:44.850 hazelworker[45880] Done processing folder Trash
2016-08-01 22:13:44.752 hazelworker[46492] ###main load address: 0x10aa8a000
2016-08-01 22:13:44.757 hazelworker[46492] ###Noodle load address: 0x10aba0000
2016-08-01 22:13:44.757 hazelworker[46492] ###CK load address: 0x10ab67000
2016-08-01 22:13:44.777 hazelworker[46492] Processing folder Trash
2016-08-01 22:13:45.832 hazelworker[46492] File Hazel (1321).prefPane has been sitting in the trash for too long. Purging.
2016-08-01 22:13:45.832 hazelworker[46492] Removing Hazel (1321).prefPane.
2016-08-01 22:13:45.840 hazelworker[46492] Could not remove Hazel (1321).prefPane: Error Domain=NSCocoaErrorDomain Code=513 "“Hazel (1321).prefPane” couldn’t be removed because you don’t have permission to access it." UserInfo={NSFilePath=/Users/joshuaholt/.Trash/Hazel (1321).prefPane, NSUserStringVariant=(
    Remove
), NSUnderlyingError=0x7f9031f26d70 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}
2016-08-01 22:13:45.844 hazelworker[46492] [Error] Could not remove file: File Hazel (1321).prefPane could not be removed from the Trash.
2016-08-01 22:13:45.845 hazelworker[46492] File Hazel (1459).prefPane has been sitting in the trash for too long. Purging.
2016-08-01 22:13:45.845 hazelworker[46492] Removing Hazel (1459).prefPane.
2016-08-01 22:13:45.846 hazelworker[46492] Could not remove Hazel (1459).prefPane: Error Domain=NSCocoaErrorDomain Code=513 "“Hazel (1459).prefPane” couldn’t be removed because you don’t have permission to access it." UserInfo={NSFilePath=/Users/joshuaholt/.Trash/Hazel (1459).prefPane, NSUserStringVariant=(
    Remove
), NSUnderlyingError=0x7f9031d5c400 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}
2016-08-01 22:13:45.846 hazelworker[46492] [Error] Could not remove file: File Hazel (1459).prefPane could not be removed from the Trash.
2016-08-01 22:13:45.847 hazelworker[46492] File Hazel (1483).prefPane has been sitting in the trash for too long. Purging.
2016-08-01 22:13:45.847 hazelworker[46492] Removing Hazel (1483).prefPane.
2016-08-01 22:13:45.848 hazelworker[46492] Could not remove Hazel (1483).prefPane: Error Domain=NSCocoaErrorDomain Code=513 "“Hazel (1483).prefPane” couldn’t be removed because you don’t have permission to access it." UserInfo={NSFilePath=/Users/joshuaholt/.Trash/Hazel (1483).prefPane, NSUserStringVariant=(
    Remove
), NSUnderlyingError=0x7f9031e143f0 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}
2016-08-01 22:13:45.848 hazelworker[46492] [Error] Could not remove file: File Hazel (1483).prefPane could not be removed from the Trash.
2016-08-01 22:13:45.862 hazelworker[46492] File Tweetbot.app has been sitting in the trash for too long. Purging.
2016-08-01 22:13:45.862 hazelworker[46492] Removing Tweetbot.app.
2016-08-01 22:13:45.869 hazelworker[46492] Could not remove Tweetbot.app: Error Domain=NSCocoaErrorDomain Code=513 "“Tweetbot” couldn’t be removed because you don’t have permission to access it." UserInfo={NSFilePath=/Users/joshuaholt/.Trash/Tweetbot.app, NSUserStringVariant=(
    Remove
), NSUnderlyingError=0x7f9031d5f600 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}
2016-08-01 22:13:45.869 hazelworker[46492] [Error] Could not remove file: File Tweetbot.app could not be removed from the Trash.
2016-08-01 22:13:45.891 hazelworker[46492] Done processing folder Trash
2016-08-01 23:13:45.777 hazelworker[47128] ###main load address: 0x103fe0000
2016-08-01 23:13:45.783 hazelworker[47128] ###Noodle load address: 0x1040f4000
2016-08-01 23:13:45.783 hazelworker[47128] ###CK load address: 0x1040b8000
2016-08-01 23:13:45.802 hazelworker[47128] Processing folder Trash
2016-08-01 23:13:46.852 hazelworker[47128] File Hazel (1321).prefPane has been sitting in the trash for too long. Purging.
2016-08-01 23:13:46.852 hazelworker[47128] Removing Hazel (1321).prefPane.
2016-08-01 23:13:46.858 hazelworker[47128] Could not remove Hazel (1321).prefPane: Error Domain=NSCocoaErrorDomain Code=513 "“Hazel (1321).prefPane” couldn’t be removed because you don’t have permission to access it." UserInfo={NSFilePath=/Users/joshuaholt/.Trash/Hazel (1321).prefPane, NSUserStringVariant=(
    Remove
), NSUnderlyingError=0x7ffcaad2ded0 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}
2016-08-01 23:13:46.861 hazelworker[47128] [Error] Could not remove file: File Hazel (1321).prefPane could not be removed from the Trash.
2016-08-01 23:13:46.862 hazelworker[47128] File Hazel (1459).prefPane has been sitting in the trash for too long. Purging.
2016-08-01 23:13:46.862 hazelworker[47128] Removing Hazel (1459).prefPane.
2016-08-01 23:13:46.863 hazelworker[47128] Could not remove Hazel (1459).prefPane: Error Domain=NSCocoaErrorDomain Code=513 "“Hazel (1459).prefPane” couldn’t be removed because you don’t have permission to access it." UserInfo={NSFilePath=/Users/joshuaholt/.Trash/Hazel (1459).prefPane, NSUserStringVariant=(
    Remove
), NSUnderlyingError=0x7ffcaae103c0 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}
2016-08-01 23:13:46.863 hazelworker[47128] [Error] Could not remove file: File Hazel (1459).prefPane could not be removed from the Trash.
2016-08-01 23:13:46.864 hazelworker[47128] File Hazel (1483).prefPane has been sitting in the trash for too long. Purging.
2016-08-01 23:13:46.864 hazelworker[47128] Removing Hazel (1483).prefPane.
2016-08-01 23:13:46.865 hazelworker[47128] Could not remove Hazel (1483).prefPane: Error Domain=NSCocoaErrorDomain Code=513 "“Hazel (1483).prefPane” couldn’t be removed because you don’t have permission to access it." UserInfo={NSFilePath=/Users/joshuaholt/.Trash/Hazel (1483).prefPane, NSUserStringVariant=(
    Remove
), NSUnderlyingError=0x7ffcaae11e30 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}
2016-08-01 23:13:46.865 hazelworker[47128] [Error] Could not remove file: File Hazel (1483).prefPane could not be removed from the Trash.
2016-08-01 23:13:46.879 hazelworker[47128] File Tweetbot.app has been sitting in the trash for too long. Purging.
2016-08-01 23:13:46.879 hazelworker[47128] Removing Tweetbot.app.
2016-08-01 23:13:46.886 hazelworker[47128] Could not remove Tweetbot.app: Error Domain=NSCocoaErrorDomain Code=513 "“Tweetbot” couldn’t be removed because you don’t have permission to access it." UserInfo={NSFilePath=/Users/joshuaholt/.Trash/Tweetbot.app, NSUserStringVariant=(
    Remove
), NSUnderlyingError=0x7ffcaaf2f390 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}
2016-08-01 23:13:46.886 hazelworker[47128] [Error] Could not remove file: File Tweetbot.app could not be removed from the Trash.
2016-08-01 23:13:46.906 hazelworker[47128] Done processing folder Trash
2016-08-01 23:29:59.426 hazelworker[47280] ###main load address: 0x100519000
2016-08-01 23:29:59.437 hazelworker[47280] ###Noodle load address: 0x100630000
2016-08-01 23:29:59.438 hazelworker[47280] ###CK load address: 0x1005f1000
2016-08-01 23:29:59.528 hazelworker[47280] Processing folder Food
2016-08-01 23:30:01.605 hazelworker[47280] 0906AM (time) - Food Photo.jpg: Rule Rename Photo with Timestamp matched.
2016-08-01 23:30:01.610 hazelworker[47280] 0906AM (time) - Food Photo.jpg: Rule Delete Old Photos matched.
2016-08-01 23:30:01.614 hazelworker[47280] [File Event] File moved: 0906AM (time) - Food Photo.jpg moved from folder /Users/joshuaholt/Dropbox/Action/Food to folder /Users/joshuaholt/.Trash.
2016-08-01 23:30:01.617 hazelworker[47280] 1246PM (time) - Food Photo.jpg: Rule Rename Photo with Timestamp matched.
2016-08-01 23:30:01.618 hazelworker[47280] 1246PM (time) - Food Photo.jpg: Rule Delete Old Photos matched.
2016-08-01 23:30:01.620 hazelworker[47280] [File Event] File moved: 1246PM (time) - Food Photo.jpg moved from folder /Users/joshuaholt/Dropbox/Action/Food to folder /Users/joshuaholt/.Trash.
2016-08-01 23:30:01.623 hazelworker[47280] 2007PM (time) - Food Photo.jpg: Rule Rename Photo with Timestamp matched.
2016-08-01 23:30:01.624 hazelworker[47280] 2007PM (time) - Food Photo.jpg: Rule Delete Old Photos matched.
2016-08-01 23:30:01.650 hazelworker[47280] [File Event] File moved: 2007PM (time) - Food Photo.jpg moved from folder /Users/joshuaholt/Dropbox/Action/Food to folder /Users/joshuaholt/.Trash.
2016-08-01 23:30:02.789 hazelworker[47284] ###main load address: 0x107eb2000
2016-08-01 23:30:02.790 hazelworker[47284] ###Noodle load address: 0x107fcd000
2016-08-01 23:30:02.790 hazelworker[47284] ###CK load address: 0x107f8e000
2016-08-01 23:30:02.802 hazelworker[47284] Processing folder Trash
2016-08-01 23:30:03.858 hazelworker[47284] File Hazel (1459).prefPane has been sitting in the trash for too long. Purging.
2016-08-01 23:30:03.858 hazelworker[47284] Removing Hazel (1459).prefPane.
2016-08-01 23:30:03.862 hazelworker[47284] Could not remove Hazel (1459).prefPane: Error Domain=NSCocoaErrorDomain Code=513 "“Hazel (1459).prefPane” couldn’t be removed because you don’t have permission to access it." UserInfo={NSFilePath=/Users/joshuaholt/.Trash/Hazel (1459).prefPane, NSUserStringVariant=(
    Remove
sunpost
 
Posts: 5
Joined: Sun Jul 10, 2016 1:10 pm

Can you specify a file that wasn't processed and which rule it was supposed to match during this section?
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support