WhatsApp / proxy

This repository contains the WhatsApp proxy implementation for users to host their own proxy infrastructure to connect to WhatsApp for chat (VoIP is not currently supported)
MIT License
1.4k stars 385 forks source link

*SOLVED* ERROR: for frontend haproxy_v4_http: cannot bind socket (Permission denied) #110

Open NabiKAZ opened 1 year ago

NabiKAZ commented 1 year ago

If you get this error:

[ALERT]    (21) : Binding [/usr/local/etc/haproxy/haproxy.cfg:59] for frontend haproxy_v4_http: cannot bind socket (Permission denied) for [0.0.0.0:80]
[ALERT]    (21) : Binding [/usr/local/etc/haproxy/haproxy.cfg:68] for frontend haproxy_v4_https: cannot bind socket (Permission denied) for [0.0.0.0:443]
[ALERT]    (21) : [haproxy.main()] Some protocols failed to start their listeners! Exiting.

Just add --user root to docker run command. be like this:

docker run -it -p 80:80 -p 443:443 -p 5222:5222 -p 8080:8080 -p 8443:8443 -p 8222:8222 -p 8199:8199 --user root whatsapp_proxy:1.0
eozturk1 commented 1 year ago

FAQ has an item for this. Could you try the solution there instead of running the container as root?