[Ubuntu] Exception in HTTPServer; Permission denied

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
Leftblank
Newbie
Newbie
Posts: 6
Joined: June 19th, 2008, 7:27 am

[Ubuntu] Exception in HTTPServer; Permission denied

Post 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.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: [Ubuntu] Exception in HTTPServer; Permission denied

Post by shypike »

All Linux system forbid access to lower port numbers for non-root users.
Try using a port above 8000.
Leftblank
Newbie
Newbie
Posts: 6
Joined: June 19th, 2008, 7:27 am

Re: [Ubuntu] Exception in HTTPServer; Permission denied

Post 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!
Post Reply