Skip to content
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

lcextractor_cleanup.py in docker #23

Open
nckchris opened this issue Aug 18, 2018 · 2 comments
Open

lcextractor_cleanup.py in docker #23

nckchris opened this issue Aug 18, 2018 · 2 comments

Comments

@nckchris
Copy link

This isn't an issue, but I'm curious if someone could point me in the right direction.

I'm running a Synology with Deluge, Sonarr, and Radarr among other things in Docker. I have LCExtractor setup with Deluge and it's working perfectly for extracting and communicating with Sonarr (haven't had a chance to test things with Radarr, but I expect it'll be working well there as well). I've set up the lcextractor_cleanup.py and have connected Sonarr to it per the instructions, but things aren't getting cleaned up. I assume this is due to a lack of access to Python, but I'm not all that well versed with Docker and I'm wondering how best to allow Python access to a Docker container. In this case I would assume Radarr and Sonarr would need to access the Python source as they're the one's calling the cleanup script. I'm just not sure if I'm better off trying to point things to Python on the Synology, running a separate Python container in Docker to handle things, or if I'm entirely off base and that's not likely to be the problem at all.

Any help/insight would be greatly appreciated. I'm so close to getting everything entirely automated!

@BlindByrd
Copy link

BlindByrd commented Jan 27, 2019

FIXED: This error is caused by Sonarr not having permission to execute the script. In windows, navigate to the file, right click > properties > security tab > edit -- Check Allow for Read & execute for all users. My user names were: "Everyone" "nobody (Unix User\nobody)" and "users (Unix group\users)". Then hit "Okay"

I'm having this same problem with unRAID. Getting the following error in Sonarr: Unable to send OnDownload notification to: lcextractor_cleanup: ApplicationName=’/scripts/lcextractor_cleanup.py’, CommandLine=’’, CurrentDirectory=’’, Native error= Access denied

@BlindByrd
Copy link

I'm not sure if you can see this comment or not nckchris, but I was able to fix the permission issue, see my other comment.

However, the cleanup script was still giving me errors so I tried another script by fryfrog called sonarr_cleanup_packed_torrent.sh

It requires a couple lines of editing to direct things to the right file but I was able to get it working without knowing hardly anything about coding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants