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

Error starting userland proxy: listen tcp4 0.0.0.0:80: bind: address already in use #1760

Closed
2 tasks done
maxjeblick opened this issue Dec 15, 2023 · 2 comments
Closed
2 tasks done
Labels
🐞 bug Something isn't working

Comments

@maxjeblick
Copy link

Self Checks

Dify version

c09184f

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

When starting docker compose, I'm getting the error mentioned in the title.
Steps to reproduce:

  • clone repository
  • start docker compose

Output of sudo lsof -i :80

 max@max  ~/PycharmProjects/dify/docker   main  sudo lsof -i :80
COMMAND     PID     USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
apache2    1247     root    4u  IPv6  35366      0t0  TCP *:http (LISTEN)
apache2    1249 www-data    4u  IPv6  35366      0t0  TCP *:http (LISTEN)
apache2    1250 www-data    4u  IPv6  35366      0t0  TCP *:http (LISTEN)
tailscale  1521     root   18u  IPv6  39312      0t0  TCP dynamic-2a01-0c22-7ac1-fb00-1ee9-7d77-ca38-4f28.c22.pool.telefonica.de:41942->[2a05:d014:386:202:30f5:de62:8eed:5c47]:http (ESTABLISHED)
firefox   23568      max   72u  IPv4 309931      0t0  TCP max:60426->82.221.107.34.bc.googleusercontent.com:http (ESTABLISHED)
firefox   23568      max  104u  IPv6 309928      0t0  TCP dynamic-2a01-0c22-7ac1-fb00-1ee9-7d77-ca38-4f28.c22.pool.telefonica.de:35548->[2600:1901:0:38d7::]:http (ESTABLISHED)
firefox   23568      max  106u  IPv6 309929      0t0  TCP dynamic-2a01-0c22-7ac1-fb00-1ee9-7d77-ca38-4f28.c22.pool.telefonica.de:35560->[2600:1901:0:38d7::]:http (ESTABLISHED)

✔️ Expected Behavior

Docker compose works without an issue.

❌ Actual Behavior

Error response from daemon: driver failed programming external connectivity on endpoint docker-nginx-1 (a4c0b574f8d2b6bb91a0bd6c6371b17244fb057360eccafec97a5a39dba87f82): Error starting userland proxy: listen tcp4 0.0.0.0:80: bind: address already in use

@maxjeblick maxjeblick added the 🐞 bug Something isn't working label Dec 15, 2023
@maxjeblick
Copy link
Author

I solved the issue by running sudo /etc/init.d/apache2 stop (see here: laradock/laradock#16).

Might be useful to add this to FAQ. Otherwise I can close this issue.

@crazywoola
Copy link
Member

Thanks, I have just update the docs. 👉 here. I will close this issue. Thanks bro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants