Page 1 of 1

Raspbian Jessie: Service is not running after a few minutes

Posted: September 14th, 2017, 9:15 pm
by NotANoobLol
Hey Folks,

first a few Infos:
Raspbian 8 (Jessie) installed.
Current version of SABnzbd: 2.3.0Alpha2
after installing SAByenc via PPA yesterday I'm expeciencing a weird issue.
Usually SABnzbd works as a service including autostart after rebooting/startup the raspberrypi.

I'm experiencing the issue, that the service seems to stop after a while. "sabnzbdplus" shows up in "top" but I can't accsess it via the browser. However IF i can accsess it via the browser the webinterface tells me, that it has lost the connection to the server. Which is werird because it shows up in top...
Screenshot: https://imgur.com/a/Rsf3C

If I restart the service via "sudo service sabnzbdplus restart" it works again for a few Minutes but then I can't accsess it via the browser and the download seems to stop too.

I checked the errorlog in ~/.sabnzbd/logs which was literally empty. Afterwards I checked the regular log but there are only [Info] entries and no errors.
Besides of installing SABYenc yesterday via PPA i have not changed any settings or else.

Since I'm not sure where to look else for hints of errors I'm posting here. I hope someone can help me out here.

Cheers

Re: Raspbian Jessie: Service is not running after a few minutes

Posted: September 14th, 2017, 11:39 pm
by safihre
Are you able to enter the interface at any time?
What happens if you just start sabnzbdplus from the command line?
Can you start it like this:
sabnzbdplus -l2
This will enable Debug logging and now you should either in the console or in the log files see why it shuts down.

Re: Raspbian Jessie: Service is not running after a few minutes

Posted: September 15th, 2017, 8:23 am
by NotANoobLol
safihre wrote: September 14th, 2017, 11:39 pm Are you able to enter the interface at any time?
What happens if you just start sabnzbdplus from the command line?
Can you start it like this:
sabnzbdplus -l2
This will enable Debug logging and now you should either in the console or in the log files see why it shuts down.
The issue happens again. I used the following command to restart sabnzbdplus again

Code: Select all

sabnzbdplus -l2 >> sabnzbd.log
I'll get back to you as soon as the error shows up again.

Re: Raspbian Jessie: Service is not running after a few minutes

Posted: September 16th, 2017, 1:31 am
by NotANoobLol
safihre wrote: September 14th, 2017, 11:39 pm Are you able to enter the interface at any time?
What happens if you just start sabnzbdplus from the command line?
Can you start it like this:
sabnzbdplus -l2
This will enable Debug logging and now you should either in the console or in the log files see why it shuts down.
The issue seems to happen after one nzb is finished and SABnzbd wants to start to download the next in the queue.
I get a "Speicherzugriffsfehler" which translates to memory access error.

But for the record: the harddrive has about 800 GB space left which is more than enough for the file I've downloaded.

Re: Raspbian Jessie: Service is not running after a few minutes

Posted: September 16th, 2017, 1:41 am
by safihre
Maybe you can share that part of the logging here so we can better understand?

Re: Raspbian Jessie: Service is not running after a few minutes

Posted: September 16th, 2017, 4:33 am
by sander
"Speicherzugriffsfehler" is not a word in/from SABnzbd.

Speicherzugriffsfehler seems to be Segmentation Fault in English. If that is true: a segfault is very bad.

What is the output of "free -m"?

Re: Raspbian Jessie: Service is not running after a few minutes

Posted: September 16th, 2017, 7:42 am
by NotANoobLol
safihre wrote: September 16th, 2017, 1:41 am Maybe you can share that part of the logging here so we can better understand?
Unfortunateley my created logfiles for that issue are empty.... I obviously screwed up the command.
But I remember that it was like:

Code: Select all

decoding: NZB:__Admin___
Speicherzugriffsfehler
sander wrote: September 16th, 2017, 4:33 am "Speicherzugriffsfehler" is not a word in/from SABnzbd.

Speicherzugriffsfehler seems to be Segmentation Fault in English. If that is true: a segfault is very bad.

What is the output of "free -m"?
Are you sure? The German translation is very well tbh. Not sure if that changes the Output in the commandline tbh.

Code: Select all

$ free -m
             total       used       free     shared    buffers     cached
Mem:           970        889         81         10         74        150
-/+ buffers/cache:        664        306
Swap:           99         98          1
(CPU Rate is at about 90, the Raspberry is doing stuff.)

Re: Raspbian Jessie: Service is not running after a few minutes

Posted: September 16th, 2017, 9:34 am
by sander
So you have swap (good), but it's almost completely used ... that is not so good. And it might explain memory problems.

Anyway ... back to SABnzbd: let's do it the easy way and just run SABnzbd from the commandline, with logging.
First make sure SABnzbd is not running anymore. Then open a terminal on your Raspi, and in that terminal start SABnzbd:

Code: Select all

sabnzbdplus -l2
Start downloading.
As soon as you have the "Speicherzugriffsfehler", post what's in the terminal here as text or as picture/gif. If the forum does not allow to do that, send me a PM

Re: Raspbian Jessie: Service is not running after a few minutes

Posted: September 17th, 2017, 3:56 am
by sander
@NotANoobLol Does the above work for you?