-
Notifications
You must be signed in to change notification settings - Fork 176
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
NzbtoDrone PPscript not notifying nzbdron #370
Comments
The log section below comes from NZBDrone... it shows that the scan has started, but interestingly the startedon date looks to be corrupt.
so, are there any log entries in NZBDrone to show the request coming in and why it didn't process? |
I'm seeing the same thing. The worst part is, nzbtomedia deletes the directory after NZBDrone fails to import the file ... Log from NZBDrone:
nzbget is running as root for some reason and creating files with -rw-r--r-- , but after chmod /volume1/video/Completed/Series/ to -rwxrwxrwx, the problem persists. |
Yeah.. permissions issues! So if NZBGet runs as root, what user does NZBDrone run as? |
Yeah, i'm not sure it's a straight permissions issue. NZBDrone is running as nzbdrone user. Have chowned both source and destination folders to nzbdrone user as well as chmodding the entire /volume1/video/ to 777. Importing via Drone Factory interval works. Could nzbtomedia be deleting the file before nzbdrone has a chance to import it?
|
Ah, good catch... I'll try to add a call to verify the episode is processed before cleaning up. Otherwise I'll just add a timed delay... Sorry for the trouble here. |
Please update and try again. What it now does is get the number of missing episodes in NZBDrone before it calls the process... then it checks the number of current missing episodes and either times out (wiat_for minutes if the number doesn't change) or keeps waiting until the number of missing episodes remains constant (i.e all episodes in this download have processed). |
Sorry, i had a system crash...just finished rebuilding...Im going to start testing fresh...thanks |
Still not working...its wierd it seems like it totally removes it from nzbgets history too... It also says it can't find subsection labeled TV, there is not another small section under nzbdrone like SickBeard in autoprocess.cfg that is labeled TV Logs http://pastebin.com/4CRufZbc Here is my autoprocessmedia.cfg http://pastebin.com/9EDn7N74 |
Can you confirm that in NZBGet, settings, nzbToNzbDrone, you have set ndCategory=TV Note, this is case sensitive and must be "TV" not "tv" |
FYI...I just updated scripts and its still loading the wrong port number for NZBdrone, its loading 8081 and nzbdrones default port is 8989. Thx |
Ya its wierd even if i go into autoprocessmedia and change the port to 8989 it defaults it back to 8081 when it processes...heres log 014-05-05 19:09:41 DEBUG ::MAIN: git fetch origin : returned successful |
this wa fixed What you need to do is change this in NZBGet settings, nzbToNzbDrone, ndport = 8989 |
yep your right...my bad, missed that one...thanks |
So it failed again, but all the logs look pretty good... Here is a screenshot of nzbget showing the PP-failure http://imgur.com/si2uIHH Sorry, im not trying to be a pain, sorry if i keep bugging you, I really appreciate the help M 2014-05-05 19:27:03 INFO ::MAIN: Loading config from [/media/USBHDD1/shares/NZBget/ppscripts/nzbToMedia/autoProcessMedia.cfg] |
ah... no need to apologize.. I'm the one who is making silly mistakes :( Try once more... |
@mattfox27 if you are using NZBGet 11+ make sure to make the configuration changes via the NZBGet web interface for post processing scripts. I found direct edits to autoProcessMedia.cfg were overwritten by the configuration in NZBGet. |
Updated to latest commit dev 1f829db, Now i'm seeing PP-Failures instead of success and file deletion (getting closer) nzbtomedia.log
nzbdrone.txt
... not sure that the nzbdrone log entries are even related to the post processing, running pp again through nzbget fails and produces no entries in nzbdrone.txt. |
can you check the nzbget logs? you should see the same entries, along with a traceback to show where this failed... I just can't see what is going on. if you set all logging to console in nzbget, you should be able to view the actual errors right in nzbget. |
ok... the trace-back was posted in #373 Based on that, I believe the error was the way i called an internal function... this has been corrected above and should be fixed now. Please try once more... |
OK, so i got everything back up working and its still pp failing,,, I see there is a timer function i don't see that firing off... Log http://pastebin.com/vy3fJN6m |
Does it do anything making edits directly to autoprocessmedia.cfg? Like putting api key in there direct or setting enabled=1 ? Or should i just leave that alone and make all changes direct from nzbget? |
Do it all in NZBGet. |
copy that...thats what i thought, just wanted to make sure |
Ah... I need to learn how these classes work with the "self" calls. Please tell me this is getting close. |
Its getting there..hang in there buddy...lol, I feel your pain!!!! Is it all mixing together into twilight zone code world?...lol I really appreciate the effort... |
Wow... maybe I should try adding a download from NZBDrone so that I can test this... Latest commit should fix the latest issue... |
OK let me try it... |
Working over here. If the permissions are incorrect, nzbdrone.txt doesn't seem to log anything, but nzbtomedia.log will show:
|
So I know this was working before but now it seems to have an issue again...
I decided to delete and reinstall nzbToMedia Dev branch to clean everything up and start fresh. SInce then nzbtodrone seems to be not working. In nzbget it shows PP succeeded but in nzbdrone it shows it not downloaded...here is the log
AutoProcessmedia.cfg
[NzbDrone]
#### autoProcessing for TV Series
#### ndCategory - category that gets called for post-processing with NzbDrone
[[tv]]
enabled = 1
apikey = 0d883167f7a546adb34415xxxxxxxx
host = localhost
port = 8989
username = ""
password = ""
###### ADVANCED USE - ONLY EDIT IF YOU KNOW WHAT YOU'RE DOING ######
web_root = ""
ssl = 0
delete_failed = 0
# Enable/Disable linking for Torrents
Torrent_NoLink = 0
extract = 1
# Set this to minimum required size to consider a media file valid (in MB)
minSize = 0
# Enable/Disable deleteing ignored files (samples and invalid media files)
delete_ignored = 0
##### Set to path where completed downloads are found on remote server for this category
remote_path = ""
##### Set to path where download client places completed downloads locally for this category
watch_dir = ""
[[TV]]
host = localhost
apikey = 0d883167f7a546adb34415c6bxxxxxxxxxx
port = 8989
ssl = 0
web_root = ""
enabled = 1
The text was updated successfully, but these errors were encountered: