Sensu go not backend not starting as service

Hi, I have an issue: I’m not able to start sensu go Service when I changed Dashboard port to 443. It is working fine If I start it using sunsu-backend start command… I checked port 443 it’s free Please help

I assume the following means you are running this as root?

It is working fine If I start it using sunsu-backend start command

When started as a service, it is running as the sensu user. The sensu user is non-privileged and cannot bind to listen to ports 1024 and below. If you want to have your dashboard available via port 443 you have a few options. These are listed in order of my personal preference.

  1. Run a local NGINX or Apache HTTPD proxy that listens on port 443 and proxies to the sensu-backed on port 3000. Other options could include HAProxy or other load balancers (such as ELBv2 for AWS instances).

  2. Use iptables (or whatever firewall/IP filtering is available on your server) to do the port forwarding.

  3. Use sudo setcap CAP_NET_BIND_SERVICE=+eip /path/to/sensu-backend to allow the sensu-backend binary to bind to ports 1024 and below. This is truly my least recommended method.

Perfect solution todd. Thanks tons.

1 Like