Page 1 of 1

[Ubuntu] Exception in HTTPServer; Permission denied

Posted: January 11th, 2010, 5:36 pm
by Leftblank
I've recently switched to Ubuntu and ofc decided to install sabnzbdplus, sadly I'm facing an error when running sabnzbdplus as non-root; it's not able to set up a socket for the cherrypy server.

The exact error generated is the following:

Code: Select all

Exception in thread HTTPServer Thread-11:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 525, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.6/threading.py", line 477, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/share/sabnzbdplus/cherrypy/process/servers.py", line 75, in _start_http_thread
    self.httpserver.start()
  File "/usr/share/sabnzbdplus/cherrypy/wsgiserver/__init__.py", line 1629, in start
    raise socket.error, msg
error: [Errno 13] Permission denied
This is on an Ubuntu 9.10 system, this bug occurred with both the last 0.4.x version as well as the latest  0.5.0~beta6 version (in the repository maintained by JCF Ploemen). Hopefully you guys happen to know a solution, running the app as root kinda ruins the possibilities to autolaunch Sab in a neat way.

Re: [Ubuntu] Exception in HTTPServer; Permission denied

Posted: January 12th, 2010, 3:25 am
by shypike
All Linux system forbid access to lower port numbers for non-root users.
Try using a port above 8000.

Re: [Ubuntu] Exception in HTTPServer; Permission denied

Posted: January 12th, 2010, 6:10 am
by Leftblank
shypike wrote: All Linux system forbid access to lower port numbers for non-root users.
Try using a port above 8000.
That solved it indeed, I find it a bit odd though considering apps like Ruby on Rails run fine without root user on port 3000. Thanks either way!