Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
NabiKAZ opened this issue Jan 11, 2023 · 1 comment

Comments

@NabiKAZ
Copy link

NabiKAZ commented Jan 11, 2023

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants