Page 1 of 1
Strange "stop" with 0.4.0 release. Did not happen with Beta
Posted: July 10th, 2008, 10:53 pm
by MajorHavoc

I have a schedule that starts and stops downloads. The beta version worked fine, but I just updated (and rebooted) with ver 0.4.0, and now, when the scheduled restarts is supposed to happen, I see the following message:
500 Internal error
The server encountered an unexpected condition which prevented it from fulfilling the request.
Traceback (most recent call last):
File "cherrypy\_cphttptools.pyo", line 126, in _run
File "cherrypy\filters\__init__.pyo", line 151, in applyFilters
File "sabnzbd\utils\multiauth\filter.pyo", line 61, in beforeFinalize
File "sabnzbd\interface.pyo", line 1289, in saveGeneral
File "sabnzbd\utils\listquote.pyo", line 274, in simplelist
TypeError: expected string or buffer
Seems like a bug. Anything else I can do or try to help discover this problem?
Running on Windows XP Pro, Service Pack 2, 1.5 GB RAM, P4
To install, I stopped the Beta program, and ran the installer. No errors were reported.
Any help would be appreciated.
Thanks in advance.
Re: Strange "stop" with 0.4.0 release. Did not happen with Beta
Posted: July 11th, 2008, 2:28 am
by shypike
Can you post the line in the sabnzbd.ini file that starts with "schedlines =" ?
Possibly you have an incorrect line in the INI file that is accepted by the Beta, but not the Final.
Re: Strange "stop" with 0.4.0 release. Did not happen with Beta
Posted: July 11th, 2008, 4:17 am
by shypike
when the scheduled restarts is supposed to happen
Can you describe what you do exactly?
Does this happen spontaneously when the scheduled event is due?
Does this happen when you click "Save" in a Config page (if so, which one)?
Re: Strange "stop" with 0.4.0 release. Did not happen with Beta
Posted: July 11th, 2008, 4:26 am
by switch
Looks more like a dodgy value was supplied in the Cleanup List section of Config>General and unrelated to any scheduling, unless you happened to save the config page at the exact time it was shutting down.
Can you tell us the value of your Cleanup List in Config>General?
Re: Strange "stop" with 0.4.0 release. Did not happen with Beta
Posted: July 11th, 2008, 7:28 pm
by MajorHavoc
Thanks for the help.
schedlines = 0 7 * speedlimit 60, "0 10 * pause ", "0 19 * resume ", 1 19 * speedlimit 60
In Config>General, the cleanup value is blank.
As for what happens: I start the program when the computer starts, and it has a schedule to start and stop the DL. Stop is at 10 AM, and Start is at 6 PM. If I start by hand (click RESUME) the program resumes just fine. But if I let it stay paused until 6 PM, then it fails with the message shown when it tries to resume. In reality, I am not sure if it is exactly at the resume point, but I see that message the next time I "refresh" the web page and that is what I see, and nothing has been downloaded since the last pause command. There are also some speed limit commands as well.
Also, I have to open the Task Manager and kill the program, and relaunch to get it working again.
It does NOT happen when I click SAVE. Also, I did not have the Beta program running before I did the update.
If I resume BEFORE the resume schedule, nothing seems to happen, so I suspect it is the resume that is at fault.
Thanks. Let me know if there is anything else I can tell you.
Re: Strange "stop" with 0.4.0 release. Did not happen with Beta
Posted: July 12th, 2008, 10:11 am
by shypike
Please email your sabnzbd.log file to bugs at sabnzbd.org
That way we have more info.
The schedline you posted looks quite OK.
Re: Strange "stop" with 0.4.0 release. Did not happen with Beta
Posted: July 12th, 2008, 10:22 am
by shypike
Did you clear the cache memory of your web browser?
We have seen in the past that some browsers are too eager to re-use obsolete content.
Use Control-F5 to refresh the SABnzbd page completely in Firefox.
Otherwise use the options menu to clean the browser cache.
The error you listed before is in the code that saves Config-General,
completely unrelated to scheduling. This makes me suspect the browser cache.
The only other suggestion I have is to remove all schedules and
enter them again.
Re: Strange "stop" with 0.4.0 release. Did not happen with Beta
Posted: July 15th, 2008, 11:25 pm
by MajorHavoc
Well, I cleared the caches and have not seen the problem since. Thanks for that idea.
I would send the log files, but unfortunately, I had deleted everything already, and then remembered this bug again.
if it happens again, I will save the log files. Thanks for the help all.