Server Fails to Start - bind: permission denied

Server Fails to Start - bind: permission denied

20537
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


  1. To verify this is the reason, execute:
sudo getcap /usr/local/demisto/server
  1. The response should be empty.
  2. To resolve it, execute:
sudo setcap cap_net_bind_service=+ep /usr/local/demisto/server
  1. And restart the service


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000PNiTCAW&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail