Version: 0.4.11
OS: FreeNAS 0.7 (FreeBSD 7.2)
I've got a problem in 0.4.11 with scripts never being detected as being complete.
I've got an RSS feed w/ a script assigned to it. Everything downloads fine, unpacks, verifies, deletes and then kicks off the script.
It runs (I guess) but is stuck in [USER-SCRIPT]: => Running user script
It's a bash script that calls another shell script, which kicks off a java app (Yet Another Movie Jukebox)
Any ideas on how I could trouble shoot this? I think it's specific to this one script unfortunately, but it was work then about a week ago it stopped working, though no changes were made to it.
Oh this reminds me of something - can the "move the nzb to ./backup" be done *after* something has been completely processed? To fix my current problem, not only do I have to clear out the cache directory, but I have to hunt down and delete the backup entries representing stuff that has been queued up but never downloaded or processed.
Script never detected as being complete
Forum rules
Help us help you:
Help us help you:
- Are you using the latest stable version of SABnzbd? Downloads page.
- Tell us what system you run SABnzbd on.
- Adhere to the forum rules.
- Do you experience problems during downloading?
Check your connection in Status and Interface settings window.
Use Test Server in Config > Servers.
We will probably ask you to do a test using only basic settings. - Do you experience problems during repair or unpacking?
Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Script never detected as being complete
Last edited by Clay on July 24th, 2009, 2:48 pm, edited 1 time in total.
Re: Script never detected as being complete
Have you tested the script "stand-alone"?
From a command shell, passing it the same parameters as SABnzbd would do.
(You can see in the logfile what the exact parameters are).
From a command shell, passing it the same parameters as SABnzbd would do.
(You can see in the logfile what the exact parameters are).
Re: Script never detected as being complete
The script runs fine standalone, and doesn't require any options/parameters
Re: Script never detected as being complete
So how does it know where the downloaded data is?
Re: Script never detected as being complete
It doesn't do anything specifically to the downloaded data.
The script (YAMJ) generates a bunch of html of my entire media library, which is then read by my Popcorn Hour box.
Anyway, the way it works is that the downloaded data gets dumped under a certain path, and then the YAMJ generator scans everything at the top of that certain path.
This worked perfectly for like 5 months and now just works intermittently.
Amusingly enough, I've got another script that is occasionally run which does take parameters and does a bunch of crazy scripting and can take like an hour to run (it's converting stuff to iphone format) runs perfectly fine.
The script (YAMJ) generates a bunch of html of my entire media library, which is then read by my Popcorn Hour box.
Anyway, the way it works is that the downloaded data gets dumped under a certain path, and then the YAMJ generator scans everything at the top of that certain path.
This worked perfectly for like 5 months and now just works intermittently.
Amusingly enough, I've got another script that is occasionally run which does take parameters and does a bunch of crazy scripting and can take like an hour to run (it's converting stuff to iphone format) runs perfectly fine.
Last edited by Clay on July 26th, 2009, 10:04 am, edited 1 time in total.
Re: Script never detected as being complete
No ideas? Is there any logging I could turn on to get some better info?
This is really frustrating
This is really frustrating
Re: Script never detected as being complete
A bit hard for us to say anything sensible about this.
SABnzbd lets the OS start the script and waits for it to exit.
That's about it.
The only thing I can think of is experimenting with the nice and ionice parameters.
Clear the parameters in Config->Switches so they are not used anymore.
Does the script start with a proper "shebang", like #!/bin/bash, so that
the proper shell is used?
SABnzbd lets the OS start the script and waits for it to exit.
That's about it.
The only thing I can think of is experimenting with the nice and ionice parameters.
Clear the parameters in Config->Switches so they are not used anymore.
Does the script start with a proper "shebang", like #!/bin/bash, so that
the proper shell is used?
Re: Script never detected as being complete
The script that sabnzbd calls uses #!/bin/bash, as does the script that it calls.
I've noticed it only happens on TV shows; I 7 movies through it and everything was just dandy. It pulled a TV show via RSS and it never detected the end.
I've non-TV shows that are pulled via RSS and run through a different script and it has never had a problem.
This is quite perplexing...
I've noticed it only happens on TV shows; I 7 movies through it and everything was just dandy. It pulled a TV show via RSS and it never detected the end.
I've non-TV shows that are pulled via RSS and run through a different script and it has never had a problem.
This is quite perplexing...
Re: Script never detected as being complete
What happens of you disable the TV season sorting features?
Re: Script never detected as being complete
When I turned off the sorting, everything worked. I ran about 5 shows through it.
Re: Script never detected as being complete
The parameters passed to the script are a bit different when TV sorting kicks in.
Unfortunately I don't know the details.
Try PM-ing switch with the details of your problem.
Unfortunately I don't know the details.
Try PM-ing switch with the details of your problem.