Page 1 of 2

SABnzbd 0.7.0 - FreeBSD8.3

Posted: June 17th, 2012, 3:09 pm
by icemang
Hello, I am attempting to update to 0.7.0. For some background information I use the FreeBSD ports tree to install the dependencies, but anytime I upgrade I just drop in the source code and run it on my own. This has worked for a few years/upgrades on sab for me until now.

When I saw 7 was released, I dropped in the code like normal, and tried to start it but got errors, I thought it might be a conflict with my config/datafiles, so I decided to test opening it by itself having it create new config/datafiles. It still did not work this way.

I have put the output below of what I get when I try to start it up.

Code: Select all

2012-06-17 13:06:25,662::INFO::[SABnzbd:1248] --------------------------------
2012-06-17 13:06:25,662::INFO::[SABnzbd:1249] SABnzbd.py-0.7.0 (rev=d88b5a3b3e26beecaa4b7f8cbb5f2901de3d6024)
2012-06-17 13:06:25,663::INFO::[SABnzbd:1261] Platform = posix
2012-06-17 13:06:25,663::INFO::[SABnzbd:1262] Python-version = 2.7.3 (default, Jun 15 2012, 08:29:18)
[GCC 4.2.2 20070831 prerelease [FreeBSD]]
2012-06-17 13:06:25,663::INFO::[SABnzbd:1263] Arguments = ./SABnzbd.py
2012-06-17 13:06:25,663::INFO::[SABnzbd:1276] Read INI file /usr/home/root/.sabnzbd/sabnzbd.ini
2012-06-17 13:06:25,664::INFO::[__init__:904] Loading data for bookmarks.sab from /usr/home/root/.sabnzbd/admin/bookmarks.sab
2012-06-17 13:06:25,664::INFO::[__init__:907] /usr/home/root/.sabnzbd/admin/bookmarks.sab missing, trying old cache
2012-06-17 13:06:25,664::INFO::[__init__:910] /usr/home/root/.sabnzbd/cache/bookmarks.sab missing
2012-06-17 13:06:25,665::INFO::[__init__:904] Loading data for rss_data.sab from /usr/home/root/.sabnzbd/admin/rss_data.sab
2012-06-17 13:06:25,665::INFO::[__init__:907] /usr/home/root/.sabnzbd/admin/rss_data.sab missing, trying old cache
2012-06-17 13:06:25,665::INFO::[__init__:910] /usr/home/root/.sabnzbd/cache/rss_data.sab missing
2012-06-17 13:06:25,665::INFO::[__init__:904] Loading data for totals9.sab from /usr/home/root/.sabnzbd/admin/totals9.sab
2012-06-17 13:06:25,665::INFO::[__init__:907] /usr/home/root/.sabnzbd/admin/totals9.sab missing, trying old cache
2012-06-17 13:06:25,666::INFO::[__init__:910] /usr/home/root/.sabnzbd/cache/totals9.sab missing
2012-06-17 13:06:25,670::INFO::[postproc:90] Loading postproc queue
2012-06-17 13:06:25,670::INFO::[__init__:904] Loading data for postproc1.sab from /usr/home/root/.sabnzbd/admin/postproc1.sab
2012-06-17 13:06:25,670::INFO::[__init__:907] /usr/home/root/.sabnzbd/admin/postproc1.sab missing, trying old cache
2012-06-17 13:06:25,671::INFO::[__init__:910] /usr/home/root/.sabnzbd/cache/postproc1.sab missing
2012-06-17 13:06:25,671::INFO::[__init__:904] Loading data for queue9.sab from /usr/home/root/.sabnzbd/admin/queue9.sab
2012-06-17 13:06:25,671::INFO::[__init__:907] /usr/home/root/.sabnzbd/admin/queue9.sab missing, trying old cache
2012-06-17 13:06:25,671::INFO::[__init__:910] /usr/home/root/.sabnzbd/cache/queue9.sab missing
2012-06-17 13:06:25,672::INFO::[__init__:904] Loading data for watched_data.sab from /usr/home/root/.sabnzbd/admin/watched_data.sab
2012-06-17 13:06:25,672::INFO::[__init__:907] /usr/home/root/.sabnzbd/admin/watched_data.sab missing, trying old cache
2012-06-17 13:06:25,672::INFO::[__init__:910] /usr/home/root/.sabnzbd/cache/watched_data.sab missing
2012-06-17 13:06:25,673::INFO::[downloader:208] Resuming
2012-06-17 13:06:25,677::INFO::[__init__:314] All processes started
2012-06-17 13:06:25,677::INFO::[SABnzbd:332] Web dir is /datapool/systemfiles/SABnzbd-0.7.0/interfaces/Plush
2012-06-17 13:06:25,678::INFO::[SABnzbd:332] Web dir is /datapool/systemfiles/SABnzbd-0.7.0/interfaces/Config
2012-06-17 13:06:25,681::INFO::[SABnzbd:461] _yenc module... found!
2012-06-17 13:06:25,681::INFO::[SABnzbd:469] par2 binary... found (/usr/local/bin/par2)
2012-06-17 13:06:25,682::INFO::[SABnzbd:477] unrar binary... found (/usr/local/bin/unrar)
2012-06-17 13:06:25,682::INFO::[SABnzbd:482] unzip binary... found (/usr/local/bin/unzip)
2012-06-17 13:06:25,682::INFO::[SABnzbd:488] nice binary... found (/usr/bin/nice)
2012-06-17 13:06:25,682::INFO::[SABnzbd:494] ionice binary... NOT found!
2012-06-17 13:06:25,682::INFO::[SABnzbd:497] pyOpenSSL... found (True)
2012-06-17 13:06:25,683::INFO::[SABnzbd:1459] Starting web-interface on 0.0.0.0:8085
2012-06-17 13:06:25,684::INFO::[_cplogging:55] [17/Jun/2012:13:06:25] ENGINE Bus STARTING
2012-06-17 13:06:25,686::INFO::[_cplogging:55] [17/Jun/2012:13:06:25] ENGINE Started monitor thread '_TimeoutMonitor'.
2012-06-17 13:06:25,687::ERROR::[_cplogging:55] [17/Jun/2012:13:06:25] ENGINE Error in 'start' listener <bound method ServerAdapter.start of <cherrypy.process.servers.ServerAdapter object at 0x80484f910>>
Traceback (most recent call last):
  File "/datapool/systemfiles/SABnzbd-0.7.0/cherrypy/process/wspbus.py", line 147, in publish
    output.append(listener(*args, **kwargs))
  File "/datapool/systemfiles/SABnzbd-0.7.0/cherrypy/process/servers.py", line 55, in start
    wait_for_free_port(*self.bind_addr)
  File "/datapool/systemfiles/SABnzbd-0.7.0/cherrypy/process/servers.py", line 253, in wait_for_free_port
    check_port(host, port, timeout=0.1)
  File "/datapool/systemfiles/SABnzbd-0.7.0/cherrypy/process/servers.py", line 228, in check_port
    socket.SOCK_STREAM):
TypeError: getaddrinfo() argument 1 must be string or None

2012-06-17 13:06:25,906::INFO::[_cplogging:55] [17/Jun/2012:13:06:25] ENGINE Serving on 0.0.0.0:8085
2012-06-17 13:06:25,907::ERROR::[_cplogging:55] [17/Jun/2012:13:06:25] ENGINE Shutting down due to error in start listener:
Traceback (most recent call last):
  File "/datapool/systemfiles/SABnzbd-0.7.0/cherrypy/process/wspbus.py", line 184, in start
    self.publish('start')
  File "/datapool/systemfiles/SABnzbd-0.7.0/cherrypy/process/wspbus.py", line 147, in publish
    output.append(listener(*args, **kwargs))
  File "/datapool/systemfiles/SABnzbd-0.7.0/cherrypy/process/servers.py", line 55, in start
    wait_for_free_port(*self.bind_addr)
  File "/datapool/systemfiles/SABnzbd-0.7.0/cherrypy/process/servers.py", line 253, in wait_for_free_port
    check_port(host, port, timeout=0.1)
  File "/datapool/systemfiles/SABnzbd-0.7.0/cherrypy/process/servers.py", line 228, in check_port
    socket.SOCK_STREAM):
TypeError: getaddrinfo() argument 1 must be string or None

2012-06-17 13:06:25,908::INFO::[_cplogging:55] [17/Jun/2012:13:06:25] ENGINE Bus STOPPING
2012-06-17 13:06:25,909::INFO::[_cplogging:55] [17/Jun/2012:13:06:25] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 8085)) shut down
2012-06-17 13:06:25,909::INFO::[_cplogging:55] [17/Jun/2012:13:06:25] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer((28, 8085)) already shut down
2012-06-17 13:06:25,966::INFO::[_cplogging:55] [17/Jun/2012:13:06:25] ENGINE Stopped thread '_TimeoutMonitor'.
2012-06-17 13:06:25,966::INFO::[_cplogging:55] [17/Jun/2012:13:06:25] ENGINE Bus STOPPED
2012-06-17 13:06:25,967::INFO::[_cplogging:55] [17/Jun/2012:13:06:25] ENGINE Bus EXITING
2012-06-17 13:06:25,967::INFO::[_cplogging:55] [17/Jun/2012:13:06:25] ENGINE Bus EXITED
2012-06-17 13:06:25,967::ERROR::[SABnzbd:1480] Failed to start web-interface:
Traceback (most recent call last):
  File "./SABnzbd.py", line 1466, in main
    cherrypy.engine.start()
  File "/datapool/systemfiles/SABnzbd-0.7.0/cherrypy/process/wspbus.py", line 184, in start
    self.publish('start')
  File "/datapool/systemfiles/SABnzbd-0.7.0/cherrypy/process/wspbus.py", line 147, in publish
    output.append(listener(*args, **kwargs))
  File "/datapool/systemfiles/SABnzbd-0.7.0/cherrypy/process/servers.py", line 55, in start
    wait_for_free_port(*self.bind_addr)
  File "/datapool/systemfiles/SABnzbd-0.7.0/cherrypy/process/servers.py", line 253, in wait_for_free_port
    check_port(host, port, timeout=0.1)
  File "/datapool/systemfiles/SABnzbd-0.7.0/cherrypy/process/servers.py", line 228, in check_port
    socket.SOCK_STREAM):
TypeError: getaddrinfo() argument 1 must be string or None
2012-06-17 13:06:25,969::ERROR::[SABnzbd:301] Failed to start web-interface :
2012-06-17 13:06:25,969::INFO::[panic:243] Lauching browser with /tmp/tmp6RqgAT.html
2012-06-17 13:06:25,970::INFO::[__init__:350] SABnzbd shutting down...
2012-06-17 13:06:25,970::INFO::[__init__:880] Saving data for bookmarks.sab in /usr/home/root/.sabnzbd/admin/bookmarks.sab
2012-06-17 13:06:25,970::INFO::[urlgrabber:73] URLGrabber shutting down
2012-06-17 13:06:25,970::INFO::[__init__:880] Saving data for watched_data.sab in /usr/home/root/.sabnzbd/admin/watched_data.sab
2012-06-17 13:06:25,971::INFO::[dirscanner:256] Dirscanner shutting down
2012-06-17 13:06:25,971::INFO::[notifier:87] Sending registration to localhost:23053
2012-06-17 13:06:26,476::INFO::[postproc:84] Saving postproc queue
2012-06-17 13:06:26,476::INFO::[__init__:880] Saving data for postproc1.sab in /usr/home/root/.sabnzbd/admin/postproc1.sab
2012-06-17 13:06:26,477::INFO::[nzbqueue:174] Saving queue
2012-06-17 13:06:26,477::INFO::[__init__:880] Saving data for queue9.sab in /usr/home/root/.sabnzbd/admin/queue9.sab
2012-06-17 13:06:26,478::INFO::[__init__:880] Saving data for rss_data.sab in /usr/home/root/.sabnzbd/admin/rss_data.sab
2012-06-17 13:06:26,478::INFO::[__init__:880] Saving data for bookmarks.sab in /usr/home/root/.sabnzbd/admin/bookmarks.sab
2012-06-17 13:06:26,478::INFO::[__init__:880] Saving data for watched_data.sab in /usr/home/root/.sabnzbd/admin/watched_data.sab
2012-06-17 13:06:26,479::INFO::[postproc:84] Saving postproc queue
2012-06-17 13:06:26,479::INFO::[__init__:880] Saving data for postproc1.sab in /usr/home/root/.sabnzbd/admin/postproc1.sab
2012-06-17 13:06:26,479::INFO::[__init__:410] All processes stopped
I appreciate any help that could be provided.

(As a side note, I am currently using 0.6.15 successfully using the same methods that I am testing with 0.7.0)

Re: Help With Categories

Posted: June 17th, 2012, 3:40 pm
by shypike
First make sure that this works:
uname -n
ping <name from uname>

Re: SABnzbd 0.7.0 - FreeBSD8.3

Posted: June 17th, 2012, 4:30 pm
by icemang
Initially that did not work (my hostname wouldn't resolve). So I changed my /etc/hosts config to this:

Code: Select all

::1                     localhost localhost.my.domain
127.0.0.1               localhost localhost.my.domain
10.0.0.1                Jarvis
10.0.0.1                Jarvis.
Which now results in a proper ping:

Code: Select all

[root@Jarvis /datapool/systemfiles/SABnzbd]# uname -n
Jarvis
[root@Jarvis /datapool/systemfiles/SABnzbd]# ping Jarvis
PING Jarvis (10.0.0.1): 56 data bytes
64 bytes from 10.0.0.1: icmp_seq=0 ttl=64 time=0.011 ms
64 bytes from 10.0.0.1: icmp_seq=1 ttl=64 time=0.016 ms
I remove any previous configs, and then startup - everything appears to be ok? But I cannot access it by putting this into my browser: http://10.0.0.1:8080/sabnzbd

Code: Select all

[root@Jarvis /datapool/systemfiles/SABnzbd]# rm -rf /usr/home/root/.sabnzbd/
[root@Jarvis /datapool/systemfiles/SABnzbd]# ./SABnzbd.py
2012-06-17 14:15:29,874::INFO::[SABnzbd:1248] --------------------------------
2012-06-17 14:15:29,875::INFO::[SABnzbd:1249] SABnzbd.py-0.7.0 (rev=d88b5a3b3e26beecaa4b7f8cbb5f2901de3d6024)
2012-06-17 14:15:29,875::INFO::[SABnzbd:1261] Platform = posix
2012-06-17 14:15:29,875::INFO::[SABnzbd:1262] Python-version = 2.7.3 (default, Jun 15 2012, 08:29:18)
[GCC 4.2.2 20070831 prerelease [FreeBSD]]
2012-06-17 14:15:29,875::INFO::[SABnzbd:1263] Arguments = ./SABnzbd.py
2012-06-17 14:15:29,876::INFO::[SABnzbd:1276] Read INI file /usr/home/root/.sabnzbd/sabnzbd.ini
2012-06-17 14:15:29,884::INFO::[__init__:904] Loading data for bookmarks.sab from /usr/home/root/.sabnzbd/admin/bookmarks.sab
2012-06-17 14:15:29,885::INFO::[__init__:907] /usr/home/root/.sabnzbd/admin/bookmarks.sab missing, trying old cache
2012-06-17 14:15:29,885::INFO::[__init__:910] /usr/home/root/.sabnzbd/cache/bookmarks.sab missing
2012-06-17 14:15:29,886::INFO::[__init__:904] Loading data for rss_data.sab from /usr/home/root/.sabnzbd/admin/rss_data.sab
2012-06-17 14:15:29,886::INFO::[__init__:907] /usr/home/root/.sabnzbd/admin/rss_data.sab missing, trying old cache
2012-06-17 14:15:29,886::INFO::[__init__:910] /usr/home/root/.sabnzbd/cache/rss_data.sab missing
2012-06-17 14:15:29,886::INFO::[__init__:904] Loading data for totals9.sab from /usr/home/root/.sabnzbd/admin/totals9.sab
2012-06-17 14:15:29,887::INFO::[__init__:907] /usr/home/root/.sabnzbd/admin/totals9.sab missing, trying old cache
2012-06-17 14:15:29,887::INFO::[__init__:910] /usr/home/root/.sabnzbd/cache/totals9.sab missing
2012-06-17 14:15:29,891::INFO::[postproc:90] Loading postproc queue
2012-06-17 14:15:29,891::INFO::[__init__:904] Loading data for postproc1.sab from /usr/home/root/.sabnzbd/admin/postproc1.sab
2012-06-17 14:15:29,891::INFO::[__init__:907] /usr/home/root/.sabnzbd/admin/postproc1.sab missing, trying old cache
2012-06-17 14:15:29,892::INFO::[__init__:910] /usr/home/root/.sabnzbd/cache/postproc1.sab missing
2012-06-17 14:15:29,892::INFO::[__init__:904] Loading data for queue9.sab from /usr/home/root/.sabnzbd/admin/queue9.sab
2012-06-17 14:15:29,892::INFO::[__init__:907] /usr/home/root/.sabnzbd/admin/queue9.sab missing, trying old cache
2012-06-17 14:15:29,892::INFO::[__init__:910] /usr/home/root/.sabnzbd/cache/queue9.sab missing
2012-06-17 14:15:29,893::INFO::[__init__:904] Loading data for watched_data.sab from /usr/home/root/.sabnzbd/admin/watched_data.sab
2012-06-17 14:15:29,893::INFO::[__init__:907] /usr/home/root/.sabnzbd/admin/watched_data.sab missing, trying old cache
2012-06-17 14:15:29,894::INFO::[__init__:910] /usr/home/root/.sabnzbd/cache/watched_data.sab missing
2012-06-17 14:15:29,894::INFO::[downloader:208] Resuming
2012-06-17 14:15:29,898::INFO::[__init__:314] All processes started
2012-06-17 14:15:29,899::INFO::[SABnzbd:332] Web dir is /datapool/systemfiles/SABnzbd/interfaces/Plush
2012-06-17 14:15:29,938::INFO::[SABnzbd:332] Web dir is /datapool/systemfiles/SABnzbd/interfaces/Config
2012-06-17 14:15:29,942::INFO::[SABnzbd:461] _yenc module... found!
2012-06-17 14:15:29,943::INFO::[SABnzbd:469] par2 binary... found (/usr/local/bin/par2)
2012-06-17 14:15:29,943::INFO::[SABnzbd:477] unrar binary... found (/usr/local/bin/unrar)
2012-06-17 14:15:29,943::INFO::[SABnzbd:482] unzip binary... found (/usr/local/bin/unzip)
2012-06-17 14:15:29,943::INFO::[SABnzbd:488] nice binary... found (/usr/bin/nice)
2012-06-17 14:15:29,944::INFO::[SABnzbd:494] ionice binary... NOT found!
2012-06-17 14:15:29,944::INFO::[SABnzbd:497] pyOpenSSL... found (True)
2012-06-17 14:15:29,945::INFO::[SABnzbd:1459] Starting web-interface on 127.0.0.1:8080
2012-06-17 14:15:29,945::INFO::[_cplogging:55] [17/Jun/2012:14:15:29] ENGINE Bus STARTING
2012-06-17 14:15:29,948::INFO::[_cplogging:55] [17/Jun/2012:14:15:29] ENGINE Started monitor thread '_TimeoutMonitor'.
2012-06-17 14:15:30,166::INFO::[_cplogging:55] [17/Jun/2012:14:15:30] ENGINE Serving on 127.0.0.1:8080
2012-06-17 14:15:30,167::INFO::[_cplogging:55] [17/Jun/2012:14:15:30] ENGINE Bus STARTED
2012-06-17 14:15:30,167::INFO::[panic:243] Lauching browser with http://127.0.0.1:8080/sabnzbd
2012-06-17 14:15:30,168::INFO::[notifier:87] Sending registration to localhost:23053
2012-06-17 14:15:30,967::INFO::[SABnzbd:1528] Starting SABnzbd.py-0.7.0
2012-06-17 14:15:30,968::INFO::[dirscanner:265] Dirscanner starting up
2012-06-17 14:15:30,969::INFO::[urlgrabber:78] URLGrabber starting up
When I try to have it use my normal config file along with all my history, etc, which I would like to keep, it seems to really freak out and give this:

Code: Select all

[root@Jarvis /datapool/systemfiles/SABnzbd]# /datapool/systemfiles/SABnzbd/SABnzbd.py -f /datapool/systemfiles/SABnzbd.Config/sabnzbd.ini    2012-06-17 14:25:04,098::ERROR::[_cplogging:55] [17/Jun/2012:14:25:04] ENGINE Error in 'start' listener <bound method ServerAdapter.start of <cherrypy.process.servers.ServerAdapter object at 0x804949210>>
Traceback (most recent call last):
  File "/datapool/systemfiles/SABnzbd/cherrypy/process/wspbus.py", line 147, in publish
    output.append(listener(*args, **kwargs))
  File "/datapool/systemfiles/SABnzbd/cherrypy/process/servers.py", line 55, in start
    wait_for_free_port(*self.bind_addr)
  File "/datapool/systemfiles/SABnzbd/cherrypy/process/servers.py", line 253, in wait_for_free_port
    check_port(host, port, timeout=0.1)
  File "/datapool/systemfiles/SABnzbd/cherrypy/process/servers.py", line 228, in check_port
    socket.SOCK_STREAM):
TypeError: getaddrinfo() argument 1 must be string or None

2012-06-17 14:25:04,099::ERROR::[_cplogging:55] [17/Jun/2012:14:25:04] ENGINE Error in 'start' listener <bound method ServerAdapter.start of <cherrypy.process.servers.ServerAdapter object at 0x804949450>>
Traceback (most recent call last):
  File "/datapool/systemfiles/SABnzbd/cherrypy/process/wspbus.py", line 147, in publish
    output.append(listener(*args, **kwargs))
  File "/datapool/systemfiles/SABnzbd/cherrypy/process/servers.py", line 55, in start
    wait_for_free_port(*self.bind_addr)
  File "/datapool/systemfiles/SABnzbd/cherrypy/process/servers.py", line 253, in wait_for_free_port
    check_port(host, port, timeout=0.1)
  File "/datapool/systemfiles/SABnzbd/cherrypy/process/servers.py", line 228, in check_port
    socket.SOCK_STREAM):
TypeError: getaddrinfo() argument 1 must be string or None

2012-06-17 14:25:04,318::ERROR::[_cplogging:55] [17/Jun/2012:14:25:04] ENGINE Shutting down due to error in start listener:
Traceback (most recent call last):
  File "/datapool/systemfiles/SABnzbd/cherrypy/process/wspbus.py", line 184, in start
    self.publish('start')
  File "/datapool/systemfiles/SABnzbd/cherrypy/process/wspbus.py", line 147, in publish
    output.append(listener(*args, **kwargs))
  File "/datapool/systemfiles/SABnzbd/cherrypy/process/servers.py", line 55, in start
    wait_for_free_port(*self.bind_addr)
  File "/datapool/systemfiles/SABnzbd/cherrypy/process/servers.py", line 253, in wait_for_free_port
    check_port(host, port, timeout=0.1)
  File "/datapool/systemfiles/SABnzbd/cherrypy/process/servers.py", line 228, in check_port
    socket.SOCK_STREAM):
TypeError: getaddrinfo() argument 1 must be string or None

2012-06-17 14:25:05,418::ERROR::[SABnzbd:1480] Failed to start web-interface:
Traceback (most recent call last):
  File "/datapool/systemfiles/SABnzbd/SABnzbd.py", line 1466, in main
    cherrypy.engine.start()
  File "/datapool/systemfiles/SABnzbd/cherrypy/process/wspbus.py", line 184, in start
    self.publish('start')
  File "/datapool/systemfiles/SABnzbd/cherrypy/process/wspbus.py", line 147, in publish
    output.append(listener(*args, **kwargs))
  File "/datapool/systemfiles/SABnzbd/cherrypy/process/servers.py", line 55, in start
    wait_for_free_port(*self.bind_addr)
  File "/datapool/systemfiles/SABnzbd/cherrypy/process/servers.py", line 253, in wait_for_free_port
    check_port(host, port, timeout=0.1)
  File "/datapool/systemfiles/SABnzbd/cherrypy/process/servers.py", line 228, in check_port
    socket.SOCK_STREAM):
TypeError: getaddrinfo() argument 1 must be string or None
2012-06-17 14:25:05,419::ERROR::[SABnzbd:301] Failed to start web-interface :
Thank you for your help!

Re: SABnzbd 0.7.0 - FreeBSD8.3

Posted: June 17th, 2012, 5:10 pm
by sander
With the working config, use http://127.0.0.1:8080/sabnzbd ... That should work.

If so, try changing the Listening Host to 0.0.0.0 if you want access from other systems on your LAN.

Re: SABnzbd 0.7.0 - FreeBSD8.3

Posted: June 17th, 2012, 5:15 pm
by icemang
I will try the 0.0.0.0 in the /etc/hosts file I assume?

But I cant try the 127.0.0.1 because its a command line only server

Re: SABnzbd 0.7.0 - FreeBSD8.3

Posted: June 17th, 2012, 5:24 pm
by sander
icemang wrote:I will try the 0.0.0.0 in the /etc/hosts file I assume?

But I cant try the 127.0.0.1 because its a command line only server
No: 0.0.0.0 in SABnzbd itself: "SABnzbd Host / Host SABnzbd should listen on." in Config -> General. That works with 127.0.0.1, right? If so, change it to 0.0.0.0 and restart SABnzbd ... does that work?


FYI: your history is not in sabnzbd.ini, but in ~/.sabnzbd/admin/

Re: SABnzbd 0.7.0 - FreeBSD8.3

Posted: June 17th, 2012, 5:33 pm
by icemang
True, after I said that I realized that would jut block it. :)

I will take a look at the config, ultimately your right, I could just redo the config and then keep all my other files that actually contain the data. I realize none of its in the config.

Appreciate the help!

Re: SABnzbd 0.7.0 - FreeBSD8.3

Posted: June 17th, 2012, 5:40 pm
by icemang
So I changed my host to 0.0.0.0 in the sabnzbd.ini config file. Unfortunately that is what seems to be a major hangup for it? It gives lots of errors when I try to start it now. When previously it would startup fine.

Code: Select all

[root@Jarvis /datapool/systemfiles/SABnzbd.7]# ./SABnzbd.py
2012-06-17 15:37:02,762::INFO::[SABnzbd:1248] --------------------------------
2012-06-17 15:37:02,762::INFO::[SABnzbd:1249] SABnzbd.py-0.7.0 (rev=d88b5a3b3e26beecaa4b7f8cbb5f2901de3d6024)
2012-06-17 15:37:02,762::INFO::[SABnzbd:1261] Platform = posix
2012-06-17 15:37:02,762::INFO::[SABnzbd:1262] Python-version = 2.7.3 (default, Jun 15 2012, 08:29:18)
[GCC 4.2.2 20070831 prerelease [FreeBSD]]
2012-06-17 15:37:02,763::INFO::[SABnzbd:1263] Arguments = ./SABnzbd.py
2012-06-17 15:37:02,763::INFO::[SABnzbd:1276] Read INI file /usr/home/root/.sabnzbd/sabnzbd.ini
2012-06-17 15:37:02,764::INFO::[__init__:904] Loading data for bookmarks.sab from /usr/home/root/.sabnzbd/admin/bookmarks.sab
2012-06-17 15:37:02,764::INFO::[__init__:904] Loading data for rss_data.sab from /usr/home/root/.sabnzbd/admin/rss_data.sab
2012-06-17 15:37:02,765::INFO::[__init__:904] Loading data for totals9.sab from /usr/home/root/.sabnzbd/admin/totals9.sab
2012-06-17 15:37:02,765::INFO::[__init__:907] /usr/home/root/.sabnzbd/admin/totals9.sab missing, trying old cache
2012-06-17 15:37:02,765::INFO::[__init__:910] /usr/home/root/.sabnzbd/cache/totals9.sab missing
2012-06-17 15:37:02,769::INFO::[postproc:90] Loading postproc queue
2012-06-17 15:37:02,770::INFO::[__init__:904] Loading data for postproc1.sab from /usr/home/root/.sabnzbd/admin/postproc1.sab
2012-06-17 15:37:02,770::INFO::[__init__:904] Loading data for queue9.sab from /usr/home/root/.sabnzbd/admin/queue9.sab
2012-06-17 15:37:02,771::INFO::[__init__:904] Loading data for watched_data.sab from /usr/home/root/.sabnzbd/admin/watched_data.sab
2012-06-17 15:37:02,771::INFO::[downloader:208] Resuming
2012-06-17 15:37:02,772::INFO::[__init__:314] All processes started
2012-06-17 15:37:02,772::INFO::[SABnzbd:332] Web dir is /datapool/systemfiles/SABnzbd.7/interfaces/Plush
2012-06-17 15:37:02,772::INFO::[SABnzbd:332] Web dir is /datapool/systemfiles/SABnzbd.7/interfaces/Config
2012-06-17 15:37:02,776::INFO::[SABnzbd:461] _yenc module... found!
2012-06-17 15:37:02,776::INFO::[SABnzbd:469] par2 binary... found (/usr/local/bin/par2)
2012-06-17 15:37:02,777::INFO::[SABnzbd:477] unrar binary... found (/usr/local/bin/unrar)
2012-06-17 15:37:02,777::INFO::[SABnzbd:482] unzip binary... found (/usr/local/bin/unzip)
2012-06-17 15:37:02,777::INFO::[SABnzbd:488] nice binary... found (/usr/bin/nice)
2012-06-17 15:37:02,777::INFO::[SABnzbd:494] ionice binary... NOT found!
2012-06-17 15:37:02,777::INFO::[SABnzbd:497] pyOpenSSL... found (True)
2012-06-17 15:37:02,779::INFO::[SABnzbd:1459] Starting web-interface on 0.0.0.0:8080
2012-06-17 15:37:02,779::INFO::[_cplogging:55] [17/Jun/2012:15:37:02] ENGINE Bus STARTING
2012-06-17 15:37:02,781::INFO::[_cplogging:55] [17/Jun/2012:15:37:02] ENGINE Started monitor thread '_TimeoutMonitor'.
2012-06-17 15:37:02,782::ERROR::[_cplogging:55] [17/Jun/2012:15:37:02] ENGINE Error in 'start' listener <bound method ServerAdapter.start of <cherrypy.process.servers.ServerAdapter object at 0x80483ba90>>
Traceback (most recent call last):
  File "/datapool/systemfiles/SABnzbd.7/cherrypy/process/wspbus.py", line 147, in publish
    output.append(listener(*args, **kwargs))
  File "/datapool/systemfiles/SABnzbd.7/cherrypy/process/servers.py", line 55, in start
    wait_for_free_port(*self.bind_addr)
  File "/datapool/systemfiles/SABnzbd.7/cherrypy/process/servers.py", line 253, in wait_for_free_port
    check_port(host, port, timeout=0.1)
  File "/datapool/systemfiles/SABnzbd.7/cherrypy/process/servers.py", line 228, in check_port
    socket.SOCK_STREAM):
TypeError: getaddrinfo() argument 1 must be string or None

2012-06-17 15:37:02,996::INFO::[_cplogging:55] [17/Jun/2012:15:37:02] ENGINE Serving on 0.0.0.0:8080
2012-06-17 15:37:02,997::ERROR::[_cplogging:55] [17/Jun/2012:15:37:02] ENGINE Shutting down due to error in start listener:
Traceback (most recent call last):
  File "/datapool/systemfiles/SABnzbd.7/cherrypy/process/wspbus.py", line 184, in start
    self.publish('start')
  File "/datapool/systemfiles/SABnzbd.7/cherrypy/process/wspbus.py", line 147, in publish
    output.append(listener(*args, **kwargs))
  File "/datapool/systemfiles/SABnzbd.7/cherrypy/process/servers.py", line 55, in start
    wait_for_free_port(*self.bind_addr)
  File "/datapool/systemfiles/SABnzbd.7/cherrypy/process/servers.py", line 253, in wait_for_free_port
    check_port(host, port, timeout=0.1)
  File "/datapool/systemfiles/SABnzbd.7/cherrypy/process/servers.py", line 228, in check_port
    socket.SOCK_STREAM):
TypeError: getaddrinfo() argument 1 must be string or None

2012-06-17 15:37:02,997::INFO::[_cplogging:55] [17/Jun/2012:15:37:02] ENGINE Bus STOPPING
2012-06-17 15:37:02,998::INFO::[_cplogging:55] [17/Jun/2012:15:37:02] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 8080)) shut down
2012-06-17 15:37:02,998::INFO::[_cplogging:55] [17/Jun/2012:15:37:02] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer((28, 8080)) already shut down
2012-06-17 15:37:03,056::INFO::[_cplogging:55] [17/Jun/2012:15:37:03] ENGINE Stopped thread '_TimeoutMonitor'.
2012-06-17 15:37:03,056::INFO::[_cplogging:55] [17/Jun/2012:15:37:03] ENGINE Bus STOPPED
2012-06-17 15:37:03,056::INFO::[_cplogging:55] [17/Jun/2012:15:37:03] ENGINE Bus EXITING
2012-06-17 15:37:03,056::INFO::[_cplogging:55] [17/Jun/2012:15:37:03] ENGINE Bus EXITED
2012-06-17 15:37:03,057::ERROR::[SABnzbd:1480] Failed to start web-interface:
Traceback (most recent call last):
  File "./SABnzbd.py", line 1466, in main
    cherrypy.engine.start()
  File "/datapool/systemfiles/SABnzbd.7/cherrypy/process/wspbus.py", line 184, in start
    self.publish('start')
  File "/datapool/systemfiles/SABnzbd.7/cherrypy/process/wspbus.py", line 147, in publish
    output.append(listener(*args, **kwargs))
  File "/datapool/systemfiles/SABnzbd.7/cherrypy/process/servers.py", line 55, in start
    wait_for_free_port(*self.bind_addr)
  File "/datapool/systemfiles/SABnzbd.7/cherrypy/process/servers.py", line 253, in wait_for_free_port
    check_port(host, port, timeout=0.1)
  File "/datapool/systemfiles/SABnzbd.7/cherrypy/process/servers.py", line 228, in check_port
    socket.SOCK_STREAM):
TypeError: getaddrinfo() argument 1 must be string or None
2012-06-17 15:37:03,058::ERROR::[SABnzbd:301] Failed to start web-interface :
2012-06-17 15:37:03,058::INFO::[panic:243] Lauching browser with /tmp/tmpOiVn31.html
2012-06-17 15:37:03,059::INFO::[__init__:350] SABnzbd shutting down...
2012-06-17 15:37:03,059::INFO::[__init__:880] Saving data for bookmarks.sab in /usr/home/root/.sabnzbd/admin/bookmarks.sab
2012-06-17 15:37:03,059::INFO::[urlgrabber:73] URLGrabber shutting down
2012-06-17 15:37:03,059::INFO::[__init__:880] Saving data for watched_data.sab in /usr/home/root/.sabnzbd/admin/watched_data.sab
2012-06-17 15:37:03,060::INFO::[dirscanner:256] Dirscanner shutting down
2012-06-17 15:37:03,060::INFO::[notifier:87] Sending registration to localhost:23053
2012-06-17 15:37:03,566::INFO::[postproc:84] Saving postproc queue
2012-06-17 15:37:03,566::INFO::[__init__:880] Saving data for postproc1.sab in /usr/home/root/.sabnzbd/admin/postproc1.sab
2012-06-17 15:37:03,566::INFO::[nzbqueue:174] Saving queue
2012-06-17 15:37:03,566::INFO::[__init__:880] Saving data for queue9.sab in /usr/home/root/.sabnzbd/admin/queue9.sab
2012-06-17 15:37:03,567::INFO::[__init__:880] Saving data for rss_data.sab in /usr/home/root/.sabnzbd/admin/rss_data.sab
2012-06-17 15:37:03,567::INFO::[__init__:880] Saving data for bookmarks.sab in /usr/home/root/.sabnzbd/admin/bookmarks.sab
2012-06-17 15:37:03,567::INFO::[__init__:880] Saving data for watched_data.sab in /usr/home/root/.sabnzbd/admin/watched_data.sab
2012-06-17 15:37:03,568::INFO::[postproc:84] Saving postproc queue
2012-06-17 15:37:03,568::INFO::[__init__:880] Saving data for postproc1.sab in /usr/home/root/.sabnzbd/admin/postproc1.sab
2012-06-17 15:37:03,568::INFO::[__init__:410] All processes stopped

Re: SABnzbd 0.7.0 - FreeBSD8.3

Posted: June 17th, 2012, 6:01 pm
by sander
I picked the part from cherrypy/process/servers.py (around line 228), and created this

Code: Select all

def check_port(host, port, timeout=1.0):
    """Raise an error if the given port is not free on the given host."""
    if not host:
        raise ValueError("Host values of '' or None are not allowed.")
    #host = client_host(host)  ########## SJ
    port = int(port)
    
    import socket
    
    # AF_INET or AF_INET6 socket
    # Get the correct address family for our host (allows IPv6 addresses)
    for res in socket.getaddrinfo(host, port, socket.AF_UNSPEC,
                                  socket.SOCK_STREAM):
        af, socktype, proto, canonname, sa = res
	print af, socktype, proto, canonname, sa

check_port('127.0.0.1', 1111)
check_port('localhost', 1111)
check_port('0.0.0.0', 1111)
check_port('::', 1111)
... with the following result on my Ubuntu Linux system:

Code: Select all

sander@R540:~$ python probeer_check_port.py 
2 1 6  ('127.0.0.1', 1111)
2 1 6  ('127.0.0.1', 1111)
2 1 6  ('0.0.0.0', 1111)
10 1 6  ('::', 1111, 0, 0)
sander@R540:~$ 

What do you get?

Re: SABnzbd 0.7.0 - FreeBSD8.3

Posted: June 17th, 2012, 6:32 pm
by icemang
I am not great at coding - so I am trying to follow here..

Initially I got...

Code: Select all

[root@Jarvis /datapool/systemfiles]# python probeer_check_port.py
  File "probeer_check_port.py", line 15
    print af, socktype, proto, canonname, sa
                                           ^
IndentationError: unindent does not match any outer indentation level
So I adjusted indentations on all the code to make it line up but then I dont get any output? When I run it, it just goes to the next line. I tried to show my work below here.

Code: Select all

[root@Jarvis /datapool/systemfiles]# cat probeer_check_port.py
def check_port(host, port, timeout=1.0):
        """Raise an error if the given port is not free on the given host."""
        if not host:
                raise ValueError("Host values of '' or None are not allowed.")
        #host = client_host(host)  ########## SJ
        port = int(port)
        import socket
        # AF_INET or AF_INET6 socket
        # Get the correct address family for our host (allows IPv6 addresses)
        for res in socket.getaddrinfo(host, port, socket.AF_UNSPEC, socket.SOCK_STREAM):
                af, socktype, proto, canonname, sa = res
        print af, socktype, proto, canonname, sa
        check_port('127.0.0.1', 1111)
        check_port('localhost', 1111)
        check_port('0.0.0.0', 1111)
        check_port('::', 1111)
[root@Jarvis /datapool/systemfiles]# python probeer_check_port.py
[root@Jarvis /datapool/systemfiles]#

Re: SABnzbd 0.7.0 - FreeBSD8.3

Posted: June 17th, 2012, 6:40 pm
by sander
Your indention is not correct. See here http://pastebin.com/TuV1RmXk how it should be ...

Re: SABnzbd 0.7.0 - FreeBSD8.3

Posted: June 17th, 2012, 6:46 pm
by icemang
There we go.. Thanks

This doesnt look right to me, but here is the output:

Code: Select all

[root@Jarvis /datapool/systemfiles]# python probeer_check_port.py
2 1 6  ('127.0.0.1', 1111)
2 1 6  ('127.0.0.1', 1111)
28 1 6  (28, '\x04W\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')
2 1 6  ('0.0.0.0', 1111)
28 1 6  (28, '\x04W\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')

Re: SABnzbd 0.7.0 - FreeBSD8.3

Posted: June 17th, 2012, 7:10 pm
by sander
Ah. So no problem there. Then my hypothesis is that host or port is not filled out. Let's check that:

Go into the SAB subdirectory cherrypy/process. There is servers.py. Copy that to servers.py.org. Then edit servers.py (with a text editor, not a word processor) and add just two lines: see the print statement below (with the "#### Added SJ"). And ... double-check the indention. ;)

Code: Select all

def check_port(host, port, timeout=1.0):
    """Raise an error if the given port is not free on the given host."""
    print 'in check_port. host is', host, "port is", port		#### Added SJ

    if not host:
        raise ValueError("Host values of '' or None are not allowed.")
    host = client_host(host)
    port = int(port)
    print 'in check_port, occurence 2. host is', host, "port is", port		#### Added SJ

Here's the pastebin: http://pastebin.com/6v6Rz8BL

And Save en Exit your editor. Run SABnzbd and see what the output is. Here's mine:

Code: Select all


2012-06-18 02:11:58,505::INFO::[SABnzbd:497] pyOpenSSL... found (True)
2012-06-18 02:11:58,507::INFO::[SABnzbd:1459] Starting web-interface on 0.0.0.0:8080
in check_port. host is localhost port is 8080
in check_port, occurence 2. host is localhost port is 8080
2012-06-18 02:11:58,508::INFO::[_cplogging:55] [18/Jun/2012:02:11:58] ENGINE Bus STARTING
2012-06-18 02:11:58,510::INFO::[_cplogging:55] [18/Jun/2012:02:11:58] ENGINE Started monitor thread '_TimeoutMonitor'.
in check_port. host is 0.0.0.0 port is 8080
in check_port, occurence 2. host is 127.0.0.1 port is 8080
in check_port. host is 0.0.0.0 port is 8080
in check_port, occurence 2. host is 127.0.0.1 port is 8080
2012-06-18 02:11:58,612::INFO::[_cplogging:55] [18/Jun/2012:02:11:58] ENGINE Serving on 0.0.0.0:8080
2012-06-18 02:11:58,613::INFO::[_cplogging:55] [18/Jun/2012:02:11:58] ENGINE Bus STARTED

It's all about the lines "in check_port" ... Post your output here. Hopefully it will reveal something ... my hypothesis is that 'host' is not filled out ...

Re: SABnzbd 0.7.0 - FreeBSD8.3

Posted: June 17th, 2012, 7:25 pm
by icemang
Here is my output from that. I included all of it. (I notice at one point it says "in check_port. host is 28 port is 8085" which seems strange, is this what your after?)

Code: Select all

[root@Jarvis /datapool/systemfiles/SABnzbd.7]# ./SABnzbd.py
in check_port. host is localhost port is 8085
2012-06-17 17:18:46,915::INFO::[SABnzbd:1248] --------------------------------
2012-06-17 17:18:46,915::INFO::[SABnzbd:1249] SABnzbd.py-0.7.0 (rev=d88b5a3b3e26beecaa4b7f8cbb5f2901de3d6024)
2012-06-17 17:18:46,916::INFO::[SABnzbd:1261] Platform = posix
2012-06-17 17:18:46,916::INFO::[SABnzbd:1262] Python-version = 2.7.3 (default, Jun 15 2012, 08:29:18)
[GCC 4.2.2 20070831 prerelease [FreeBSD]]
2012-06-17 17:18:46,916::INFO::[SABnzbd:1263] Arguments = ./SABnzbd.py
2012-06-17 17:18:46,916::INFO::[SABnzbd:1276] Read INI file /usr/home/root/.sabnzbd/sabnzbd.ini
2012-06-17 17:18:46,917::INFO::[__init__:904] Loading data for bookmarks.sab from /usr/home/root/.sabnzbd/admin/bookmarks.sab
2012-06-17 17:18:46,918::INFO::[__init__:904] Loading data for rss_data.sab from /usr/home/root/.sabnzbd/admin/rss_data.sab
2012-06-17 17:18:46,918::INFO::[__init__:904] Loading data for totals9.sab from /usr/home/root/.sabnzbd/admin/totals9.sab
2012-06-17 17:18:46,918::INFO::[__init__:907] /usr/home/root/.sabnzbd/admin/totals9.sab missing, trying old cache
2012-06-17 17:18:46,919::INFO::[__init__:910] /usr/home/root/.sabnzbd/cache/totals9.sab missing
2012-06-17 17:18:46,923::INFO::[postproc:90] Loading postproc queue
2012-06-17 17:18:46,923::INFO::[__init__:904] Loading data for postproc1.sab from /usr/home/root/.sabnzbd/admin/postproc1.sab
2012-06-17 17:18:46,924::INFO::[__init__:904] Loading data for queue9.sab from /usr/home/root/.sabnzbd/admin/queue9.sab
2012-06-17 17:18:46,925::INFO::[__init__:904] Loading data for watched_data.sab from /usr/home/root/.sabnzbd/admin/watched_data.sab
2012-06-17 17:18:46,925::INFO::[downloader:208] Resuming
2012-06-17 17:18:46,926::INFO::[__init__:314] All processes started
2012-06-17 17:18:46,926::INFO::[SABnzbd:332] Web dir is /datapool/systemfiles/SABnzbd.7/interfaces/Plush
2012-06-17 17:18:46,926::INFO::[SABnzbd:332] Web dir is /datapool/systemfiles/SABnzbd.7/interfaces/Config
2012-06-17 17:18:46,930::INFO::[SABnzbd:461] _yenc module... found!
2012-06-17 17:18:46,930::INFO::[SABnzbd:469] par2 binary... found (/usr/local/bin/par2)
2012-06-17 17:18:46,930::INFO::[SABnzbd:477] unrar binary... found (/usr/local/bin/unrar)
2012-06-17 17:18:46,931::INFO::[SABnzbd:482] unzip binary... found (/usr/local/bin/unzip)
2012-06-17 17:18:46,931::INFO::[SABnzbd:488] nice binary... found (/usr/bin/nice)
2012-06-17 17:18:46,931::INFO::[SABnzbd:494] ionice binary... NOT found!
2012-06-17 17:18:46,931::INFO::[SABnzbd:497] pyOpenSSL... found (True)
2012-06-17 17:18:46,932::INFO::[SABnzbd:1459] Starting web-interface on 0.0.0.0:8085
in check_port. host is localhost port is 8085
2012-06-17 17:18:46,933::INFO::[_cplogging:55] [17/Jun/2012:17:18:46] ENGINE Bus STARTING
2012-06-17 17:18:46,935::INFO::[_cplogging:55] [17/Jun/2012:17:18:46] ENGINE Started monitor thread '_TimeoutMonitor'.
in check_port. host is 28 port is 8085
2012-06-17 17:18:46,936::ERROR::[_cplogging:55] [17/Jun/2012:17:18:46] ENGINE Error in 'start' listener <bound method ServerAdapter.start of <cherrypy.process.servers.ServerAdapter object at 0x8045eea90>>
Traceback (most recent call last):
  File "/datapool/systemfiles/SABnzbd.7/cherrypy/process/wspbus.py", line 147, in publish
    output.append(listener(*args, **kwargs))
  File "/datapool/systemfiles/SABnzbd.7/cherrypy/process/servers.py", line 55, in start
    wait_for_free_port(*self.bind_addr)
  File "/datapool/systemfiles/SABnzbd.7/cherrypy/process/servers.py", line 255, in wait_for_free_port
    check_port(host, port, timeout=0.1)
  File "/datapool/systemfiles/SABnzbd.7/cherrypy/process/servers.py", line 230, in check_port
    socket.SOCK_STREAM):
TypeError: getaddrinfo() argument 1 must be string or None

in check_port. host is 0.0.0.0 port is 8085
in check_port. host is 0.0.0.0 port is 8085
2012-06-17 17:18:47,153::INFO::[_cplogging:55] [17/Jun/2012:17:18:47] ENGINE Serving on 0.0.0.0:8085
2012-06-17 17:18:47,154::ERROR::[_cplogging:55] [17/Jun/2012:17:18:47] ENGINE Shutting down due to error in start listener:
Traceback (most recent call last):
  File "/datapool/systemfiles/SABnzbd.7/cherrypy/process/wspbus.py", line 184, in start
    self.publish('start')
  File "/datapool/systemfiles/SABnzbd.7/cherrypy/process/wspbus.py", line 147, in publish
    output.append(listener(*args, **kwargs))
  File "/datapool/systemfiles/SABnzbd.7/cherrypy/process/servers.py", line 55, in start
    wait_for_free_port(*self.bind_addr)
  File "/datapool/systemfiles/SABnzbd.7/cherrypy/process/servers.py", line 255, in wait_for_free_port
    check_port(host, port, timeout=0.1)
  File "/datapool/systemfiles/SABnzbd.7/cherrypy/process/servers.py", line 230, in check_port
    socket.SOCK_STREAM):
TypeError: getaddrinfo() argument 1 must be string or None

2012-06-17 17:18:47,154::INFO::[_cplogging:55] [17/Jun/2012:17:18:47] ENGINE Bus STOPPING
in check_port. host is 0.0.0.0 port is 8085
2012-06-17 17:18:47,156::INFO::[_cplogging:55] [17/Jun/2012:17:18:47] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 8085)) shut down
2012-06-17 17:18:47,156::INFO::[_cplogging:55] [17/Jun/2012:17:18:47] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer((28, 8085)) already shut down
2012-06-17 17:18:47,212::INFO::[_cplogging:55] [17/Jun/2012:17:18:47] ENGINE Stopped thread '_TimeoutMonitor'.
2012-06-17 17:18:47,213::INFO::[_cplogging:55] [17/Jun/2012:17:18:47] ENGINE Bus STOPPED
2012-06-17 17:18:47,213::INFO::[_cplogging:55] [17/Jun/2012:17:18:47] ENGINE Bus EXITING
2012-06-17 17:18:47,213::INFO::[_cplogging:55] [17/Jun/2012:17:18:47] ENGINE Bus EXITED
2012-06-17 17:18:47,213::ERROR::[SABnzbd:1480] Failed to start web-interface:
Traceback (most recent call last):
  File "./SABnzbd.py", line 1466, in main
    cherrypy.engine.start()
  File "/datapool/systemfiles/SABnzbd.7/cherrypy/process/wspbus.py", line 184, in start
    self.publish('start')
  File "/datapool/systemfiles/SABnzbd.7/cherrypy/process/wspbus.py", line 147, in publish
    output.append(listener(*args, **kwargs))
  File "/datapool/systemfiles/SABnzbd.7/cherrypy/process/servers.py", line 55, in start
    wait_for_free_port(*self.bind_addr)
  File "/datapool/systemfiles/SABnzbd.7/cherrypy/process/servers.py", line 255, in wait_for_free_port
    check_port(host, port, timeout=0.1)
  File "/datapool/systemfiles/SABnzbd.7/cherrypy/process/servers.py", line 230, in check_port
    socket.SOCK_STREAM):
TypeError: getaddrinfo() argument 1 must be string or None
2012-06-17 17:18:47,215::ERROR::[SABnzbd:301] Failed to start web-interface :
2012-06-17 17:18:47,215::INFO::[panic:243] Lauching browser with /tmp/tmp4tfSAX.html
2012-06-17 17:18:47,215::INFO::[__init__:350] SABnzbd shutting down...
2012-06-17 17:18:47,216::INFO::[__init__:880] Saving data for bookmarks.sab in /usr/home/root/.sabnzbd/admin/bookmarks.sab
2012-06-17 17:18:47,216::INFO::[urlgrabber:73] URLGrabber shutting down
2012-06-17 17:18:47,216::INFO::[__init__:880] Saving data for watched_data.sab in /usr/home/root/.sabnzbd/admin/watched_data.sab
2012-06-17 17:18:47,217::INFO::[dirscanner:256] Dirscanner shutting down
2012-06-17 17:18:47,217::INFO::[notifier:87] Sending registration to localhost:23053
2012-06-17 17:18:47,724::INFO::[postproc:84] Saving postproc queue
2012-06-17 17:18:47,725::INFO::[__init__:880] Saving data for postproc1.sab in /usr/home/root/.sabnzbd/admin/postproc1.sab
2012-06-17 17:18:47,725::INFO::[nzbqueue:174] Saving queue
2012-06-17 17:18:47,725::INFO::[__init__:880] Saving data for queue9.sab in /usr/home/root/.sabnzbd/admin/queue9.sab
2012-06-17 17:18:47,726::INFO::[__init__:880] Saving data for rss_data.sab in /usr/home/root/.sabnzbd/admin/rss_data.sab
2012-06-17 17:18:47,726::INFO::[__init__:880] Saving data for bookmarks.sab in /usr/home/root/.sabnzbd/admin/bookmarks.sab
2012-06-17 17:18:47,726::INFO::[__init__:880] Saving data for watched_data.sab in /usr/home/root/.sabnzbd/admin/watched_data.sab
2012-06-17 17:18:47,726::INFO::[postproc:84] Saving postproc queue
2012-06-17 17:18:47,727::INFO::[__init__:880] Saving data for postproc1.sab in /usr/home/root/.sabnzbd/admin/postproc1.sab
2012-06-17 17:18:47,727::INFO::[__init__:410] All processes stopped
[root@Jarvis /datapool/systemfiles/SABnzbd.7]#


Re: SABnzbd 0.7.0 - FreeBSD8.3

Posted: June 17th, 2012, 7:47 pm
by sander
Yes indeed, that "28" is wrong for a "host" value. It should be an IP address or a (resolvable?) name.

Looking back at your older post with the mini-python, it is also there. Strange. It's the same value as the first value ("af")?

It's a bit late for me here. So let's dive further into this later on.

EDIT: can you go back to my last post? I had edited later on and added *two* lines in the code. Can you do that and run it.