Permission denied when binding port not fatal

Report & discuss bugs found in 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
User avatar
jcfp
Release Testers
Release Testers
Posts: 989
Joined: February 7th, 2008, 12:45 pm

Permission denied when binding port not fatal

Post by jcfp »

Starting sabnzbd+ on a privileged port under a user account that has insufficient rights for this (i.e. non-root) does not cause startup to fail, like it does when coming across similar issues such as the port being in use. As a result, the program will be started without a web interface or api access, making it fairly hard to stop in a clean way for the (newbie) user especially when run as a daemon.

The following error is logged, but not acted upon:
Exception in thread CPHTTPServer Thread-8:
Traceback (most recent call last):
  File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.5/threading.py", line 446, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/var/lib/python-support/python2.5/cherrypy/_cpserver.py", line 114, in _start_http
    self.httpserver.start()
  File "/var/lib/python-support/python2.5/cherrypy/_cpwsgiserver.py", line 301, in start
    raise socket.error, msg
error: (13, 'Permission denied')
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Permission denied when binding port not fatal

Post by shypike »

Filed as ticket #98.
Post Reply