I am getting the following error from gunicorn when I try to bind on port 443:
JavaScript
x
11
11
1
Retrying in 1 second.
2
Retrying in 1 second.
3
Retrying in 1 second.
4
Retrying in 1 second.
5
Retrying in 1 second.
6
Can't connect to ('0.0.0.0',443)
7
8
or
9
10
Can't connect to ('',443)
11
Advertisement
Answer
Ports < 1024 are privileged ports. Give access to process that is binding on that port:
JavaScript
1
2
1
setcap CAP_NET_BIND_SERVICE=+eip /usr/bin/python3.6
2