running Cherrypy web service without using Sudo
Hvit Draken <[email protected]> Tue, 20 Jun 2017 04:15:46 -0700 (PDT)
| Newsgroups | gmane.comp.python.cherrypy |
|---|---|
| Message-ID | <[email protected]> |
Hi All, Hoping someone might be able to give advise. Running a webservice using Cherrypy. When using with sudo I am able to get a valid response that I expect. aka sudo ./engine.py 2017-06-20 12:12:04,214536 INFO Got successful response [200], continuing [20/Jun/2017:12:12:04] ENGINE Listening for SIGTERM. [20/Jun/2017:12:12:04] ENGINE Listening for SIGHUP. [20/Jun/2017:12:12:04] ENGINE Listening for SIGUSR1. [20/Jun/2017:12:12:04] ENGINE Bus STARTING but running withouth sudo I get: 2017-06-20 12:12:56,197863 INFO Got unsuccessful response [403], will try again in 20 seconds My first thought was it is due to using a privileged port so I used: sudo setcap CAP_NET_BIND_SERVICE=+eip /engine.py which did not resolve the issue. I also changed the port to port 8080 but the service still won't run successfully without using sudo. Has anyone come across this before and know how to fix it. Best H -- You received this message because you are subscribed to the Google Groups "cherrypy-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to cherrypy-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected] To post to this group, send email to cherrypy-users-/JYPxA39Uh5TLH3MbocFF+G/[email protected] Visit this group at https://groups.google.com/group/cherrypy-users. For more options, visit https://groups.google.com/d/optout.