Page 1 of 1

Web server fails to start in 0.4.7 on Arch Linux

Posted: February 28th, 2009, 12:26 am
by Ashex
I upgraded from 0.4.6 to 0.4.7 today and am unable to get it to start successfully.

Running it as root, the following is from stdout:
/opt/sabnzbd/cherrypy/lib/cptools.py:3: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5                                                                                               
/opt/sabnzbd/cherrypy/filters/sessionfilter.py:33: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha                                                                                                                     
2009-02-27 21:15:18,957::INFO::--------------------------------                                                                   
2009-02-27 21:15:18,958::INFO::SABnzbd.py-0.4.7 (rev=2225)                                                                       
2009-02-27 21:15:18,958::INFO::Platform = posix                                                                                   
2009-02-27 21:15:18,958::INFO::Python-version = 2.6.1 (r261:67515, Dec  7 2008, 08:27:41)                                         
[GCC 4.3.2]                                                                                                                       
2009-02-27 21:15:18,960::INFO::[sabnzbd] Loading data for rss_data.sab from /root/cache/rss_data.sab                             
2009-02-27 21:15:18,961::INFO::[sabnzbd] Loading data for bytes7.sab from /root/cache/bytes7.sab                                 
2009-02-27 21:15:18,961::INFO::[sabnzbd] Loading data for queue7.sab from /root/cache/queue7.sab                                 
2009-02-27 21:15:18,962::WARNING::[downloader] No active primary servers defined, will not download!                             
2009-02-27 21:15:18,996::INFO::All processes started                                                                             
2009-02-27 21:15:18,997::INFO::_yenc module... found!                                                                             
2009-02-27 21:15:18,997::INFO::celementtree module... found!                                                                     
2009-02-27 21:15:18,997::INFO::par2 binary... found (/usr/bin/par2)                                                               
2009-02-27 21:15:18,997::INFO::unrar binary... found (/usr/bin/unrar)                                                             
2009-02-27 21:15:18,998::INFO::unzip binary... found (/usr/bin/unzip)                                                             
2009-02-27 21:15:18,998::INFO::nice binary... found (/usr/bin/nice)                                                               
2009-02-27 21:15:18,998::INFO::ionice binary... found (/usr/bin/ionice)                                                           
2009-02-27 21:15:18,998::INFO::pyOpenSSL... found (True)                                                                         
2009-02-27 21:15:18,999::INFO::Web dir is /opt/sabnzbd/interfaces/smpl                                                           
2009-02-27 21:15:19,020::INFO::Starting SABnzbd.py-0.4.7                                                                         
2009-02-27 21:15:19,038::INFO::[nzbqueue] Saving queue                                                                           
2009-02-27 21:15:19,038::INFO::[sabnzbd] Saving data for queue7.sab in /root/cache/queue7.sab                                     
2009-02-27 21:15:19,038::INFO::[sabnzbd] Saving data for bytes7.sab in /root/cache/bytes7.sab                                     
2009-02-27 21:15:19,039::INFO::[sabnzbd] Saving data for rss_data.sab in /root/cache/rss_data.sab                                 
2009-02-27 21:15:19,265::INFO::[sabnzbd.misc] URLGrabber starting up                                                             
2009-02-27 21:15:19,265::INFO::Starting web-interface on localhost:8080                                                           
27/Feb/2009:21:15:19 CONFIG INFO Server parameters:                                                                               
27/Feb/2009:21:15:19 CONFIG INFO  server.environment: production                                                                 
27/Feb/2009:21:15:19 CONFIG INFO  server.log_to_screen: True                                                                     
27/Feb/2009:21:15:19 CONFIG INFO  server.log_file: /root/logs/cherrypy.log
27/Feb/2009:21:15:19 CONFIG INFO  server.log_tracebacks: True
27/Feb/2009:21:15:19 CONFIG INFO  server.log_request_headers: False
27/Feb/2009:21:15:19 CONFIG INFO  server.protocol_version: HTTP/1.0
27/Feb/2009:21:15:19 CONFIG INFO  server.socket_host: localhost
27/Feb/2009:21:15:19 CONFIG INFO  server.socket_port: 8080
27/Feb/2009:21:15:19 CONFIG INFO  server.socket_file:
27/Feb/2009:21:15:19 CONFIG INFO  server.reverse_dns: False
27/Feb/2009:21:15:19 CONFIG INFO  server.socket_queue_size: 5
27/Feb/2009:21:15:19 CONFIG INFO  server.thread_pool: 10
27/Feb/2009:21:15:24 HTTP INFO Port 8080 not free on 'localhost'
2009-02-27 21:15:24,343::ERROR::Failed to start web-interface
2009-02-27 21:15:24,344::INFO::Lauching browser with /tmp/tmpfsvUKR.html
2009-02-27 21:15:25,425::INFO::SABnzbd shutting down...
2009-02-27 21:15:25,425::INFO::[sabnzbd.misc] URLGrabber shutting down
2009-02-27 21:15:25,426::INFO::[downloader] Shutting down
2009-02-27 21:15:25,426::INFO::[assembler] Shutting down
2009-02-27 21:15:25,427::INFO::[nzbqueue] Saving queue
2009-02-27 21:15:25,427::INFO::[sabnzbd] Saving data for queue7.sab in /root/cache/queue7.sab
2009-02-27 21:15:25,427::INFO::[sabnzbd] Saving data for bytes7.sab in /root/cache/bytes7.sab
2009-02-27 21:15:25,428::INFO::[sabnzbd] Saving data for rss_data.sab in /root/cache/rss_data.sab

When trying to access http://localhost:8080/sabnzbd/ the following is spat out by cherry:
Traceback (most recent call last):
  File "/opt/sabnzbd/cherrypy/_cphttptools.py", line 126, in _run
    applyFilters('before_finalize')
  File "/opt/sabnzbd/cherrypy/filters/__init__.py", line 151, in applyFilters
    method()
  File "/opt/sabnzbd/sabnzbd/interface.py", line 234, in beforeFinalize
    **rsrc.callable_kwargs)
  File "/opt/sabnzbd/sabnzbd/interface.py", line 310, in index
    return template.respond()
  File "cheetah__opt_sabnzbd_interfaces_Plush_templates_main_tmpl_1235797745_02_18827.py", line 368, in respond
NotFound: cannot find 'darwin'
I am running Arch Linux i686 2.6-28-Arch. I have tried starting without a .ini config file only to have the same result. Let me know if more info is needed.

Re: Web server fails to start in 0.4.7 on Arch Linux

Posted: February 28th, 2009, 1:58 am
by sander
http://forums.sabnzbd.org/index.php?topic=387.75 mentions the exact same error message, so can you read that first? It has to do with Plush interface and/or fully stopping and starting SAB.

HTH

Re: Web server fails to start in 0.4.7 on Arch Linux

Posted: February 28th, 2009, 2:47 am
by Ashex
I tried that while troubleshooting. I'm just running it straight from root to see what happens, using -t smpl doesn't change message in stdout or from cherry.

Re: Web server fails to start in 0.4.7 on Arch Linux

Posted: February 28th, 2009, 3:29 am
by shypike
Your old SABnzbd is still running.
Check with the ps command (you need extra pameters, probably -A) and see of SABnzbd.py still runs.

Re: Web server fails to start in 0.4.7 on Arch Linux

Posted: February 28th, 2009, 3:47 am
by sander
Ashex wrote: I tried that while troubleshooting. I'm just running it straight from root to see what happens, using -t smpl doesn't change message in stdout or from cherry.
Easy, brute-force method: reboot your system and then use SAB again.

Re: Web server fails to start in 0.4.7 on Arch Linux

Posted: February 28th, 2009, 4:01 pm
by Ashex
shypike wrote: Your old SABnzbd is still running.
Check with the ps command (you need extra pameters, probably -A) and see of SABnzbd.py still runs.
Ah, for some reason I didn't consider that :/ I just told sabnzbd to shutdown and assumed that would cover it.
Well, I booted up this morning and it looks to be working!

Edit: yep, I went back and looked at stdout and it should have been obvious to me

Code: Select all

27/Feb/2009:21:15:24 HTTP INFO Port 8080 not free on 'localhost'
Thanks for your patience :)

Re: Web server fails to start in 0.4.7 on Arch Linux

Posted: March 1st, 2009, 6:09 am
by shypike
Ashex wrote: I just told sabnzbd to shutdown and assumed that would cover it.
That should be enough, only some people report that shutdown occasionally hangs.
We are working on that.

Re: Web server fails to start in 0.4.7 on Arch Linux

Posted: March 19th, 2009, 1:04 pm
by millfarm
I just want reuse this thread, as I'm facing the same problems and can't seem to find the solution, SABnzbd is running, but no webinterface:

3018 root      9760 S  python2.5 /opt/share/SABnzbd/SABnzbd.py -t smpl -f /o
3019 root      9760 S  python2.5 /opt/share/SABnzbd/SABnzbd.py -t smpl -f /o
3020 root      9760 S  python2.5 /opt/share/SABnzbd/SABnzbd.py -t smpl -f /o
3021 root      9760 S  python2.5 /opt/share/SABnzbd/SABnzbd.py -t smpl -f /o
3022 root      9760 S  python2.5 /opt/share/SABnzbd/SABnzbd.py -t smpl -f /o
3023 root      9760 S  python2.5 /opt/share/SABnzbd/SABnzbd.py -t smpl -f /o
3024 root      9760 S  python2.5 /opt/share/SABnzbd/SABnzbd.py -t smpl -f /o
3025 root      9760 S  python2.5 /opt/share/SABnzbd/SABnzbd.py -t smpl -f /o
3026 root      9760 S  python2.5 /opt/share/SABnzbd/SABnzbd.py -t smpl -f /o
3027 root      9760 S  python2.5 /opt/share/SABnzbd/SABnzbd.py -t smpl -f /o
3028 root      9760 S  python2.5 /opt/share/SABnzbd/SABnzbd.py -t smpl -f /o
3029 root      9760 S  python2.5 /opt/share/SABnzbd/SABnzbd.py -t smpl -f /o
3030 root      9760 S  python2.5 /opt/share/SABnzbd/SABnzbd.py -t smpl -f /o
3031 root      9760 S  python2.5 /opt/share/SABnzbd/SABnzbd.py -t smpl -f /o
3032 root      9760 S  python2.5 /opt/share/SABnzbd/SABnzbd.py -t smpl -f /o
3033 root      9760 S  python2.5 /opt/share/SABnzbd/SABnzbd.py -t smpl -f /o
3034 root      9760 S  python2.5 /opt/share/SABnzbd/SABnzbd.py -t smpl -f /o
3035 root      9760 S  python2.5 /opt/share/SABnzbd/SABnzbd.py -t smpl -f /o
3036 root      9760 S  python2.5 /opt/share/SABnzbd/SABnzbd.py -t smpl -f /o
3037 root      9760 S  python2.5 /opt/share/SABnzbd/SABnzbd.py -t smpl -f /o
3038 root      9760 S  python2.5 /opt/share/SABnzbd/SABnzbd.py -t smpl -f /o

I ran the daemon like this:
python2.5 /opt/share/SABnzbd/SABnzbd.py -f /opt/share/SABnzbd/SABnzbd.ini

and the output was:
2009-03-19 18:58:45,114::INFO::--------------------------------
2009-03-19 18:58:45,120::INFO::SABnzbd.py-0.4.7 (rev=2225)
2009-03-19 18:58:45,124::INFO::Platform = posix
2009-03-19 18:58:45,129::INFO::Python-version = 2.5.4 (r254:67916, Dec 24 2008, 15:27:09)
[GCC 3.4.3 (CSL 2005Q1B) (Marvell 2006Q3)]
2009-03-19 18:58:45,180::INFO::[sabnzbd] Loading data for bytes7.sab from /opt/share/SABnzbd/cache/bytes7.sab
2009-03-19 18:58:45,186::INFO::[sabnzbd] Loading data for queue7.sab from /opt/share/SABnzbd/cache/queue7.sab
2009-03-19 18:58:45,197::WARNING::[downloader] No active primary servers defined, will not download!
2009-03-19 18:58:45,210::INFO::All processes started
2009-03-19 18:58:45,246::INFO::_yenc module... found!
2009-03-19 18:58:45,250::INFO::celementtree module... found!
2009-03-19 18:58:45,255::INFO::par2 binary... found (/opt/bin/par2)
2009-03-19 18:58:45,260::INFO::unrar binary... found (/opt/bin/unrar)
2009-03-19 18:58:45,265::INFO::unzip binary... found (/opt/bin/unzip)
2009-03-19 18:58:45,270::INFO::nice binary... NOT found!
2009-03-19 18:58:45,275::INFO::ionice binary... NOT found!
2009-03-19 18:58:45,280::INFO::pyOpenSSL... NOT found - try apt-get install python-pyopenssl (SSL is optional)
2009-03-19 18:58:45,292::INFO::Web dir is /opt/share/SABnzbd/interfaces/smpl
2009-03-19 18:58:45,357::INFO::Starting SABnzbd.py-0.4.7
2009-03-19 18:58:45,364::INFO::[nzbqueue] Saving queue
2009-03-19 18:58:45,371::INFO::[sabnzbd] Saving data for queue7.sab in /opt/share/SABnzbd/cache/queue7.sab
2009-03-19 18:58:45,378::INFO::[sabnzbd] Saving data for bytes7.sab in /opt/share/SABnzbd/cache/bytes7.sab
2009-03-19 18:58:45,408::INFO::[sabnzbd.misc] URLGrabber starting up
2009-03-19 18:58:45,420::INFO::Starting web-interface on localhost:8080
19/Mar/2009:18:58:45 CONFIG INFO Server parameters:
19/Mar/2009:18:58:45 CONFIG INFO  server.environment: production
19/Mar/2009:18:58:45 CONFIG INFO  server.log_to_screen: True
19/Mar/2009:18:58:45 CONFIG INFO  server.log_file: /opt/share/SABnzbd/logs/cherrypy.log
19/Mar/2009:18:58:45 CONFIG INFO  server.log_tracebacks: True
19/Mar/2009:18:58:45 CONFIG INFO  server.log_request_headers: False
19/Mar/2009:18:58:45 CONFIG INFO  server.protocol_version: HTTP/1.0
19/Mar/2009:18:58:45 CONFIG INFO  server.socket_host: localhost
19/Mar/2009:18:58:45 CONFIG INFO  server.socket_port: 8080
19/Mar/2009:18:58:45 CONFIG INFO  server.socket_file:
19/Mar/2009:18:58:45 CONFIG INFO  server.reverse_dns: False
19/Mar/2009:18:58:45 CONFIG INFO  server.socket_queue_size: 5
19/Mar/2009:18:58:45 CONFIG INFO  server.thread_pool: 10
19/Mar/2009:18:58:45 HTTP INFO Serving HTTP on http://localhost:8080/

but nothing at http://localhost:8080/sabnzbd

any ideas?

Re: Web server fails to start in 0.4.7 on Arch Linux

Posted: March 19th, 2009, 2:38 pm
by switch
You are trying to access sabnzbd from the same machine it is running on, yes?
Do either of these work:
http://127.0.0.1:8080/sabnzbd/
http://[::1]:8080/sabnzbd/

Re: Web server fails to start in 0.4.7 on Arch Linux

Posted: March 19th, 2009, 3:10 pm
by millfarm
no, I'm trying to access it on my synology 207+

my local (this) is 10.0.0.2
and the synology is 10.0.0.6, so I'm trying to access it at http://10.0.0.6:8080/sabnzbd

and this worked perfectly until I upgraded to the new version

Re: Web server fails to start in 0.4.7 on Arch Linux

Posted: March 19th, 2009, 3:13 pm
by switch
You need to be launching it like this then:

Code: Select all

python2.5 /opt/share/SABnzbd/SABnzbd.py -f /opt/share/SABnzbd/SABnzbd.ini -s0.0.0.0:8080
or

Code: Select all

python2.5 /opt/share/SABnzbd/SABnzbd.py -f /opt/share/SABnzbd/SABnzbd.ini -s:8080
or with another port

Code: Select all

python2.5 /opt/share/SABnzbd/SABnzbd.py -f /opt/share/SABnzbd/SABnzbd.ini -s0.0.0.0:8000

Re: Web server fails to start in 0.4.7 on Arch Linux

Posted: March 19th, 2009, 3:21 pm
by millfarm
I just tried this (before I saw your reply)

changed:
host = localhost

to:
host = 10.0.0.6

EUREKA!! it now works.