Strange "stop" with 0.4.0 release. Did not happen with Beta

Report & discuss bugs found in SABnzbd
Forum rules
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.
Post Reply
MajorHavoc
Newbie
Newbie
Posts: 26
Joined: July 10th, 2008, 10:46 pm

Strange "stop" with 0.4.0 release. Did not happen with Beta

Post 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.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Strange "stop" with 0.4.0 release. Did not happen with Beta

Post 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.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Strange "stop" with 0.4.0 release. Did not happen with Beta

Post 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)?
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Strange "stop" with 0.4.0 release. Did not happen with Beta

Post 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?
MajorHavoc
Newbie
Newbie
Posts: 26
Joined: July 10th, 2008, 10:46 pm

Re: Strange "stop" with 0.4.0 release. Did not happen with Beta

Post 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.
Last edited by MajorHavoc on July 11th, 2008, 7:32 pm, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Strange "stop" with 0.4.0 release. Did not happen with Beta

Post 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.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Strange "stop" with 0.4.0 release. Did not happen with Beta

Post 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.
MajorHavoc
Newbie
Newbie
Posts: 26
Joined: July 10th, 2008, 10:46 pm

Re: Strange "stop" with 0.4.0 release. Did not happen with Beta

Post 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.
Post Reply