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

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.
feoZA
Newbie
Newbie
Posts: 22
Joined: December 4th, 2012, 5:57 am

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

Post 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
User avatar
sander
Release Testers
Release Testers
Posts: 8830
Joined: January 22nd, 2008, 2:22 pm

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

Post by sander »

Post the output of

Code: Select all

netstat -lpon | grep ^tcp
ps -ef | grep -i sabnzbd
here in this forum
feoZA
Newbie
Newbie
Posts: 22
Joined: December 4th, 2012, 5:57 am

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

Post 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
User avatar
sander
Release Testers
Release Testers
Posts: 8830
Joined: January 22nd, 2008, 2:22 pm

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

Post 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.
feoZA
Newbie
Newbie
Posts: 22
Joined: December 4th, 2012, 5:57 am

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

Post 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?
User avatar
sander
Release Testers
Release Testers
Posts: 8830
Joined: January 22nd, 2008, 2:22 pm

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

Post 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.
feoZA
Newbie
Newbie
Posts: 22
Joined: December 4th, 2012, 5:57 am

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

Post 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?
User avatar
sander
Release Testers
Release Testers
Posts: 8830
Joined: January 22nd, 2008, 2:22 pm

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

Post 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
feoZA
Newbie
Newbie
Posts: 22
Joined: December 4th, 2012, 5:57 am

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

Post 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
User avatar
sander
Release Testers
Release Testers
Posts: 8830
Joined: January 22nd, 2008, 2:22 pm

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

Post 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.
feoZA
Newbie
Newbie
Posts: 22
Joined: December 4th, 2012, 5:57 am

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

Post 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?
User avatar
sander
Release Testers
Release Testers
Posts: 8830
Joined: January 22nd, 2008, 2:22 pm

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

Post 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"?
feoZA
Newbie
Newbie
Posts: 22
Joined: December 4th, 2012, 5:57 am

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

Post 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.
User avatar
sander
Release Testers
Release Testers
Posts: 8830
Joined: January 22nd, 2008, 2:22 pm

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

Post 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?
feoZA
Newbie
Newbie
Posts: 22
Joined: December 4th, 2012, 5:57 am

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

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