Hazel is thrashing my Plex Media Server

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

Moderator: Mr_Noodle

Hazel is thrashing my Plex Media Server Fri Nov 11, 2016 12:48 am • by tiny-e
Does Hazel modify files / folders when it's running rules on them?

I have Hazel set to to auto-prune some TV show folders on my HTPC server (running Plex Media Server). PMS is set to autoupdate the library when it detects changes to folders. I can see it constantly scanning and rescanning the folders that I have Hazel set to auto-prune, so I'm betting Hazel is modifying something / writing something in the folder when it goes in. If I stop Hazel, the constant scanning/rescanning stops.

If it does write/delete some invisible files, plex can be told to ignore them via name-matching (if I knew what the name was).

Kinda stumped...
tiny-e
 
Posts: 22
Joined: Fri Mar 12, 2010 5:51 pm

Re: Hazel is thrashing my Plex Media Server Fri Nov 11, 2016 11:25 am • by Mr_Noodle
What filesystem is being used? If it's a Microsoft one (FAT32, NTFS, etc.) then there's an issue. I'm not sure if it's inherent in the design of those filesystems or Apple's implementation of it, but if a process reads a file, it updates the access time. That in turn generates a file event which will wake up Hazel.

Because of this, you can end up with a loop. It's a bad design on either MS or Apple's part in this and there is no way around it that I know of without having Hazel stop listening to file events.

Email in to support an excerpt of the logs so I can confirm this is what is happening.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Hazel is thrashing my Plex Media Server Fri Nov 11, 2016 11:47 am • by tiny-e
The files are on an UNRAID server using the xfs file system.

To be sure: You'd like an excerpt from the Hazel log, or a different one?

Thanks for the help,
e
tiny-e
 
Posts: 22
Joined: Fri Mar 12, 2010 5:51 pm

Re: Hazel is thrashing my Plex Media Server Mon Nov 14, 2016 11:57 am • by Mr_Noodle
The hazel log. It should show all activity which should give you some sense of what may be causing this.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Hazel is thrashing my Plex Media Server Fri Dec 23, 2016 12:39 am • by tiny-e
OK -- Sorry for taking so long to reply back. I was out of town for a couple of weeks.

I have emailed (via your web form) support the log file in question.

Thanks!
tiny-e
 
Posts: 22
Joined: Fri Mar 12, 2010 5:51 pm


Return to Support

cron