Page 1 of 1

Permission denied when binding port not fatal

Posted: August 23rd, 2008, 11:17 am
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')

Re: Permission denied when binding port not fatal

Posted: August 24th, 2008, 4:20 am
by shypike
Filed as ticket #98.