Sabnzbd crashes but no errors [Ubuntu]

Get help with all aspects of 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
PeteWilliams
Newbie
Newbie
Posts: 9
Joined: May 4th, 2021, 2:09 pm

Sabnzbd crashes but no errors [Ubuntu]

Post by PeteWilliams »

Hi,

I am running Sabnzbd 3.2.1 on Ubuntu 20.04.2.

Recently, Sabnzbd has started crashing occasionally - I can't access the web interface and the logs imply there is no activity.

However, I cannot find any errors that explain why this might be.

If I run sudo service sabnzbdplus status it seems to tell me everything is fine:

Code: Select all

May 04 20:00:40 server systemd[1]: Starting LSB: SABnzbd+ binary newsgrabber…
May 04 20:00:40 server sabnzbdplus[289345]:  * Starting SABnzbd+ binary newsgrabber
May 04 20:00:41 server sabnzbdplus[289345]:    …done.
May 04 20:00:41 server systemd[1]: Started LSB: SABnzbd+ binary newsgrabber.
If I tail my log, I can't see any problems there either:

Code: Select all

2021-05-06 10:00:12,037::INFO::[nzbstuff:1703] Checking all filenames for XXX
2021-05-06 10:00:12,038::INFO::[nzbstuff:1706] Re-sorting XXX after getting filename information
2021-05-06 10:00:13,205::INFO::[assembler:127] Decoding finished /media/hd1/downloads/incomplete/XXX.par2
2021-05-06 10:00:13,335::INFO::[assembler:127] Decoding finished /media/hd1/downloads/incomplete/XXX.part138.rar
2021-05-06 10:00:13,689::INFO::[nzbqueue:390] [N/A] Removing job XXX
2021-05-06 10:00:13,689::INFO::[nzbqueue:233] Saving queue
2021-05-06 10:00:13,692::INFO::[postproc:134] Saving postproc queue
2021-05-06 10:00:15,403::INFO::[nzbstuff:1681] Detected filename based on par2: O6lvJj3HwN4nrRCsqu5gUxhJkQntH8A4.mkv -> Jk43.mkv
2021-05-06 10:00:16,442::INFO::[nzbstuff:1703] Checking all filenames for XXX
2021-05-06 10:00:16,442::INFO::[nzbstuff:1706] Re-sorting XXX after getting filename information
Any suggestions as to what is happening, or where else I can find any errors?

Thanks
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Sabnzbd crashes but no errors

Post by safihre »

Switch logging to +Debug in the status and interface settings window.
Then let's check again at the end of the log before it stops.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
sander
Release Testers
Release Testers
Posts: 8812
Joined: January 22nd, 2008, 2:22 pm

Re: Sabnzbd crashes but no errors [Ubuntu]

Post by sander »

Recently, Sabnzbd has started crashing occasionally - I can't access the web interface and the logs imply there is no activity.
"crash" is a big, ambiguous word. So check if sabnzbd is still running:

Code: Select all

sudo ps -ef | grep -i sabnzbd

For example:

Code: Select all

$ sudo ps -ef | grep -i sabnzbd
sander   23537     1  0 13:12 ?        00:00:00 /usr/bin/python3 -OO /usr/bin/sabnzbdplus --daemon --pidfile /var/run/sabnzbdplus/pid --server 0.0.0.0
sander   24718 24691  0 13:13 pts/2    00:00:00 grep --color=auto -i sabnzbd
PeteWilliams
Newbie
Newbie
Posts: 9
Joined: May 4th, 2021, 2:09 pm

Re: Sabnzbd crashes but no errors [Ubuntu]

Post by PeteWilliams »

sander wrote: May 6th, 2021, 6:14 am "crash" is a big, ambiguous word. So check if sabnzbd is still running:
Doesn't appear to be running:

Code: Select all

pete@server:~/.sabnzbd/logs$ sudo ps -ef | grep -i sabnzbd
pete      364430  364403  0 08:57 pts/0    00:00:00 grep --color=auto -i sabnzbd
I've checked the logs with debug mode on, and can't see anything obvious:

Code: Select all

2021-05-07 05:03:40,396::DEBUG::[filesystem:868] [sabnzbd.nzbstuff.remove_admin] Deleting file /media/hd1/downloads/incomplete/XXX__ADMIN__/SABnzbd_nzf_q_a4n8hg
2021-05-07 05:03:41,294::DEBUG::[assembler:379] File contains: XXX.mkv
2021-05-07 05:03:41,619::DEBUG::[assembler:102] Decoding part of /media/hd1/downloads/incomplete/XXX.par2
2021-05-07 05:03:41,761::DEBUG::[filesystem:541] Applying permissions 0o666 (octal) to /media/hd1/downloads/incomplete/XXX.par2
2021-05-07 05:03:41,762::INFO::[assembler:127] Decoding finished /media/hd1/downloads/incomplete/XXX.par2
2021-05-07 05:03:41,762::DEBUG::[nzbstuff:450] Removing article database for SABnzbd_nzf_oousyqs9
2021-05-07 05:03:41,767::DEBUG::[filesystem:868] [sabnzbd.nzbstuff.remove_admin] Deleting file /media/hd1/downloads/incomplete/XXX(1)/__ADMIN__/SABnzbd_nzf_oousyqs9
2021-05-07 05:03:41,875::DEBUG::[par2file:174] Par2-creator of 73f35ab1aa474c3b802232370b3ece1e.par2 is: Created by par2cmdline version 0.8.1.
2021-05-07 05:03:41,876::DEBUG::[nzbstuff:1028] Got md5pack for set 73f35ab1aa474c3b802232370b3ece1e
2021-05-07 05:03:41,879::INFO::[nzbstuff:1703] Checking all filenames for XXX
2021-05-07 05:03:41,880::INFO::[nzbstuff:1706] Re-sorting XXX  after getting filename information
2021-05-07 05:03:41,881::DEBUG::[nzbstuff:951] Unwanted Extension: putting last rar after first rar
2021-05-07 05:03:41,882::DEBUG::[nzbstuff:964] Unwanted Extension: First rar at 1, Last rar at 122
2021-05-07 05:03:41,882::DEBUG::[nzbstuff:965] Unwanted Extension: Last rar is 73f35ab1aa474c3b802232370b3ece1e.part123.rar
2021-05-07 05:03:41,900::DEBUG::[nzbstuff:380] Finishing import on 73f35ab1aa474c3b802232370b3ece1e.part002.rar
2021-05-07 05:03:41,976::DEBUG::[assembler:102] Decoding part of /media/hd1/downloads/incomplete/XXX.par.vol000-001.par2
2021-05-07 05:03:41,987::DEBUG::[__init__:925] [sabnzbd.nzbstuff.finish_import] Loading data for SABnzbd_nzf_oj401ya7 from /media/hd1/downloads/incomplete/XXX(1)/__ADMIN__/SABnzbd_nzf_oj401ya7
2021-05-07 05:03:42,219::DEBUG::[downloader:451] Delaying - Decoder queue: 1 - Assembler queue: 5
2021-05-07 05:03:42,369::DEBUG::[filesystem:868] [sabnzbd.load_data] Deleting file v/__ADMIN__/SABnzbd_article_xw9an55i
2021-05-07 05:03:42,798::DEBUG::[filesystem:541] Applying permissions 0o666 (octal) to /media/hd1/downloads/incomplete/XXX.par.vol000-001.par2
2021-05-07 05:03:42,798::INFO::[assembler:127] Decoding finished /media/hd1/downloads/incomplete/XXX.par.vol000-001.par2
2021-05-07 05:03:42,798::DEBUG::[nzbstuff:450] Removing article database for SABnzbd_nzf_fd7zg0rj
2021-05-07 05:03:42,799::DEBUG::[filesystem:868] [sabnzbd.nzbstuff.remove_admin] Deleting file /media/hd1/downloads/incomplete/XXX/__ADMIN__/SABnzbd_nzf_fd7zg0rj
2021-05-07 05:03:43,496::DEBUG::[par2file:174] Par2-creator of XXX.par.vol000-001.par2 is: ParPar v0.3.2 [..app/parpar]
2021-05-07 05:03:43,497::DEBUG::[nzbstuff:1040] Got additional md5pack for set XXX.par
2021-05-07 05:03:43,514::INFO::[nzbqueue:390] [sabnzbd.assembler.run] Removing job XXX
2021-05-07 05:03:43,515::INFO::[nzbqueue:233] Saving queue
2021-05-07 05:03:43,515::DEBUG::[__init__:960] [sabnzbd.nzbqueue.save] Saving data for queue10.sab
2021-05-07 05:03:43,516::DEBUG::[__init__:892] [sabnzbd.save_admin] Saving data for queue10.sab in /home/pete/.sabnzbd/admin
2021-05-07 05:03:43,524::DEBUG::[bpsmeter:279] bps: 12472646.105698634
2021-05-07 05:03:43,528::INFO::[postproc:134] Saving postproc queue
2021-05-07 05:03:43,528::DEBUG::[__init__:960] [sabnzbd.postproc.save] Saving data for postproc2.sab
2021-05-07 05:03:43,529::DEBUG::[__init__:892] [sabnzbd.save_admin] Saving data for postproc2.sab in /home/pete/.sabnzbd/admin

However, when restarting, I am seeing this error in the web interface:

Code: Select all

ERROR a few seconds ago Loading /home/pete/.sabnzbd/admin/postproc2.sab failed
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Sabnzbd crashes but no errors [Ubuntu]

Post by safihre »

So the saving to postproc file is the last thing in the log?
Then I would try to run SABnzbd in the terminal, so you see the output in the screen. Hopefully it shows why it crashes.
Or worth clearing the whole ".sabnzbd" directory.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
sander
Release Testers
Release Testers
Posts: 8812
Joined: January 22nd, 2008, 2:22 pm

Re: Sabnzbd crashes but no errors [Ubuntu]

Post by sander »

FWIW: on my system

Code: Select all

sander@witte2004:~$ ll .sabnzbd/admin/postproc2.sab 
-rw-r--r-- 1 sander sander 18 mei  8 16:44 .sabnzbd/admin/postproc2.sab

sander@witte2004:~$ hd .sabnzbd/admin/postproc2.sab
00000000  80 05 95 07 00 00 00 00  00 00 00 4b 02 5d 94 86  |...........K.]..|
00000010  94 2e                                             |..|
00000012
... so what is that for you?
User avatar
sander
Release Testers
Release Testers
Posts: 8812
Joined: January 22nd, 2008, 2:22 pm

Re: Sabnzbd crashes but no errors [Ubuntu]

Post by sander »

With the script below you can verify your postproc2.sab is valid at all

Code: Select all

sander@witte2004:~/.sabnzbd/admin$ python3 pickle_pretty_print.py postproc2.sab 
(2, [])

with this script:

Code: Select all

import pickle
import pprint
import sys

try:
    myfile = sys.argv[1]
except:
    sys.exit("Specify pickle file as parameter")


with open(myfile, "rb") as handle:
    try:
        b = pickle.load(handle)
        pprint.pprint(b)
    except:
        print(myfile, "not a pickle file?")
        sys.exit(-1)
PeteWilliams
Newbie
Newbie
Posts: 9
Joined: May 4th, 2021, 2:09 pm

Re: Sabnzbd crashes but no errors [Ubuntu]

Post by PeteWilliams »

safihre wrote: May 8th, 2021, 1:59 pm So the saving to postproc file is the last thing in the log?
It was on that instance, but the next time it crashed it was something else. I don't recall but it looked quite innocuous.
sander wrote: May 8th, 2021, 2:07 pm FWIW: on my system

Code: Select all

sander@witte2004:~$ ll .sabnzbd/admin/postproc2.sab 
-rw-r--r-- 1 sander sander 18 mei  8 16:44 .sabnzbd/admin/postproc2.sab

sander@witte2004:~$ hd .sabnzbd/admin/postproc2.sab
00000000  80 05 95 07 00 00 00 00  00 00 00 4b 02 5d 94 86  |...........K.]..|
00000010  94 2e                                             |..|
00000012
... so what is that for you?
I get:

Code: Select all

pete@server:~$ ll .sabnzbd/admin/postproc2.sab 
-rw-rw-r-- 1 pete pete 18 May  9 21:05 .sabnzbd/admin/postproc2.sab
pete@server:~$ hd .sabnzbd/admin/postproc2.sab
00000000  80 05 95 07 00 00 00 00  00 00 00 4b 02 5d 94 86  |...........K.]..|
00000010  94 2e                                             |..|
00000012
pete@server:~$ 

The script also returned:

Code: Select all

(2, [])
User avatar
sander
Release Testers
Release Testers
Posts: 8812
Joined: January 22nd, 2008, 2:22 pm

Re: Sabnzbd crashes but no errors [Ubuntu]

Post by sander »

OK, so postproc2.sab looks normal.
It was on that instance, but the next time it crashed it was something else
Please tell what.

As this looks like real crashes:
what is in /var/log/apport.log ?

What kind of system is it? What kind of hardware exactly?
PeteWilliams
Newbie
Newbie
Posts: 9
Joined: May 4th, 2021, 2:09 pm

Re: Sabnzbd crashes but no errors [Ubuntu]

Post by PeteWilliams »

sander wrote: May 9th, 2021, 3:58 pm OK, so postproc2.sab looks normal.
It was on that instance, but the next time it crashed it was something else
Please tell what.

As this looks like real crashes:
what is in /var/log/apport.log ?

What kind of system is it? What kind of hardware exactly?
That log show this which looks suspicious, but doesn't mean much to me:

Code: Select all

ERROR: apport (pid 8745) Sat May  1 15:08:28 2021: called for pid 1786, signal 11, core limit 0, dump mode 1
ERROR: apport (pid 8745) Sat May  1 15:08:28 2021: script: /usr/bin/sabnzbdplus, interpreted by /usr/bin/python3.8 (command line "/usr/bin/python3 -OO /usr/bin/sabnzbdplus --daemon --pidfile /var/run/sabnzbdplus/pid")
ERROR: apport (pid 8745) Sat May  1 15:08:28 2021: is_closing_session(): no DBUS_SESSION_BUS_ADDRESS in environment
ERROR: apport (pid 8745) Sat May  1 15:09:17 2021: core dump exceeded 1350 MiB, dropped from /var/crash/_usr_bin_sabnzbdplus.1000.crash to avoid memory overflow
ERROR: apport (pid 8745) Sat May  1 15:09:17 2021: wrote report /var/crash/_usr_bin_sabnzbdplus.1000.crash
The system is an HP Microserver Gen 8.
User avatar
sander
Release Testers
Release Testers
Posts: 8812
Joined: January 22nd, 2008, 2:22 pm

Re: Sabnzbd crashes but no errors [Ubuntu]

Post by sander »

Ah, that's a real crash. That's bad.

Did you google the 3rd line of your logging?
Did you look at the 5th, last line of your logging

Did you uninstall and reinstall SABnzbd?

Did you run memtest86+ on your HP Microserver Gen 8?

Keeping an eye on /var/log/kern.log might be easier / more useful than on apport logging.
User avatar
sander
Release Testers
Release Testers
Posts: 8812
Joined: January 22nd, 2008, 2:22 pm

Re: Sabnzbd crashes but no errors [Ubuntu]

Post by sander »

And? Solved? Gone?
PeteWilliams
Newbie
Newbie
Posts: 9
Joined: May 4th, 2021, 2:09 pm

Re: Sabnzbd crashes but no errors [Ubuntu]

Post by PeteWilliams »

sander wrote: May 10th, 2021, 3:58 am Ah, that's a real crash. That's bad.

Did you google the 3rd line of your logging?
Did you look at the 5th, last line of your logging

Did you uninstall and reinstall SABnzbd?

Did you run memtest86+ on your HP Microserver Gen 8?

Keeping an eye on /var/log/kern.log might be easier / more useful than on apport logging.

I don't think it's crashed this week, so no updates.

I found nothing from Googling the errors.
The /var/crash directory was empty by the time I looked.
I have updated by version of SABnzbd, which I imagine is the same as uninstalling/reinstalling?

I've not done a memtest86 yet, but will do.
PeteWilliams
Newbie
Newbie
Posts: 9
Joined: May 4th, 2021, 2:09 pm

Re: Sabnzbd crashes but no errors [Ubuntu]

Post by PeteWilliams »

I've not changed anything since my last update, but it hasn't happened since, so… on hiatus?
Post Reply