You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 7, 2020. It is now read-only.
Background - I was attempting to run uchiwa on port 80 and it seemed to silently exit, however uchiwa would successfully run as root. I would see {"Date":"2015-07-02T17:55:22.798964641Z","Level":"info","Src":{"Func":"github.com/sensu/uchiwa/uchiwa.(*Uchiwa).WebServer","Line":274},"Output":"Uchiwa is now listening on 0.0.0.0:80"} in the logs, however the service would immediately exit.
You can see that the message that uchiwa is listening on a port comes before the attempt to open the port. Can you please move the message after the port is opened so that this is easier to debug.
The text was updated successfully, but these errors were encountered:
Unfortunately it isn't possible to add anything after the http.ListenAndServefunction. However, we could wrap it with logger.Fatallike this so if you attempt to start Uchiwa on a privileged port with an unprivileged user, the following error would be thrown:
{"Date":"2015-07-06T13:53:35.276351058-04:00","Level":"info","Src":{"Func":"github.com/sensu/uchiwa/uchiwa/config.Load","Line":75},"Output":"Loading configuration file ./config.json"}
{"Date":"2015-07-06T13:53:35.276992056-04:00","Level":"info","Src":{"Func":"github.com/sensu/uchiwa/uchiwa.(*Uchiwa).WebServer","Line":286},"Output":"Uchiwa is now listening on 0.0.0.0:80"}
{"Date":"2015-07-06T13:53:35.277079942-04:00","Level":"fatal","Src":{"Func":"github.com/sensu/uchiwa/uchiwa.(*Uchiwa).WebServer","Line":288},"Output":"listen tcp 0.0.0.0:80: bind: permission denied"}
Background - I was attempting to run uchiwa on port 80 and it seemed to silently exit, however uchiwa would successfully run as root. I would see
{"Date":"2015-07-02T17:55:22.798964641Z","Level":"info","Src":{"Func":"github.com/sensu/uchiwa/uchiwa.(*Uchiwa).WebServer","Line":274},"Output":"Uchiwa is now listening on 0.0.0.0:80"}
in the logs, however the service would immediately exit.Interesting part of the strace is below --
You can see that the message that uchiwa is listening on a port comes before the attempt to open the port. Can you please move the message after the port is opened so that this is easier to debug.
The text was updated successfully, but these errors were encountered: