ljunkie / plexWatch

Notify and Log watched content on a Plex Media Server
430 stars 59 forks source link

Permission denied at /opt/plexWatch/plexWatch.pl line 888 #107

Open CraigLowe1993 opened 8 years ago

CraigLowe1993 commented 8 years ago

I have the cron set to the following:

I get an intermittent error in my mail with the error below:

Permission denied at /opt/plexWatch/plexWatch.pl line 888

PlexWatch still runs fine but after a couple of days I may have hundreds of messages telling me about the issue.

Thank you, Craig.

Arcanemagus commented 8 years ago

I'm not sure how root would be denied permission, but that line is where it tries to write to the file log target. Maybe check that the file exists?

CraigLowe1993 commented 8 years ago

I think the file is locked when the error occurs, the file exists and permissions obviously aren't an issue.

I know a workaround for this and will put up the fix tomorrow once I get chance to edit the code.