Page 1 of 1

sabnzbdplus-3.0.0RC1 crash on menu click

Posted: July 7th, 2020, 4:46 am
by Hairybiker
Running under Linux Mint 19.3 64bit Cinnamon.
Changed server but same HDD & OS.

Asking for config page generates the following error in the web page.
500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/cherrypy/_cprequest.py", line 670, in respond
response.body = self.handler()
File "/usr/lib/python3/dist-packages/cherrypy/lib/encoding.py", line 220, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "/usr/lib/python3/dist-packages/cherrypy/_cpdispatch.py", line 60, in __call__
return self.callable(*self.args, **self.kwargs)
File "/usr/share/sabnzbdplus/sabnzbd/interface.py", line 138, in internal_wrap
return wrap_func(*args, **kwargs)
File "/usr/share/sabnzbdplus/sabnzbd/interface.py", line 2414, in index
header = build_status(skip_dashboard=kwargs.get("skip_dashboard"))
File "/usr/share/sabnzbdplus/sabnzbd/api.py", line 1176, in build_status
info["folders"] = NzbQueue.do.scan_jobs(all_jobs=False, action=False)
File "/usr/share/sabnzbdplus/sabnzbd/decorators.py", line 49, in call_func
return func(*params, **kparams)
File "/usr/share/sabnzbdplus/sabnzbd/nzbqueue.py", line 147, in scan_jobs
items = sabnzbd.api.build_history(output=True)[0]
File "/usr/share/sabnzbdplus/sabnzbd/api.py", line 1743, in build_history
items = get_active_history(queue, items)
File "/usr/share/sabnzbdplus/sabnzbd/api.py", line 1793, in get_active_history
history = build_history_info(nzo)
File "/usr/share/sabnzbdplus/sabnzbd/database.py", line 486, in build_history_info
lines.append("%s:::%s" % (key, ";".join(results)))
TypeError: sequence item 0: expected str instance, int found

There are errors displayed on the header but I get the same crash if I try to read them and the sabnzbd.error.log is empty
Have tried removing and reinstalling sabnzbd to same result.

Re: sabnzbdplus-3.0.0RC1 crash on menu click

Posted: July 7th, 2020, 5:01 am
by Hairybiker
OK fixed it by removing the config folder and copying over the .ini file again.

Re: sabnzbdplus-3.0.0RC1 crash on menu click

Posted: July 8th, 2020, 4:32 am
by safihre
Sometimes the history can be corrupted.. Not sure really how it happens.
But indeed removing history.db fixes it,