Page 1 of 1

Foutmeldingen na update "TypeError: sequence item 0: expected string, int found"

Posted: July 12th, 2019, 3:40 am
by denbeiren
Kan iemand mij hier verder in helpen?

Ik heb de gewone ubuntu updates gedraaid, na een reboot van de server krijg ik dit te zien op de webinterface van sabnzbd,.. :(


graag https dubbelpunt dubbelslash voorzetten,.. ik mag als nieuw lid geen links posten


pastebin punt com slash 0Qjn5hEY

EDIT door admin:

https://pastebin.com/0Qjn5hEY

https://pastebin.com/raw/0Qjn5hEY

Code: Select all

500 Internal Server Error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
  File "/usr/share/sabnzbdplus/cherrypy/_cprequest.py", line 670, in respond
    response.body = self.handler()
  File "/usr/share/sabnzbdplus/cherrypy/lib/encoding.py", line 220, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/usr/share/sabnzbdplus/cherrypy/_cpdispatch.py", line 60, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/usr/share/sabnzbdplus/sabnzbd/interface.py", line 127, in internal_wrap
    return wrap_func(*args, **kwargs)
  File "/usr/share/sabnzbdplus/sabnzbd/interface.py", line 413, in index
    history['slots'], fetched_items, history['noofslots'] = build_history(limit=cfg.history_limit(), output='json')
  File "/usr/share/sabnzbdplus/sabnzbd/api.py", line 1818, in build_history
    items = get_active_history(queue, items)
  File "/usr/share/sabnzbdplus/sabnzbd/api.py", line 1890, 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 string, int found

Re: Foutmeldingen na update "TypeError: sequence item 0: expected string, int found"

Posted: July 12th, 2019, 3:58 am
by sander
welke versie van SABnzbd (en Ubuntu) is dat?

Re: Foutmeldingen na update "TypeError: sequence item 0: expected string, int found"

Posted: July 13th, 2019, 3:26 am
by denbeiren
Ubuntu 18.04

sabnzbd kan ik niet achterhalen,.. (ken het cli commando niet)

Re: Foutmeldingen na update "TypeError: sequence item 0: expected string, int found"

Posted: July 13th, 2019, 3:53 am
by sander
denbeiren wrote:
July 13th, 2019, 3:26 am
sabnzbd kan ik niet achterhalen,.. (ken het cli commando niet)
Oh. Hoe goed ben je met Linux?

Gezien de foutmelding

Code: Select all

database.py", line 486, in build_history_info
denk ik dat je fout zit in je history/database. Is het acceptabel voor je om je history en instelling kwijt te raken, en SAB eenmalig opnieuw te moeten configureren?

Re: Foutmeldingen na update "TypeError: sequence item 0: expected string, int found"

Posted: July 13th, 2019, 10:23 am
by denbeiren
Ik ken er wel "iets" van,.. maar een doorwinterde cli gebruiker kan je me niet noemen :-)

Settings verliezen is geen enkel probleem hoor :-)

Re: Foutmeldingen na update "TypeError: sequence item 0: expected string, int found"

Posted: July 14th, 2019, 1:54 am
by safihre
Je hoeft alleen je history1.db file te verwijderen, niet al je settings.
Deze staat waarschijnlijk in de map "~/.sabnzbd/admin/"
Wel eerst SABnzbd uitschakelen, anders kan het niet!

Re: Foutmeldingen na update "TypeError: sequence item 0: expected string, int found"

Posted: July 14th, 2019, 2:18 am
by sander
Met Safihre's detail-info, moet je dit dus doen:

SABnzbd stoppen

Daarna een terminal openen
In de terminal typen:

cd
cd .sabnzbd
cd admin
mv history1.db history1.db.OUD

Daarna kan je SABnzbd weer starten

Re: Foutmeldingen na update "TypeError: sequence item 0: expected string, int found"

Posted: July 22nd, 2019, 11:10 pm
by denbeiren
Excuses voor de vertraging (ik krijg geen notificaties wanneer er antwoorden op de thread komen :s )

Advies gevolgd,.. https://pastebin.com/uZPJTdaU

Re: Foutmeldingen na update "TypeError: sequence item 0: expected string, int found"

Posted: July 23rd, 2019, 12:57 am
by sander
Raar. Ik wil graag dat je het opnieuw doet, met een extra commando, en de output hier post. Dus:

SABnzbd stoppen

Daarna een terminal openen
In de terminal typen:

Code: Select all

cd
cd .sabnzbd
cd admin
mv history1.db history1.db.OUD
ls -al
Post de output van de terminal hier

Re: Foutmeldingen na update "TypeError: sequence item 0: expected string, int found"

Posted: October 19th, 2019, 11:20 am
by jkon
Hi,

I have the same error. I'm running sabnzbd on a Synology DS716+II
I used first the SynoCommunity Package and afterwards the docker. The error happens with both.

When I delete the history1.db, as suggested above, it is fixed for the moment the issued. After some minutes it reappers.
Due to the issue sabnzbd start restarting frequently.

Thanks for any help!

Re: Foutmeldingen na update "TypeError: sequence item 0: expected string, int found"

Posted: October 23rd, 2019, 2:21 pm
by jkon
I fixed it by deleting the history1.db and also cleaned the downloads/incomplete folder

Re: Foutmeldingen na update "TypeError: sequence item 0: expected string, int found"

Posted: October 31st, 2019, 8:21 am
by safihre
Strange, maybe some old wrong data!