Server Fails to Start - bind: permission denied
20543
Created On 12/02/19 22:43 PM - Last Modified 04/01/20 17:21 PM
Symptom
When the Demisto server fails to start, and in the log file the following line is printed:
2017-09-03 11:22:27.3486 fatal listen tcp 0.0.0.0:443: bind: permission denied (source: /home/ubuntu/.go_workspace/src/github.com/demisto/server/web/router.go:1589)
Environment
Demisto
Cause
This happens when the server executable loses its ability to bind lower ports (considered privileged ports).
Resolution
- To verify this is the reason, execute:
sudo getcap /usr/local/demisto/server
- The response should be empty.
- To resolve it, execute:
sudo setcap cap_net_bind_service=+ep /usr/local/demisto/server
- And restart the service