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

Stel hier je vragen in het Nederlands.
Je zult sneller (en misschien betere) antwoorden in de engelstalige "boards" krijgen. TIP: je kunt je "profile" ook op Nederlands instellen.
Post Reply
denbeiren
Newbie
Newbie
Posts: 4
Joined: July 12th, 2019, 3:33 am

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

Post 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

User avatar
sander
Release Testers
Release Testers
Posts: 7052
Joined: January 22nd, 2008, 2:22 pm

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

Post by sander »

welke versie van SABnzbd (en Ubuntu) is dat?

denbeiren
Newbie
Newbie
Posts: 4
Joined: July 12th, 2019, 3:33 am

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

Post by denbeiren »

Ubuntu 18.04

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

User avatar
sander
Release Testers
Release Testers
Posts: 7052
Joined: January 22nd, 2008, 2:22 pm

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

Post 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?

denbeiren
Newbie
Newbie
Posts: 4
Joined: July 12th, 2019, 3:33 am

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

Post 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 :-)

User avatar
safihre
Administrator
Administrator
Posts: 3698
Joined: April 30th, 2015, 7:35 am
Location: Switzerland
Contact:

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

Post 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!

User avatar
sander
Release Testers
Release Testers
Posts: 7052
Joined: January 22nd, 2008, 2:22 pm

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

Post 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

denbeiren
Newbie
Newbie
Posts: 4
Joined: July 12th, 2019, 3:33 am

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

Post by denbeiren »

Excuses voor de vertraging (ik krijg geen notificaties wanneer er antwoorden op de thread komen :s )

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

User avatar
sander
Release Testers
Release Testers
Posts: 7052
Joined: January 22nd, 2008, 2:22 pm

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

Post 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

jkon
Newbie
Newbie
Posts: 2
Joined: October 19th, 2019, 10:26 am

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

Post 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!

jkon
Newbie
Newbie
Posts: 2
Joined: October 19th, 2019, 10:26 am

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

Post by jkon »

I fixed it by deleting the history1.db and also cleaned the downloads/incomplete folder

User avatar
safihre
Administrator
Administrator
Posts: 3698
Joined: April 30th, 2015, 7:35 am
Location: Switzerland
Contact:

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

Post by safihre »

Strange, maybe some old wrong data!

Post Reply