Page 1 of 2

Can't access the web GUI and Sickbeard shows socket error

Posted: December 20th, 2014, 4:37 am
by feoZA
Hi there

My sab has been broken for a while now and I'm not sure why.

Running it on a Raspberry Pi alongside Sickbeard.

When I try to access the web GUI at 192.168.0.103:8080 I just get that the web page is not available.

Not of my TV shows download automatically using Sickbeard, here's what I see in the SB error logs:

Code: Select all

2014-12-18 15:56:58 SEARCHQUEUE-BACKLOG-268592 :: Unable to connect to SAB: socket error
2014-12-18 15:56:53 SEARCHQUEUE-BACKLOG-268592 :: Unable to connect to SAB: socket error
2014-12-18 15:56:48 SEARCHQUEUE-BACKLOG-268592 :: Unable to connect to SAB: socket error
2014-12-18 15:56:35 SEARCHQUEUE-BACKLOG-76733 :: Unable to connect to SAB: socket error
2014-12-18 15:56:30 SEARCHQUEUE-BACKLOG-76733 :: Unable to connect to SAB: socket error
2014-12-18 15:56:25 SEARCHQUEUE-BACKLOG-76733 :: Unable to connect to SAB: socket error
2014-12-18 15:56:15 SEARCHQUEUE-BACKLOG-248837 :: Unable to connect to SAB: socket error
2014-12-18 15:56:05 SEARCHQUEUE-BACKLOG-77666 :: Unable to connect to SAB: socket error
2014-12-18 15:56:00 SEARCHQUEUE-BACKLOG-77666 :: Unable to connect to SAB: socket error
2014-12-18 15:18:26 SEARCHQUEUE-BACKLOG-248682 :: Unable to connect to SAB: socket error
Any ideas?

When I run the 'top' command on the pi, I get this:

Image

Re: Can't access the web GUI and Sickbeard shows socket erro

Posted: December 20th, 2014, 6:58 am
by sander
Post the output of

Code: Select all

netstat -lpon | grep ^tcp
ps -ef | grep -i sabnzbd
here in this forum

Re: Can't access the web GUI and Sickbeard shows socket erro

Posted: December 20th, 2014, 7:03 am
by feoZA
sander wrote:Post the output of

Code: Select all

netstat -lpon | grep ^tcp
ps -ef | grep -i sabnzbd
here in this forum
Image

Re: Can't access the web GUI and Sickbeard shows socket erro

Posted: December 20th, 2014, 7:14 am
by sander
Assuming it's SAB that's listening on 8080, SAB is only listening to 127.0.0.1.

Change "SABnzbd Host" to 0.0.0.0 (under Config -> General), Save and Restart SABnzbd.

Re: Can't access the web GUI and Sickbeard shows socket erro

Posted: December 20th, 2014, 7:20 am
by feoZA
sander wrote:Assuming it's SAB that's listening on 8080, SAB is only listening to 127.0.0.1.

Change "SABnzbd Host" to 0.0.0.0 (under Config -> General), Save and Restart SABnzbd.
Yes, I usually accessed sabnzbd via port 8080.

But I can't get to the web GUI, so how do I change the "SABnzbd Host" to 0.0.0.0?

Re: Can't access the web GUI and Sickbeard shows socket erro

Posted: December 20th, 2014, 7:29 am
by sander
Is your Raspi connected to a screen, keyboard and mouse, and can you physically log on? If so: start a webbrowser on the Raspi, and change the SAB settings.

If not:
First stop SABnzbd (with a kill -9), then start it with "sabnzbdplus -s 0.0.0.0:8080". You can then access SAB from a remote system.

Re: Can't access the web GUI and Sickbeard shows socket erro

Posted: December 20th, 2014, 7:30 am
by feoZA
sander wrote:Is your Raspi connected to a screen, keyboard and mouse, and can you physically log on? If so: start a webbrowser on the Raspi, and change the SAB settings.

If not:
First stop SABnzbd (with a kill -9), then start it with "sabnzbdplus -s 0.0.0.0:8080". You can then access SAB from a remote system.
It's a headless Pi.

Do I just type "kill -9" from PuTTY?

Re: Can't access the web GUI and Sickbeard shows socket erro

Posted: December 20th, 2014, 7:34 am
by sander
feoZA wrote:
Do I just type "kill -9" from PuTTY?
... plus the process id (PID) of SABnzbd of course. Plus "sudo.

So:

Code: Select all

sudo kill -9 2292
in your case

Re: Can't access the web GUI and Sickbeard shows socket erro

Posted: December 20th, 2014, 7:42 am
by feoZA
sander wrote:
feoZA wrote:
Do I just type "kill -9" from PuTTY?
... plus the process id (PID) of SABnzbd of course. Plus "sudo.

So:

Code: Select all

sudo kill -9 2292
in your case
Killed it but "sabnzbdplus -s 0.0.0.0:8080" isn't working.

Image

Re: Can't access the web GUI and Sickbeard shows socket erro

Posted: December 20th, 2014, 8:58 am
by sander
You haven't sabnzbdplus in your path?! ???
Which distro are you running: Raspbian, or something else?

What is the output of:

Code: Select all

cat /etc/default/sabnzbdplus 
Post it here, and - if possible - post it as text.

Re: Can't access the web GUI and Sickbeard shows socket erro

Posted: December 20th, 2014, 9:03 am
by feoZA
sander wrote:You haven't sabnzbdplus in your path?! ???
Which distro are you running: Raspbian, or something else?

What is the output of:

Code: Select all

cat /etc/default/sabnzbdplus 
Post it here, and - if possible - post it as text.
Running Raspbian (coz I use apt-get)...

Code: Select all

pi@raspberrypi ~ $ cat /etc/default/sabnzbdplus
cat: /etc/default/sabnzbdplus: No such file or directory
Should I rather just install and reinstall?

If you, mind helping me out with the commands to do that?

Re: Can't access the web GUI and Sickbeard shows socket erro

Posted: December 20th, 2014, 9:08 am
by sander
If you have Raspbian and you have sabnzbd/sabnzbdplus installed, you should have sabnzbdplus in your path and and you should have /etc/default/sabnzbdplus.

So I'm puzzled. You could reinstall, but that is the Windows Way, so not something I would do on Linux at one; I would first try to find out what is going on.

How did you install sabnzbd? Via a plain "sudo apt-get install sabnzbdplus"?

Re: Can't access the web GUI and Sickbeard shows socket erro

Posted: December 20th, 2014, 9:12 am
by feoZA
sander wrote:If you have Raspbian and you have sabnzbd/sabnzbdplus installed, you should have sabnzbdplus in your path and and you should have /etc/default/sabnzbdplus.

So I'm puzzled. You could reinstall, but that is the Windows Way, so not something I would do on Linux at one; I would first try to find out what is going on.

How did you install sabnzbd? Via a plain "sudo apt-get install sabnzbdplus"?
I set this up ages ago following a guide on the net and I think it was installed with apt-get, yes.

My raspberry pi did run out of space a while ago so I emptied out the complete and incomplete folder of sabnzbd, not sure if that stuffed something up.

For my limited knowledge of linux, using the top command shows SABnzbd running, I changed no other settings.

Re: Can't access the web GUI and Sickbeard shows socket erro

Posted: December 20th, 2014, 9:38 am
by sander
You have /usr/local/sabnzbd/... , which I haven't got on my Raspbian. And it's version 0.7.7 ... weird.

Anyway:

Your second screenshot (so I can't copy-paste it here and I can't even see the full line ... ), shows

/usr/local/sabnzbd/SABnzbd-0.7.7/SABnzbd.py

So, can you run:

Code: Select all

sudo /usr/local/sabnzbd/SABnzbd-0.7.7/SABnzbd.py -s 0.0.0.0:8080 -b0
and then access SAB remotely?

Re: Can't access the web GUI and Sickbeard shows socket erro

Posted: December 20th, 2014, 9:43 am
by feoZA
sander wrote:You have /usr/local/sabnzbd/... , which I haven't got on my Raspbian. And it's version 0.7.7 ... weird.

Anyway:

Your second screenshot (so I can't copy-paste it here and I can't even see the full line ... ), shows

/usr/local/sabnzbd/SABnzbd-0.7.7/SABnzbd.py

So, can you run:

Code: Select all

sudo /usr/local/sabnzbd/SABnzbd-0.7.7/SABnzbd.py -s 0.0.0.0:8080 -b0
and then access SAB remotely?
Apologies for the screenshots earlier, will post the actual output text from now.

Ran that command and still can't access it remotely (aka. from my PC on the same network)

Do I need to restart the pi after running that command?