mdhiggins / sickbeard_mp4_automator

Automatically convert video files to a standardized format with metadata tagging to create a beautiful and uniform media library
MIT License
1.52k stars 202 forks source link

sonarr-sma & radarr-sma not working for me #1308

Closed hroman73 closed 4 years ago

hroman73 commented 4 years ago

I'm not an expert at all so I may be missing something here...

I recently setup a new server with the following in docker: nzbget, sonarr-sma, radarr-sma. I followed your instructions on radarr-sma and sonarr-sma but can't get nzbget to do anything after the download. What am I missing for nzbget to get it to post process?

I also tried to do a manual.py against the downloaded mkv from within the sonarr-sma docker but got an error that its missing guessit...

mdhiggins commented 4 years ago

The docker containers are designed to be used with completed download handling which it sounds like is not turned on

mdhiggins commented 4 years ago

image

hroman73 commented 4 years ago

Mine is enabled. To test I would upload an nzb file to nzbget where I was used to the script would kick off and interface with sonarr or radarr. I set it so it will pull a show today and see how it goes...will follow up thank you

mdhiggins commented 4 years ago

One way to confirm its enabled and working is if files are moved and renamed from your downloads folder to their final destination. If that's happening then completed download handling is working. If not then something is wrong with your sonarr configuration.

One problem that you may have overlooked if you're new to docker is that the file structure for these files needs to be the same across your docker container. If NZBGet is downloading to /downloads/NZBGet/sonarr/complete then that same directory structure needs to be the same inside your Sonarr config (having downloads go to /home/user/downloads/NZBGet/sonarr/complete for example would break things)

If things are being moved and renamed then its a problem with your configuration with of the postSonarr script which needs to be configured in the connect setting of Sonarr like this image

hroman73 commented 4 years ago

here are how my docker volumes are configured: nzbget: /opt/nzbget/config - /config /home/user/Downloads - /downloads

sonarr: /opt/sonarr/config - /config /home/user/Downloads - /downloads /home/user/Videos/TV - /tv /opt/sma - /usr/local/sma/config

radarr: /opt/radarr/config - /config /home/user/Downloads - /downloads /home/user/Videos/Movies - /movies /opt/sma - /usr/local/sma/config

completed download handling is enabled and the custom script is set /usr/local/sma/postSonarr.sh or postRadarr.sh as documented.

when i test the downloader connection to nzbget i get a success result...

mdhiggins commented 4 years ago

And are files moved/renamed at all or do they just sit in the downloads folder? This information is critical to know which step is failing

Looks to be configured correctly. Just to confirm you have this same behavior with NZBs that are added by sonarr/radarr (arr) and not ones you've manually added? Depending on the labels and name of the NZB the programs will ignore NZBs frequently, especially if they are added manually and not by arr

Final issue is that perhaps it is a permission problem which has nothing to do with my script specifically but can be a docker issue you'll need to sort out on your own. But if its connecting to NZBGet with the test and *arr is able to add NZBs to NZBGet then you should be able to see it scan the completed download in the logs and some logic regarding whether its trying to process it or skip over it which you'll need to review to figure out what's going on

hroman73 commented 4 years ago

with my setup i have sonarr, radarr, nzbget and nzbhydra...when i performed a search on either *arr i wouldn't see it in the nzbhydra logs. I then started to check that they could talk to each other and i think that was the problem. with ubuntu 20.04 i had to disable its internal dns and force it to use the network dns configured from network manager, the following article explained the steps: https://askubuntu.com/questions/907246/how-to-disable-systemd-resolved-in-ubuntu

its now downloading a content and showing status on the *arr's as well as performing the mp4_automation :)

Thank you very much for the help!

mdhiggins commented 4 years ago

Good stuff thanks for sharing the solution