-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Permission Denied on image #50
Comments
I just pushed new changes to the master branch that has a fix for posters. Could you please try it? |
It seems to work but did you remove the msg_header_image from the plexemail.py? Because my image is not in the email. |
Was that a custom change you made to the script? That field hasn't ever existed. |
i dont rememeber...lol..i have been using this same config file since the 0.2.0i guess i will change it header1 |
What is the Fix for the logging because when i try to run python path/to/plexEmail.py -t i get a error that plexemail.log access denied (even if the group and user are the same as the other file). When i add sudo in front, it works. |
It adds logging to an external file. I'm guessing the user running the script doesn't have write access to the scripts folder (that's why it works with sudo). I'll have to add some permission checking in the next release. |
Humm.. Odd.. My www-data user is the owner and group and my user is part of the www-data group. Can I turn off logging? |
Does the group have write access to the folder? The current release in the main branch cannot disable logging; however I just pushed a new change to the dev branch that adds this ability. Give it a shot and if you have no issues with it I will push it to the main branch. |
Ok.. Will give it a try. Yes the group had rw |
The log disabling works but now i have
Unless i run as sudo...this is if i run from cron or from terminal Here are my permissions |
any ideas? |
Using shutil.copyfile instead of shutil.copy on plexemail.py will resolve this issue. The issue happens if the image file in the destination is owned by a use different than the one running the script. |
Ok, I will give it a try and post back |
I tested it and the solution works for me! |
I dont know when it started but everytime i run plexEmail.py, it fails with this message
The problem is that 07dff822e4d99b8ae4c5bb693e06ed7adffeb00d_c7f62e627843f4e17e59168370e56fae60e46b65.jpg does not exist in the image folder. Also when i check my Plex metadata folder(plex is on windows) and search for 07dff822e4d99b8ae4c5bb693e06ed7adffeb00d, it referes to a UFC poster. The weird thing is that everytime i get a new UFC poster, 07dff822e4d99b8ae4c5bb693e06ed7adffeb00d points to that new poster and not the previous one. How can i fix this?
The text was updated successfully, but these errors were encountered: