SABnzbd 0.7.0 - FreeBSD8.3
Forum rules
Help us help you:
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.
Re: SABnzbd 0.7.0 - FreeBSD8.3
It is strange! I appreciate your help - have a good one!
Last edited by icemang on July 19th, 2012, 2:36 pm, edited 1 time in total.
Re: SABnzbd 0.7.0 - FreeBSD8.3
Here is some python documentation, with the last line bold-ed by me:
Can you please test again by typing these two lines in the interactive shell of python:
If your output is again the two lines with the weird (incorrect?) first line, I would say it's a bug in your python/system setup and not in SABnzbd as the ouput of the function socket.getaddrinfo is not as specified by the documentation.
However, as the second line looks usable, Shypike could pragmatically decide to just skip that first line and only use the second line and that way circumvent the problem/bug. Maybe that has to be done in the following piece of code elsewhere in servers.py
However, that's object oriented code, and that's out of my league ...
Anyway: can you first test the two lines of interactive python code posted above and post the output.
However, I think your setup returns this for 0.0.0.0socket.getaddrinfo(host, port, family=0, socktype=0, proto=0, flags=0)
...
The function returns a list of 5-tuples with the following structure:
(family, socktype, proto, canonname, sockaddr)
In these tuples, family, socktype, proto are all integers and are meant to be passed to the socket() function. canonname will be a string representing the canonical name of the host if AI_CANONNAME is part of the flags argument; else canonname will be empty. sockaddr is a tuple describing a socket address, whose format depends on the returned family (a (address, port) 2-tuple for AF_INET, a (address, port, flow info, scope id) 4-tuple for AF_INET6), and is meant to be passed to the socket.connect() method.
Code: Select all
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)
Code: Select all
sander@R540:~$ python
Python 2.7.3 (default, Apr 20 2012, 22:39:59)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> import socket
>>>
>>>
>>>
>>> socket.getaddrinfo('0.0.0.0', 80, socket.AF_UNSPEC,socket.SOCK_STREAM)
[(2, 1, 6, '', ('0.0.0.0', 80))]
>>>
However, as the second line looks usable, Shypike could pragmatically decide to just skip that first line and only use the second line and that way circumvent the problem/bug. Maybe that has to be done in the following piece of code elsewhere in servers.py
Code: Select all
# Start the httpserver in a new thread.
if isinstance(self.bind_addr, tuple):
wait_for_free_port(*self.bind_addr)
Anyway: can you first test the two lines of interactive python code posted above and post the output.
Re: SABnzbd 0.7.0 - FreeBSD8.3
Here are my results for what you asked:
This appears to be the correct output for Python / network address? Hopefully this helps?
Thanks!
Code: Select all
[root@Jarvis ~]# python
Python 2.7.3 (default, Jun 15 2012, 08:29:18)
[GCC 4.2.2 20070831 prerelease [FreeBSD]] on freebsd8
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> socket.getaddrinfo('0.0.0.0', 80, socket.AF_UNSPEC,socket.SOCK_STREAM)
[(2, 1, 6, '', ('0.0.0.0', 80))]
>>>
Thanks!
Re: SABnzbd 0.7.0 - FreeBSD8.3
I wanted to try on a fresh install so I installed FreeBSD 8.3 in a virtual machine (VMWare).
Installed only Sabnzbd and dependencies, along with Wget to grab the files and I get the same errors when I run it. I will put the output below in case it helps.
Installed only Sabnzbd and dependencies, along with Wget to grab the files and I get the same errors when I run it. I will put the output below in case it helps.
Code: Select all
sabtest# ./SABnzbd.py
2012-06-19 04:13:45,438::INFO::[SABnzbd:1248] --------------------------------
2012-06-19 04:13:45,438::INFO::[SABnzbd:1249] SABnzbd.py-0.7.0 (rev=d88b5a3b3e26beecaa4b7f8cbb5f2901de3d6024)
2012-06-19 04:13:45,438::INFO::[SABnzbd:1261] Platform = posix
2012-06-19 04:13:45,438::INFO::[SABnzbd:1262] Python-version = 2.7.3 (default, Jun 19 2012, 03:57:44)
[GCC 4.2.2 20070831 prerelease [FreeBSD]]
2012-06-19 04:13:45,438::INFO::[SABnzbd:1263] Arguments = ./SABnzbd.py
2012-06-19 04:13:45,438::INFO::[SABnzbd:1276] Read INI file /root/.sabnzbd/sabnzbd.ini
2012-06-19 04:13:45,439::INFO::[misc:354] download_dir directory: /root/Downloads/incomplete does not exist, try to create it
2012-06-19 04:13:45,442::INFO::[__init__:904] Loading data for bookmarks.sab from /root/.sabnzbd/admin/bookmarks.sab
2012-06-19 04:13:45,442::INFO::[__init__:907] /root/.sabnzbd/admin/bookmarks.sab missing, trying old cache
2012-06-19 04:13:45,442::INFO::[__init__:910] /root/.sabnzbd/cache/bookmarks.sab missing
2012-06-19 04:13:45,443::INFO::[__init__:904] Loading data for rss_data.sab from /root/.sabnzbd/admin/rss_data.sab
2012-06-19 04:13:45,443::INFO::[__init__:907] /root/.sabnzbd/admin/rss_data.sab missing, trying old cache
2012-06-19 04:13:45,443::INFO::[__init__:910] /root/.sabnzbd/cache/rss_data.sab missing
2012-06-19 04:13:45,443::INFO::[__init__:904] Loading data for totals9.sab from /root/.sabnzbd/admin/totals9.sab
2012-06-19 04:13:45,443::INFO::[__init__:907] /root/.sabnzbd/admin/totals9.sab missing, trying old cache
2012-06-19 04:13:45,444::INFO::[__init__:910] /root/.sabnzbd/cache/totals9.sab missing
2012-06-19 04:13:45,448::INFO::[postproc:90] Loading postproc queue
2012-06-19 04:13:45,448::INFO::[__init__:904] Loading data for postproc1.sab from /root/.sabnzbd/admin/postproc1.sab
2012-06-19 04:13:45,449::INFO::[__init__:907] /root/.sabnzbd/admin/postproc1.sab missing, trying old cache
2012-06-19 04:13:45,449::INFO::[__init__:910] /root/.sabnzbd/cache/postproc1.sab missing
2012-06-19 04:13:45,449::INFO::[__init__:904] Loading data for queue9.sab from /root/.sabnzbd/admin/queue9.sab
2012-06-19 04:13:45,449::INFO::[__init__:907] /root/.sabnzbd/admin/queue9.sab missing, trying old cache
2012-06-19 04:13:45,450::INFO::[__init__:910] /root/.sabnzbd/cache/queue9.sab missing
2012-06-19 04:13:45,450::INFO::[__init__:904] Loading data for watched_data.sab from /root/.sabnzbd/admin/watched_data.sab
2012-06-19 04:13:45,451::INFO::[__init__:907] /root/.sabnzbd/admin/watched_data.sab missing, trying old cache
2012-06-19 04:13:45,451::INFO::[__init__:910] /root/.sabnzbd/cache/watched_data.sab missing
2012-06-19 04:13:45,451::INFO::[downloader:208] Resuming
2012-06-19 04:13:45,458::INFO::[__init__:314] All processes started
2012-06-19 04:13:45,458::INFO::[SABnzbd:332] Web dir is /root/SABnzbd-0.7.0/interfaces/Plush
2012-06-19 04:13:45,459::INFO::[SABnzbd:332] Web dir is /root/SABnzbd-0.7.0/interfaces/Config
2012-06-19 04:13:45,465::INFO::[SABnzbd:461] _yenc module... found!
2012-06-19 04:13:45,466::INFO::[SABnzbd:469] par2 binary... found (/usr/local/bin/par2)
2012-06-19 04:13:45,466::INFO::[SABnzbd:477] unrar binary... found (/usr/local/bin/unrar)
2012-06-19 04:13:45,466::INFO::[SABnzbd:482] unzip binary... found (/usr/local/bin/unzip)
2012-06-19 04:13:45,466::INFO::[SABnzbd:488] nice binary... found (/usr/bin/nice)
2012-06-19 04:13:45,466::INFO::[SABnzbd:494] ionice binary... NOT found!
2012-06-19 04:13:45,466::INFO::[SABnzbd:497] pyOpenSSL... found (True)
2012-06-19 04:13:45,467::INFO::[SABnzbd:1459] Starting web-interface on 0.0.0.0:8080
2012-06-19 04:13:45,468::INFO::[_cplogging:55] [19/Jun/2012:04:13:45] ENGINE Bus STARTING
2012-06-19 04:13:45,470::INFO::[_cplogging:55] [19/Jun/2012:04:13:45] ENGINE Started monitor thread '_TimeoutMonitor'.
2012-06-19 04:13:45,471::ERROR::[_cplogging:55] [19/Jun/2012:04:13:45] ENGINE Error in 'start' listener <bound method ServerAdapter.start of <cherrypy.process.servers.ServerAdapter object at 0x804153250>>
Traceback (most recent call last):
File "/root/SABnzbd-0.7.0/cherrypy/process/wspbus.py", line 147, in publish
output.append(listener(*args, **kwargs))
File "/root/SABnzbd-0.7.0/cherrypy/process/servers.py", line 55, in start
wait_for_free_port(*self.bind_addr)
File "/root/SABnzbd-0.7.0/cherrypy/process/servers.py", line 253, in wait_for_free_port
check_port(host, port, timeout=0.1)
File "/root/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-19 04:13:45,683::INFO::[_cplogging:55] [19/Jun/2012:04:13:45] ENGINE Serving on 0.0.0.0:8080
2012-06-19 04:13:45,684::ERROR::[_cplogging:55] [19/Jun/2012:04:13:45] ENGINE Shutting down due to error in start listener:
Traceback (most recent call last):
File "/root/SABnzbd-0.7.0/cherrypy/process/wspbus.py", line 184, in start
self.publish('start')
File "/root/SABnzbd-0.7.0/cherrypy/process/wspbus.py", line 147, in publish
output.append(listener(*args, **kwargs))
File "/root/SABnzbd-0.7.0/cherrypy/process/servers.py", line 55, in start
wait_for_free_port(*self.bind_addr)
File "/root/SABnzbd-0.7.0/cherrypy/process/servers.py", line 253, in wait_for_free_port
check_port(host, port, timeout=0.1)
File "/root/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-19 04:13:45,685::INFO::[_cplogging:55] [19/Jun/2012:04:13:45] ENGINE Bus STOPPING
2012-06-19 04:13:45,686::INFO::[_cplogging:55] [19/Jun/2012:04:13:45] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 8080)) shut down
2012-06-19 04:13:45,686::INFO::[_cplogging:55] [19/Jun/2012:04:13:45] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer((28, 8080)) already shut down
2012-06-19 04:13:45,742::INFO::[_cplogging:55] [19/Jun/2012:04:13:45] ENGINE Stopped thread '_TimeoutMonitor'.
2012-06-19 04:13:45,743::INFO::[_cplogging:55] [19/Jun/2012:04:13:45] ENGINE Bus STOPPED
2012-06-19 04:13:45,743::INFO::[_cplogging:55] [19/Jun/2012:04:13:45] ENGINE Bus EXITING
2012-06-19 04:13:45,743::INFO::[_cplogging:55] [19/Jun/2012:04:13:45] ENGINE Bus EXITED
2012-06-19 04:13:45,743::ERROR::[SABnzbd:1480] Failed to start web-interface:
Traceback (most recent call last):
File "./SABnzbd.py", line 1466, in main
cherrypy.engine.start()
File "/root/SABnzbd-0.7.0/cherrypy/process/wspbus.py", line 184, in start
self.publish('start')
File "/root/SABnzbd-0.7.0/cherrypy/process/wspbus.py", line 147, in publish
output.append(listener(*args, **kwargs))
File "/root/SABnzbd-0.7.0/cherrypy/process/servers.py", line 55, in start
wait_for_free_port(*self.bind_addr)
File "/root/SABnzbd-0.7.0/cherrypy/process/servers.py", line 253, in wait_for_free_port
check_port(host, port, timeout=0.1)
File "/root/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-19 04:13:45,744::ERROR::[SABnzbd:301] Failed to start web-interface :
2012-06-19 04:13:45,745::INFO::[panic:243] Lauching browser with /tmp/tmpttt7Hq.html
2012-06-19 04:13:45,745::INFO::[__init__:350] SABnzbd shutting down...
2012-06-19 04:13:45,745::INFO::[__init__:880] Saving data for bookmarks.sab in /root/.sabnzbd/admin/bookmarks.sab
2012-06-19 04:13:45,746::INFO::[urlgrabber:73] URLGrabber shutting down
2012-06-19 04:13:45,747::INFO::[__init__:880] Saving data for watched_data.sab in /root/.sabnzbd/admin/watched_data.sab
2012-06-19 04:13:45,747::INFO::[dirscanner:256] Dirscanner shutting down
2012-06-19 04:13:45,748::INFO::[notifier:87] Sending registration to localhost:23053
2012-06-19 04:13:46,252::INFO::[postproc:84] Saving postproc queue
2012-06-19 04:13:46,253::INFO::[__init__:880] Saving data for postproc1.sab in /root/.sabnzbd/admin/postproc1.sab
2012-06-19 04:13:46,254::INFO::[nzbqueue:174] Saving queue
2012-06-19 04:13:46,254::INFO::[__init__:880] Saving data for queue9.sab in /root/.sabnzbd/admin/queue9.sab
2012-06-19 04:13:46,255::INFO::[__init__:880] Saving data for rss_data.sab in /root/.sabnzbd/admin/rss_data.sab
2012-06-19 04:13:46,256::INFO::[__init__:880] Saving data for bookmarks.sab in /root/.sabnzbd/admin/bookmarks.sab
2012-06-19 04:13:46,257::INFO::[__init__:880] Saving data for watched_data.sab in /root/.sabnzbd/admin/watched_data.sab
2012-06-19 04:13:46,258::INFO::[postproc:84] Saving postproc queue
2012-06-19 04:13:46,258::INFO::[__init__:880] Saving data for postproc1.sab in /root/.sabnzbd/admin/postproc1.sab
2012-06-19 04:13:46,258::INFO::[__init__:410] All processes stopped
Re: SABnzbd 0.7.0 - FreeBSD8.3
I'm surprised by the socket.getaddrinfo output: that indeed looks correct. That means we have to search further. I hope it's not an intermittent problem.
On your new install:
can you run the mini-program as posted in http://forums.sabnzbd.org/viewtopic.php ... 029#p66834
can you change servers.py as described in http://forums.sabnzbd.org/viewtopic.php ... 029#p66841, and run SAB again.
On your new install:
can you run the mini-program as posted in http://forums.sabnzbd.org/viewtopic.php ... 029#p66834
can you change servers.py as described in http://forums.sabnzbd.org/viewtopic.php ... 029#p66841, and run SAB again.
Re: SABnzbd 0.7.0 - FreeBSD8.3
There's a bug in 0.7.0 where things go wrong when "uname -n" gives a value that cannot be resolved to an IP address.
If you can fix the uname issue, the SABnzbd bug problem is avoided.
Will be fixed soon in 0.7.1
If you can fix the uname issue, the SABnzbd bug problem is avoided.
Will be fixed soon in 0.7.1
Re: SABnzbd 0.7.0 - FreeBSD8.3
I tried a VMWare install of FreeBSD 8.3 as well.
How did you get Python running with sqlite support?
What was this porter thinking?
How did you get Python running with sqlite support?
What was this porter thinking?
Re: SABnzbd 0.7.0 - FreeBSD8.3
I am at a business conference so I cant do much yet... Stupid work getting in the way. 
But I did resolve the uname issue and its still not working quite right. I will try what sander's posted in a few days when work stops getting in the way.
I appreciate you guys helping with this, have a good one!
But I did resolve the uname issue and its still not working quite right. I will try what sander's posted in a few days when work stops getting in the way.
Code: Select all
[root@Jarvis ~]# uname -n
Jarvis
[root@Jarvis ~]# 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.023 ms
64 bytes from 10.0.0.1: icmp_seq=1 ttl=64 time=0.030 ms
64 bytes from 10.0.0.1: icmp_seq=2 ttl=64 time=0.029 ms
Re: SABnzbd 0.7.0 - FreeBSD8.3
Results of the first mini-program test:
Here is results of the second test - servers.py
Code: Select all
sabtest# python pytest
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')
sabtest#
Code: Select all
sabtest# ./SABnzbd-0.7.0/SABnzbd.py
in check_port. host is localhost port is 8080
in check_port, occurence 2. host is localhost port is 8080
2012-06-24 04:27:42,044::INFO::[SABnzbd:1248] --------------------------------
2012-06-24 04:27:42,045::INFO::[SABnzbd:1249] SABnzbd.py-0.7.0 (rev=d88b5a3b3e26beecaa4b7f8cbb5f2901de3d6024)
2012-06-24 04:27:42,045::INFO::[SABnzbd:1261] Platform = posix
2012-06-24 04:27:42,045::INFO::[SABnzbd:1262] Python-version = 2.7.3 (default, Jun 19 2012, 03:57:44)
[GCC 4.2.2 20070831 prerelease [FreeBSD]]
2012-06-24 04:27:42,046::INFO::[SABnzbd:1263] Arguments = ./SABnzbd-0.7.0/SABnzbd.py
2012-06-24 04:27:42,046::INFO::[SABnzbd:1276] Read INI file /root/.sabnzbd/sabnzbd.ini
2012-06-24 04:27:42,047::INFO::[__init__:904] Loading data for bookmarks.sab from /root/.sabnzbd/admin/bookmarks.sab
2012-06-24 04:27:42,048::INFO::[__init__:904] Loading data for rss_data.sab from /root/.sabnzbd/admin/rss_data.sab
2012-06-24 04:27:42,049::INFO::[__init__:904] Loading data for totals9.sab from /root/.sabnzbd/admin/totals9.sab
2012-06-24 04:27:42,049::INFO::[__init__:907] /root/.sabnzbd/admin/totals9.sab missing, trying old cache
2012-06-24 04:27:42,049::INFO::[__init__:910] /root/.sabnzbd/cache/totals9.sab missing
2012-06-24 04:27:42,115::INFO::[postproc:90] Loading postproc queue
2012-06-24 04:27:42,115::INFO::[__init__:904] Loading data for postproc1.sab from /root/.sabnzbd/admin/postproc1.sab
2012-06-24 04:27:42,116::INFO::[__init__:904] Loading data for queue9.sab from /root/.sabnzbd/admin/queue9.sab
2012-06-24 04:27:42,117::INFO::[__init__:904] Loading data for watched_data.sab from /root/.sabnzbd/admin/watched_data.sab
2012-06-24 04:27:42,118::INFO::[downloader:208] Resuming
2012-06-24 04:27:42,118::INFO::[__init__:314] All processes started
2012-06-24 04:27:42,118::INFO::[SABnzbd:332] Web dir is /root/SABnzbd-0.7.0/interfaces/Plush
2012-06-24 04:27:42,166::INFO::[SABnzbd:332] Web dir is /root/SABnzbd-0.7.0/interfaces/Config
2012-06-24 04:27:42,187::INFO::[SABnzbd:461] _yenc module... found!
2012-06-24 04:27:42,187::INFO::[SABnzbd:469] par2 binary... found (/usr/local/bin/par2)
2012-06-24 04:27:42,187::INFO::[SABnzbd:477] unrar binary... found (/usr/local/bin/unrar)
2012-06-24 04:27:42,188::INFO::[SABnzbd:482] unzip binary... found (/usr/local/bin/unzip)
2012-06-24 04:27:42,188::INFO::[SABnzbd:488] nice binary... found (/usr/bin/nice)
2012-06-24 04:27:42,188::INFO::[SABnzbd:494] ionice binary... NOT found!
2012-06-24 04:27:42,188::INFO::[SABnzbd:497] pyOpenSSL... found (True)
2012-06-24 04:27:42,190::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-24 04:27:42,190::INFO::[_cplogging:55] [24/Jun/2012:04:27:42] ENGINE Bus STARTING
2012-06-24 04:27:42,211::INFO::[_cplogging:55] [24/Jun/2012:04:27:42] ENGINE Started monitor thread '_TimeoutMonitor'.
in check_port. host is 28 port is 8080
in check_port, occurence 2. host is 28 port is 8080
2012-06-24 04:27:42,213::ERROR::[_cplogging:55] [24/Jun/2012:04:27:42] ENGINE Error in 'start' listener <bound method ServerAdapter.start of <cherrypy.process.servers.ServerAdapter object at 0x804836910>>
Traceback (most recent call last):
File "/root/SABnzbd-0.7.0/cherrypy/process/wspbus.py", line 147, in publish
output.append(listener(*args, **kwargs))
File "/root/SABnzbd-0.7.0/cherrypy/process/servers.py", line 55, in start
wait_for_free_port(*self.bind_addr)
File "/root/SABnzbd-0.7.0/cherrypy/process/servers.py", line 255, in wait_for_free_port
check_port(host, port, timeout=0.1)
File "/root/SABnzbd-0.7.0/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 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-24 04:27:42,325::INFO::[_cplogging:55] [24/Jun/2012:04:27:42] ENGINE Serving on 0.0.0.0:8080
2012-06-24 04:27:42,325::ERROR::[_cplogging:55] [24/Jun/2012:04:27:42] ENGINE Shutting down due to error in start listener:
Traceback (most recent call last):
File "/root/SABnzbd-0.7.0/cherrypy/process/wspbus.py", line 184, in start
self.publish('start')
File "/root/SABnzbd-0.7.0/cherrypy/process/wspbus.py", line 147, in publish
output.append(listener(*args, **kwargs))
File "/root/SABnzbd-0.7.0/cherrypy/process/servers.py", line 55, in start
wait_for_free_port(*self.bind_addr)
File "/root/SABnzbd-0.7.0/cherrypy/process/servers.py", line 255, in wait_for_free_port
check_port(host, port, timeout=0.1)
File "/root/SABnzbd-0.7.0/cherrypy/process/servers.py", line 230, in check_port
socket.SOCK_STREAM):
TypeError: getaddrinfo() argument 1 must be string or None
2012-06-24 04:27:42,325::INFO::[_cplogging:55] [24/Jun/2012:04:27:42] ENGINE Bus STOPPING
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-24 04:27:42,344::INFO::[_cplogging:55] [24/Jun/2012:04:27:42] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 8080)) shut down
2012-06-24 04:27:42,345::INFO::[_cplogging:55] [24/Jun/2012:04:27:42] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer((28, 8080)) already shut down
2012-06-24 04:27:42,364::INFO::[_cplogging:55] [24/Jun/2012:04:27:42] ENGINE Stopped thread '_TimeoutMonitor'.
2012-06-24 04:27:42,364::INFO::[_cplogging:55] [24/Jun/2012:04:27:42] ENGINE Bus STOPPED
2012-06-24 04:27:42,364::INFO::[_cplogging:55] [24/Jun/2012:04:27:42] ENGINE Bus EXITING
2012-06-24 04:27:42,364::INFO::[_cplogging:55] [24/Jun/2012:04:27:42] ENGINE Bus EXITED
2012-06-24 04:27:42,365::ERROR::[SABnzbd:1480] Failed to start web-interface:
Traceback (most recent call last):
File "./SABnzbd-0.7.0/SABnzbd.py", line 1466, in main
File "/root/SABnzbd-0.7.0/cherrypy/process/wspbus.py", line 184, in start
self.publish('start')
File "/root/SABnzbd-0.7.0/cherrypy/process/wspbus.py", line 147, in publish
output.append(listener(*args, **kwargs))
File "/root/SABnzbd-0.7.0/cherrypy/process/servers.py", line 55, in start
wait_for_free_port(*self.bind_addr)
File "/root/SABnzbd-0.7.0/cherrypy/process/servers.py", line 255, in wait_for_free_port
check_port(host, port, timeout=0.1)
File "/root/SABnzbd-0.7.0/cherrypy/process/servers.py", line 230, in check_port
socket.SOCK_STREAM):
TypeError: getaddrinfo() argument 1 must be string or None
2012-06-24 04:27:42,365::ERROR::[SABnzbd:301] Failed to start web-interface :
2012-06-24 04:27:42,366::INFO::[panic:243] Lauching browser with /tmp/tmpoQP5ue.html
2012-06-24 04:27:42,366::INFO::[__init__:350] SABnzbd shutting down...
2012-06-24 04:27:42,366::INFO::[__init__:880] Saving data for bookmarks.sab in /root/.sabnzbd/admin/bookmarks.sab
2012-06-24 04:27:42,367::INFO::[urlgrabber:73] URLGrabber shutting down
2012-06-24 04:27:42,367::INFO::[__init__:880] Saving data for watched_data.sab in /root/.sabnzbd/admin/watched_data.sab
2012-06-24 04:27:42,368::INFO::[dirscanner:256] Dirscanner shutting down
2012-06-24 04:27:42,370::INFO::[notifier:87] Sending registration to localhost:23053
2012-06-24 04:27:42,874::INFO::[postproc:84] Saving postproc queue
2012-06-24 04:27:42,874::INFO::[__init__:880] Saving data for postproc1.sab in /root/.sabnzbd/admin/postproc1.sab
2012-06-24 04:27:42,875::INFO::[nzbqueue:174] Saving queue
2012-06-24 04:27:42,875::INFO::[__init__:880] Saving data for queue9.sab in /root/.sabnzbd/admin/queue9.sab
2012-06-24 04:27:42,876::INFO::[__init__:880] Saving data for rss_data.sab in /root/.sabnzbd/admin/rss_data.sab
2012-06-24 04:27:42,876::INFO::[__init__:880] Saving data for bookmarks.sab in /root/.sabnzbd/admin/bookmarks.sab
2012-06-24 04:27:42,877::INFO::[__init__:880] Saving data for watched_data.sab in /root/.sabnzbd/admin/watched_data.sab
2012-06-24 04:27:42,877::INFO::[postproc:84] Saving postproc queue
2012-06-24 04:27:42,878::INFO::[__init__:880] Saving data for postproc1.sab in /root/.sabnzbd/admin/postproc1.sab
2012-06-24 04:27:42,878::INFO::[__init__:410] All processes stopped
sabtest#
Re: SABnzbd 0.7.0 - FreeBSD8.3
I'm a bit lost:
It looks like we can't reproduce the problem in python alone. Can you please try again in two separate python sessions:
>>> import socket
>>> socket.getaddrinfo('0.0.0.0', 8080, socket.AF_UNSPEC,socket.SOCK_STREAM)
>>> import socket
>>> socket.getaddrinfo('::', 8080, socket.AF_UNSPEC,socket.SOCK_STREAM)
If you cannot reproduce the strange output with the code above, but you can reproduce it the little program I gave you, can you find (by interpolating?) the most minimal code that does generate the strange output?
I think you have the following options for solving the (resulting?) problem in SABnzbd:
- solve the problem in python
- solve the problem somehow in your system settings
- experiment with the IP address parameters for SAB to see if there is an option to solve / work around the problem: 0.0.0.0, or ::, or <LAN-IP-address> (assuming you're all doing this to get access from your LAN)
- work around the problem in SABnzbd with a "try ... pass" hack around the problematic part. As this will be your personal hack, you'll have to put it into the SAB code each time you install a new version.
I don't run FreeBSD and I can't reproduce the problem, so it's hard for me to solve this for you.
It looks like we can't reproduce the problem in python alone. Can you please try again in two separate python sessions:
>>> import socket
>>> socket.getaddrinfo('0.0.0.0', 8080, socket.AF_UNSPEC,socket.SOCK_STREAM)
>>> import socket
>>> socket.getaddrinfo('::', 8080, socket.AF_UNSPEC,socket.SOCK_STREAM)
If you cannot reproduce the strange output with the code above, but you can reproduce it the little program I gave you, can you find (by interpolating?) the most minimal code that does generate the strange output?
I think you have the following options for solving the (resulting?) problem in SABnzbd:
- solve the problem in python
- solve the problem somehow in your system settings
- experiment with the IP address parameters for SAB to see if there is an option to solve / work around the problem: 0.0.0.0, or ::, or <LAN-IP-address> (assuming you're all doing this to get access from your LAN)
- work around the problem in SABnzbd with a "try ... pass" hack around the problematic part. As this will be your personal hack, you'll have to put it into the SAB code each time you install a new version.
I don't run FreeBSD and I can't reproduce the problem, so it's hard for me to solve this for you.
Re: SABnzbd 0.7.0 - FreeBSD8.3
On my test Sab box with minimal install:
This is on my stock install of FreeBSD 8.3, I dont adjust any settings, I dont understand why it would be giving this output of '28'?
Thanks for any advice. Shypike - you said its a bad port sqlite? Do you recommend one that I install?
Code: Select all
sabtest# python
Python 2.7.3 (default, Jun 19 2012, 03:57:44)
[GCC 4.2.2 20070831 prerelease [FreeBSD]] on freebsd8
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> socket.getaddrinfo('0.0.0.0', 8080, socket.AF_UNSPEC,socket.SOCK_STREAM)
[(2, 1, 6, '', ('0.0.0.0', 8080))]
>>> exit()
sabtest#
Code: Select all
sabtest# python
Python 2.7.3 (default, Jun 19 2012, 03:57:44)
[GCC 4.2.2 20070831 prerelease [FreeBSD]] on freebsd8
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> socket.getaddrinfo('::', 8080, socket.AF_UNSPEC,socket.SOCK_STREAM)
[(28, 1, 6, '', (28, '\x1f\x90\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'))]
>>> exit()
sabtest#
Thanks for any advice. Shypike - you said its a bad port sqlite? Do you recommend one that I install?
Re: SABnzbd 0.7.0 - FreeBSD8.3
So ... the '::' results in something strange. Which - IMHO - is a python or system bug.
However: the '0.0.0.0' results look good here, but you filled out '0.0.0.0' in SABnzbd, and that went wrong? Why can't we reproduce that with the two lines of python code? As said in my previous post, can you 'interpolate' between the two lines of python code and the program snippet to get the most minimal python code the results in the problem with '0.0.0.0' as input?
However: the '0.0.0.0' results look good here, but you filled out '0.0.0.0' in SABnzbd, and that went wrong? Why can't we reproduce that with the two lines of python code? As said in my previous post, can you 'interpolate' between the two lines of python code and the program snippet to get the most minimal python code the results in the problem with '0.0.0.0' as input?
Re: SABnzbd 0.7.0 - FreeBSD8.3
Fixed!!!
So, in the end, it was my fault.
I always "un-check" ipv6 support on everything that I compile, because my thought was always I don't use it, don't want it. But now that support for ipv6 is in SAB - this was breaking it, because when it tried to bind to ipv6 it would freak out. As a temporary workaround I set my host = 10.0.0.1 (IP of my server). But I will now be compiling Python and other programs WITH ipv6 support so this doesn't happen again, and will be able to set host to 0.0.0.0.
Below you can see it properly binding to both now.
Thanks to Shypike and Sander for your help!
So, in the end, it was my fault.
Below you can see it properly binding to both now.
Code: Select all
2012-07-19 19:29:57,108::INFO::[_cplogging:55] [19/Jul/2012:19:29:57] ENGINE Serving on ::1:8080
2012-07-19 19:29:57,328::INFO::[_cplogging:55] [19/Jul/2012:19:29:57] ENGINE Serving on 0.0.0.0:8080

