Linux - SAB not Starting

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
PsychoGTI
Newbie
Newbie
Posts: 8
Joined: September 25th, 2014, 11:00 pm

Linux - SAB not Starting

Post by PsychoGTI »

SAB no longer wants to start. I had an issue where the HDD had filled up 100%, and since then the system doesn't want to start. It may also be the first time that SAB has restarted since a recent update to the system. I am running OpenSUSE 12.3.

Here's the error when starting up:

Code: Select all

2014-09-25 20:54:18,370::INFO::[SABnzbd:1262] --------------------------------
2014-09-25 20:54:18,370::INFO::[SABnzbd:1263] SABnzbd.py-0.7.18 (rev=2d10f879da8f5df418a2afe52923a63fb3bf23b9)
2014-09-25 20:54:18,370::INFO::[SABnzbd:1275] Platform = posix
2014-09-25 20:54:18,370::INFO::[SABnzbd:1276] Python-version = 2.7.3 (default, Apr 14 2012, 08:58:41) [GCC]
2014-09-25 20:54:18,370::INFO::[SABnzbd:1277] Arguments = /home/paul/Programs/Usenet/SABnzbd+/SABnzbd/SABnzbd.py -f /home/paul/.sabnzbd/sabnzbd.ini
2014-09-25 20:54:18,400::DEBUG::[SABnzbd:1283] My IPv4 address = 10.80.82.100
2014-09-25 20:54:18,401::DEBUG::[SABnzbd:1295] Could not determine my IPv6 address
2014-09-25 20:54:18,401::INFO::[SABnzbd:1309] Read INI file /home/paul/.sabnzbd/sabnzbd.ini
2014-09-25 20:54:18,401::INFO::[__init__:941] Loading data for bookmarks.sab from /home/paul/.sabnzbd/admin/bookmarks.sab
2014-09-25 20:54:18,402::INFO::[__init__:941] Loading data for rss_data.sab from /home/paul/.sabnzbd/admin/rss_data.sab
2014-09-25 20:54:18,402::INFO::[__init__:941] Loading data for totals9.sab from /home/paul/.sabnzbd/admin/totals9.sab
2014-09-25 20:54:18,402::DEBUG::[bpsmeter:171] Read quota q=0.0 l=0.0 reset=0
2014-09-25 20:54:18,402::INFO::[postproc:91] Loading postproc queue
2014-09-25 20:54:18,402::INFO::[__init__:941] Loading data for postproc1.sab from /home/paul/.sabnzbd/admin/postproc1.sab
2014-09-25 20:54:18,402::INFO::[__init__:941] Loading data for queue9.sab from /home/paul/.sabnzbd/admin/queue9.sab
2014-09-25 20:54:18,402::DEBUG::[downloader:127] Initializing downloader/decoder
2014-09-25 20:54:18,403::INFO::[__init__:941] Loading data for watched_data.sab from /home/paul/.sabnzbd/admin/watched_data.sab
2014-09-25 20:54:18,403::INFO::[__init__:941] Loading data for Rating.sab from /home/paul/.sabnzbd/admin/Rating.sab
2014-09-25 20:54:18,404::INFO::[__init__:944] /home/paul/.sabnzbd/admin/Rating.sab missing, trying old cache
2014-09-25 20:54:18,404::INFO::[__init__:947] /home/paul/.sabnzbd/cache/Rating.sab missing
2014-09-25 20:54:18,404::DEBUG::[scheduler:140] Scheduling RSS interval task every 60 min (delay=27)
2014-09-25 20:54:18,404::DEBUG::[scheduler:152] Scheduling VersionCheck on day 1 at 2:33
2014-09-25 20:54:18,404::INFO::[scheduler:172] Setting schedule for midnight BPS reset
2014-09-25 20:54:18,404::INFO::[downloader:211] Resuming
2014-09-25 20:54:18,404::DEBUG::[__init__:545] PAUSED_ALL inactive
2014-09-25 20:54:18,404::INFO::[__init__:333] All processes started
2014-09-25 20:54:18,404::INFO::[SABnzbd:335] Web dir is /home/paul/Programs/Usenet/SABnzbd+/SABnzbd/interfaces/Plush
2014-09-25 20:54:18,405::INFO::[SABnzbd:335] Web dir is /home/paul/Programs/Usenet/SABnzbd+/SABnzbd/interfaces/Config
2014-09-25 20:54:18,405::DEBUG::[SABnzbd:1346] Unwanted extensions are ... []
2014-09-25 20:54:18,490::INFO::[SABnzbd:464] _yenc module... found!
2014-09-25 20:54:18,490::INFO::[SABnzbd:472] par2 binary... found (/usr/bin/par2)
2014-09-25 20:54:18,490::INFO::[SABnzbd:480] unrar binary... found (/usr/bin/unrar)
2014-09-25 20:54:18,490::INFO::[SABnzbd:485] unzip binary... found (/usr/bin/unzip)
2014-09-25 20:54:18,490::INFO::[SABnzbd:491] nice binary... found (/usr/bin/nice)
2014-09-25 20:54:18,490::INFO::[SABnzbd:495] ionice binary... found (/usr/bin/ionice)
2014-09-25 20:54:18,490::INFO::[SABnzbd:500] pyOpenSSL... found (True)
2014-09-25 20:54:18,491::INFO::[SABnzbd:1510] Starting web-interface on 0.0.0.0:8080
2014-09-25 20:54:18,491::INFO::[_cplogging:55] [25/Sep/2014:20:54:18] ENGINE Bus STARTING
2014-09-25 20:54:18,493::INFO::[_cplogging:55] [25/Sep/2014:20:54:18] ENGINE Started monitor thread '_TimeoutMonitor'.
2014-09-25 20:54:18,493::ERROR::[_cplogging:55] [25/Sep/2014:20:54:18] ENGINE Error in HTTP server: shutting down
Traceback (most recent call last):
  File "/home/paul/Programs/Usenet/SABnzbd+/SABnzbd/cherrypy/process/servers.py", line 75, in _start_http_thread
    self.httpserver.start()
  File "/home/paul/Programs/Usenet/SABnzbd+/SABnzbd/cherrypy/wsgiserver/__init__.py", line 1644, in start
    raise socket.error, msg
error: [Errno 99] Cannot assign requested address

2014-09-25 20:54:18,494::INFO::[_cplogging:55] [25/Sep/2014:20:54:18] ENGINE Bus STOPPING
2014-09-25 20:54:18,494::INFO::[_cplogging:55] [25/Sep/2014:20:54:18] ENGINE HTTP Server None already shut down
2014-09-25 20:54:18,494::INFO::[_cplogging:55] [25/Sep/2014:20:54:18] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('::1', 8080)) already shut down
2014-09-25 20:54:18,494::INFO::[_cplogging:55] [25/Sep/2014:20:54:18] ENGINE Stopped thread '_TimeoutMonitor'.
2014-09-25 20:54:18,494::INFO::[_cplogging:55] [25/Sep/2014:20:54:18] ENGINE Bus STOPPED
2014-09-25 20:54:18,494::INFO::[_cplogging:55] [25/Sep/2014:20:54:18] ENGINE Bus EXITING
2014-09-25 20:54:18,494::INFO::[_cplogging:55] [25/Sep/2014:20:54:18] ENGINE Bus EXITED
Exception in thread HTTPServer Thread-10:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/usr/lib64/python2.7/threading.py", line 504, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/paul/Programs/Usenet/SABnzbd+/SABnzbd/cherrypy/process/servers.py", line 75, in _start_http_thread
    self.httpserver.start()
  File "/home/paul/Programs/Usenet/SABnzbd+/SABnzbd/cherrypy/wsgiserver/__init__.py", line 1644, in start
    raise socket.error, msg
error: [Errno 99] Cannot assign requested address

2014-09-25 20:54:18,593::ERROR::[_cplogging:55] [25/Sep/2014:20:54:18] ENGINE Error in 'start' listener <bound method ServerAdapter.start of <cherrypy.process.servers.ServerAdapter object at 0x3676450>>
Traceback (most recent call last):
  File "/home/paul/Programs/Usenet/SABnzbd+/SABnzbd/cherrypy/process/wspbus.py", line 147, in publish
    output.append(listener(*args, **kwargs))
  File "/home/paul/Programs/Usenet/SABnzbd+/SABnzbd/cherrypy/process/servers.py", line 62, in start
    self.wait()
  File "/home/paul/Programs/Usenet/SABnzbd+/SABnzbd/cherrypy/process/servers.py", line 97, in wait
    raise self.interrupt
error: [Errno 99] Cannot assign requested address

2014-09-25 20:54:18,694::INFO::[_cplogging:55] [25/Sep/2014:20:54:18] ENGINE Serving on 0.0.0.0:8080
2014-09-25 20:54:18,694::ERROR::[_cplogging:55] [25/Sep/2014:20:54:18] ENGINE Shutting down due to error in start listener:
Traceback (most recent call last):
  File "/home/paul/Programs/Usenet/SABnzbd+/SABnzbd/cherrypy/process/wspbus.py", line 184, in start
    self.publish('start')
  File "/home/paul/Programs/Usenet/SABnzbd+/SABnzbd/cherrypy/process/wspbus.py", line 147, in publish
    output.append(listener(*args, **kwargs))
  File "/home/paul/Programs/Usenet/SABnzbd+/SABnzbd/cherrypy/process/servers.py", line 62, in start
    self.wait()
  File "/home/paul/Programs/Usenet/SABnzbd+/SABnzbd/cherrypy/process/servers.py", line 97, in wait
    raise self.interrupt
error: [Errno 99] Cannot assign requested address

2014-09-25 20:54:18,695::INFO::[_cplogging:55] [25/Sep/2014:20:54:18] ENGINE Bus STOPPING
2014-09-25 20:54:18,696::INFO::[_cplogging:55] [25/Sep/2014:20:54:18] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 8080)) shut down
2014-09-25 20:54:18,696::INFO::[_cplogging:55] [25/Sep/2014:20:54:18] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('::1', 8080)) already shut down
2014-09-25 20:54:18,696::INFO::[_cplogging:55] [25/Sep/2014:20:54:18] ENGINE No thread running for _TimeoutMonitor.
2014-09-25 20:54:18,696::INFO::[_cplogging:55] [25/Sep/2014:20:54:18] ENGINE Bus STOPPED
2014-09-25 20:54:18,697::INFO::[_cplogging:55] [25/Sep/2014:20:54:18] ENGINE Bus EXITING
2014-09-25 20:54:18,697::INFO::[_cplogging:55] [25/Sep/2014:20:54:18] ENGINE Bus EXITED
2014-09-25 20:54:18,697::ERROR::[SABnzbd:1525] Failed to start web-interface:
Traceback (most recent call last):
  File "/home/paul/Programs/Usenet/SABnzbd+/SABnzbd/SABnzbd.py", line 1517, in main
    cherrypy.engine.start()
  File "/home/paul/Programs/Usenet/SABnzbd+/SABnzbd/cherrypy/process/wspbus.py", line 184, in start
    self.publish('start')
  File "/home/paul/Programs/Usenet/SABnzbd+/SABnzbd/cherrypy/process/wspbus.py", line 147, in publish
    output.append(listener(*args, **kwargs))
  File "/home/paul/Programs/Usenet/SABnzbd+/SABnzbd/cherrypy/process/servers.py", line 62, in start
    self.wait()
  File "/home/paul/Programs/Usenet/SABnzbd+/SABnzbd/cherrypy/process/servers.py", line 97, in wait
    raise self.interrupt
error: [Errno 99] Cannot assign requested address
2014-09-25 20:54:18,697::ERROR::[SABnzbd:304] Failed to start web-interface : [Errno 99] Cannot assign requested address
2014-09-25 20:54:18,697::INFO::[__init__:371] SABnzbd shutting down...
2014-09-25 20:54:18,697::INFO::[__init__:917] Saving data for bookmarks.sab in /home/paul/.sabnzbd/admin/bookmarks.sab
2014-09-25 20:54:18,743::DEBUG::[__init__:378] Stopping URLGrabber
2014-09-25 20:54:18,743::INFO::[urlgrabber:72] URLGrabber shutting down
2014-09-25 20:54:18,743::DEBUG::[__init__:385] Stopping Newzbin-Grabber
2014-09-25 20:54:18,743::DEBUG::[__init__:392] Stopping rating
2014-09-25 20:54:18,743::DEBUG::[__init__:399] Stopping dirscanner
2014-09-25 20:54:18,744::INFO::[__init__:917] Saving data for watched_data.sab in /home/paul/.sabnzbd/admin/watched_data.sab
2014-09-25 20:54:18,744::INFO::[dirscanner:270] Dirscanner shutting down
2014-09-25 20:54:18,744::DEBUG::[__init__:408] Stopping downloader
2014-09-25 20:54:18,744::DEBUG::[__init__:411] Stopping assembler
2014-09-25 20:54:18,744::DEBUG::[__init__:418] Stopping postprocessor
2014-09-25 20:54:18,744::INFO::[postproc:85] Saving postproc queue
2014-09-25 20:54:18,744::INFO::[__init__:917] Saving data for postproc1.sab in /home/paul/.sabnzbd/admin/postproc1.sab
2014-09-25 20:54:18,744::INFO::[nzbqueue:214] Saving queue
2014-09-25 20:54:18,745::INFO::[__init__:917] Saving data for queue9.sab in /home/paul/.sabnzbd/admin/queue9.sab
2014-09-25 20:54:18,745::INFO::[__init__:917] Saving data for totals9.sab in /home/paul/.sabnzbd/admin/totals9.sab
2014-09-25 20:54:18,745::INFO::[__init__:917] Saving data for rss_data.sab in /home/paul/.sabnzbd/admin/rss_data.sab
2014-09-25 20:54:18,745::INFO::[__init__:917] Saving data for bookmarks.sab in /home/paul/.sabnzbd/admin/bookmarks.sab
2014-09-25 20:54:18,745::INFO::[__init__:917] Saving data for watched_data.sab in /home/paul/.sabnzbd/admin/watched_data.sab
2014-09-25 20:54:18,745::INFO::[postproc:85] Saving postproc queue
2014-09-25 20:54:18,746::INFO::[__init__:917] Saving data for postproc1.sab in /home/paul/.sabnzbd/admin/postproc1.sab
2014-09-25 20:54:18,746::DEBUG::[scheduler:229] Terminating scheduler
2014-09-25 20:54:18,746::INFO::[__init__:438] All processes stopped
This is when I'm running as a daemon. I'd tried standard local command line as well, and that also gives the same result. I thought that Cherrypy may be corrupt in the SAB directory, and so I re-copied the entire SAB 0.7.18 folder again from new. Still, no good.

Any idea what could be causing this? Thanks for the help in advance!
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: Linux - SAB not Starting

Post by sander »

Snippets:

Code: Select all

Starting web-interface on 0.0.0.0:8080
error: [Errno 99] Cannot assign requested address
So, first guess: there is already some other process listening on port 8080. Check with:

Code: Select all

netstat -apon | grep 8080
Post the output here.
PsychoGTI
Newbie
Newbie
Posts: 8
Joined: September 25th, 2014, 11:00 pm

Re: Linux - SAB not Starting

Post by PsychoGTI »

sander wrote:

Code: Select all

netstat -apon | grep 8080
Post the output here.
Good thinking... but nothing is listening on that port. No results were returned.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Linux - SAB not Starting

Post by shypike »

Try the real (internal) IP address instead of 0.0.0.0
0.0.0.0 means that SABnzbd should find that out by itself,
but on some systems this just doesn't work.
PsychoGTI
Newbie
Newbie
Posts: 8
Joined: September 25th, 2014, 11:00 pm

Re: Linux - SAB not Starting

Post by PsychoGTI »

shypike wrote:Try the real (internal) IP address instead of 0.0.0.0
0.0.0.0 means that SABnzbd should find that out by itself,
but on some systems this just doesn't work.
EXCELLENT! That did the trick. I changed the "host = 0.0.0.0" entry to the IP address of the port, and SAB started right up! I've tested closing it down and restarting a couple times, and everything seems good to go now! Thanks for that!

Still interested to see what may have changed... given I've run this for over 2 years now with a 0.0.0.0 IP address and only recently had an issue... guess it could be anything, especially with updates and such.
PsychoGTI
Newbie
Newbie
Posts: 8
Joined: September 25th, 2014, 11:00 pm

Re: Linux - SAB not Starting

Post by PsychoGTI »

I may have jumped the gun on this one.... The UI starts up now, but it doesn't seem to be accepting any commands from other programs. In SAB I see the following output:

Code: Select all

2014-09-26 09:20:15,282::INFO::[SABnzbd:1262] --------------------------------
2014-09-26 09:20:15,282::INFO::[SABnzbd:1263] SABnzbd.py-0.7.18 (rev=2d10f879da8f5df418a2afe52923a63fb3bf23b9)
2014-09-26 09:20:15,282::INFO::[SABnzbd:1275] Platform = posix
2014-09-26 09:20:15,282::INFO::[SABnzbd:1276] Python-version = 2.7.3 (default, Apr 14 2012, 08:58:41) [GCC]
2014-09-26 09:20:15,283::INFO::[SABnzbd:1277] Arguments = /home/paul/Programs/Usenet/SABnzbd+/SABnzbd/SABnzbd.py -f /home/paul/.sabnzbd/sabnzbd.ini
2014-09-26 09:20:15,304::DEBUG::[SABnzbd:1283] My IPv4 address = 10.80.82.100
2014-09-26 09:20:15,381::DEBUG::[SABnzbd:1295] Could not determine my IPv6 address
2014-09-26 09:20:15,381::INFO::[SABnzbd:1309] Read INI file /home/paul/.sabnzbd/sabnzbd.ini
2014-09-26 09:20:15,382::INFO::[__init__:941] Loading data for bookmarks.sab from /home/paul/.sabnzbd/admin/bookmarks.sab
2014-09-26 09:20:15,382::INFO::[__init__:941] Loading data for rss_data.sab from /home/paul/.sabnzbd/admin/rss_data.sab
2014-09-26 09:20:15,382::INFO::[__init__:941] Loading data for totals9.sab from /home/paul/.sabnzbd/admin/totals9.sab
2014-09-26 09:20:15,383::DEBUG::[bpsmeter:171] Read quota q=0.0 l=0.0 reset=0
2014-09-26 09:20:15,383::INFO::[postproc:91] Loading postproc queue
2014-09-26 09:20:15,383::INFO::[__init__:941] Loading data for postproc1.sab from /home/paul/.sabnzbd/admin/postproc1.sab
2014-09-26 09:20:15,383::INFO::[__init__:941] Loading data for queue9.sab from /home/paul/.sabnzbd/admin/queue9.sab
2014-09-26 09:20:15,383::DEBUG::[downloader:127] Initializing downloader/decoder
2014-09-26 09:20:15,384::INFO::[__init__:941] Loading data for watched_data.sab from /home/paul/.sabnzbd/admin/watched_data.sab
2014-09-26 09:20:15,384::INFO::[__init__:941] Loading data for Rating.sab from /home/paul/.sabnzbd/admin/Rating.sab
2014-09-26 09:20:15,385::INFO::[__init__:944] /home/paul/.sabnzbd/admin/Rating.sab missing, trying old cache
2014-09-26 09:20:15,385::INFO::[__init__:947] /home/paul/.sabnzbd/cache/Rating.sab missing
2014-09-26 09:20:15,385::DEBUG::[scheduler:140] Scheduling RSS interval task every 60 min (delay=49)
2014-09-26 09:20:15,385::DEBUG::[scheduler:152] Scheduling VersionCheck on day 2 at 22:27
2014-09-26 09:20:15,385::INFO::[scheduler:172] Setting schedule for midnight BPS reset
2014-09-26 09:20:15,386::INFO::[downloader:211] Resuming
2014-09-26 09:20:15,386::DEBUG::[__init__:545] PAUSED_ALL inactive
2014-09-26 09:20:15,386::INFO::[__init__:333] All processes started
2014-09-26 09:20:15,386::INFO::[SABnzbd:335] Web dir is /home/paul/Programs/Usenet/SABnzbd+/SABnzbd/interfaces/Plush
2014-09-26 09:20:15,386::INFO::[SABnzbd:335] Web dir is /home/paul/Programs/Usenet/SABnzbd+/SABnzbd/interfaces/Config
2014-09-26 09:20:15,386::DEBUG::[SABnzbd:1346] Unwanted extensions are ... []
2014-09-26 09:20:15,713::INFO::[SABnzbd:464] _yenc module... found!
2014-09-26 09:20:15,713::INFO::[SABnzbd:472] par2 binary... found (/usr/bin/par2)
2014-09-26 09:20:15,713::INFO::[SABnzbd:480] unrar binary... found (/usr/bin/unrar)
2014-09-26 09:20:15,713::INFO::[SABnzbd:485] unzip binary... found (/usr/bin/unzip)
2014-09-26 09:20:15,713::INFO::[SABnzbd:491] nice binary... found (/usr/bin/nice)
2014-09-26 09:20:15,713::INFO::[SABnzbd:495] ionice binary... found (/usr/bin/ionice)
2014-09-26 09:20:15,714::INFO::[SABnzbd:500] pyOpenSSL... found (True)
2014-09-26 09:20:15,714::INFO::[SABnzbd:1510] Starting web-interface on 10.80.82.100:8080
2014-09-26 09:20:15,715::INFO::[_cplogging:55] [26/Sep/2014:09:20:15] ENGINE Bus STARTING
2014-09-26 09:20:15,716::INFO::[_cplogging:55] [26/Sep/2014:09:20:15] ENGINE Started monitor thread '_TimeoutMonitor'.
2014-09-26 09:20:15,817::INFO::[_cplogging:55] [26/Sep/2014:09:20:15] ENGINE Serving on 10.80.82.100:8080
2014-09-26 09:20:15,817::INFO::[_cplogging:55] [26/Sep/2014:09:20:15] ENGINE Bus STARTED
2014-09-26 09:20:15,994::DEBUG::[misc:599] Checked for a new release, cur= 71899, latest= 71899 (on http://sourceforge.net/projects/sabnzbdplus/files/sabnzbdplus/0.7.18/)
2014-09-26 09:20:15,994::INFO::[SABnzbd:1579] Starting SABnzbd.py-0.7.18
2014-09-26 09:20:15,994::DEBUG::[__init__:344] Starting postprocessor
2014-09-26 09:20:15,994::DEBUG::[__init__:347] Starting assembler
2014-09-26 09:20:15,994::DEBUG::[__init__:350] Starting downloader
2014-09-26 09:20:15,994::DEBUG::[scheduler:188] Starting scheduler
2014-09-26 09:20:15,995::DEBUG::[__init__:355] Starting dirscanner
2014-09-26 09:20:15,995::INFO::[dirscanner:279] Dirscanner starting up
2014-09-26 09:20:15,995::DEBUG::[__init__:362] Starting urlgrabber
2014-09-26 09:20:15,996::INFO::[urlgrabber:77] URLGrabber starting up
2014-09-26 09:23:47,531::DEBUG::[interface:421] API-call from 10.80.82.110 [Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0] {'output': 'json', 'apikey': 'XXXXXX', 'mode': 'qstatus', 'ma_username': 'paul', 'ma_password': 'XXXXXX'}
2014-09-26 09:28:47,537::DEBUG::[interface:421] API-call from 10.80.82.110 [Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0] {'output': 'json', 'apikey': 'XXXXXX', 'mode': 'qstatus', 'ma_username': 'paul', 'ma_password': 'XXXXXX'}
2014-09-26 09:33:47,542::DEBUG::[interface:421] API-call from 10.80.82.110 [Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0] {'output': 'json', 'apikey': 'XXXXXX', 'mode': 'qstatus', 'ma_username': 'paul', 'ma_password': 'XXXXXX'}
2014-09-26 09:38:47,548::DEBUG::[interface:421] API-call from 10.80.82.110 [Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0] {'output': 'json', 'apikey': 'XXXXXX', 'mode': 'qstatus', 'ma_username': 'paul', 'ma_password': 'XXXXXX'}
2014-09-26 09:43:47,553::DEBUG::[interface:421] API-call from 10.80.82.110 [Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0] {'output': 'json', 'apikey': 'XXXXXX', 'mode': 'qstatus', 'ma_username': 'paul', 'ma_password': 'XXXXXX'}
2014-09-26 09:48:47,558::DEBUG::[interface:421] API-call from 10.80.82.110 [Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0] {'output': 'json', 'apikey': 'XXXXXX', 'mode': 'qstatus', 'ma_username': 'paul', 'ma_password': 'XXXXXX'}
However, in this case the logs from SICKBEARD complain that there is no response:

Code: Select all

2014-09-26 09:25:31 SEARCHQUEUE-RSS-SEARCH :: Unable to connect to SAB: socket error : error [Errno 101] Network is unreachable
Any thoughts on why this has become an issue now? SAB is obviously getting the request and the credentials are correct (I obfuscated them above), but is not adding the download session nor responding to the request.
PsychoGTI
Newbie
Newbie
Posts: 8
Joined: September 25th, 2014, 11:00 pm

Re: Linux - SAB not Starting

Post by PsychoGTI »

Testing with an NZB File.... manually downloading the file and then adding it to SAB results in a successful download and post processing.... just seems to be API adds not working now.
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: Linux - SAB not Starting

Post by sander »

shypike wrote:Try the real (internal) IP address instead of 0.0.0.0
0.0.0.0 means that SABnzbd should find that out by itself,
but on some systems this just doesn't work.
Shypike, can't we program that workaround into SABnzbd itself? So: if that error occurs, and cherryhost/browserhost is set to 0.0.0.0 (or ::1), then back down to the IPv4 address that SABnzbd can find itself (like at startup "[SABnzbd:1283] My IPv4 address = 192.168.1.113").

I would think that could be done in SABnzbd.py lines 1510 - 1533, probably directly after line 1527 "except socket.error, error:"

EDIT:

... or just before those lines 1510-1533 a test-bind of what cherrypy is going to do. So something like ...

Code: Select all

import socket 
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 

try:
	server.bind(("20.15.10.5",9999)) 
	server.close()
except socket.error, e :
	print "Ouch: Socket error ... ", e
except:
	print "bind did not succeed for some unknown reason"

User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Linux - SAB not Starting

Post by shypike »

PsychoGTI wrote: However, in this case the logs from SICKBEARD complain that there is no response:
Which IP does SickBeard assume SABnzbd has? What does its setup show?
The CherryPy library (and those of Python itself) are sensitive to less than completely correct network setups.
Since you changes SABnzbd host address, you may have to tell SickBeard similarly.
PsychoGTI
Newbie
Newbie
Posts: 8
Joined: September 25th, 2014, 11:00 pm

Re: Linux - SAB not Starting

Post by PsychoGTI »

That did it! Thanks for the tip Shypike! I changed Sickbeard and CouchPotato to point to the IP Address instead of localhost, and it worked! Guess there is something wrong with the response if not tied explicitly to the IP Address, even though they are on the same machine.

Thanks again!
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Linux - SAB not Starting

Post by shypike »

The operating system considers Localhost and the IP address to be two different network entities.
Post Reply