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

Tried the single port docker tutorial and it did not work #190

Closed
jupiterou opened this issue Apr 19, 2023 · 1 comment
Closed

Tried the single port docker tutorial and it did not work #190

jupiterou opened this issue Apr 19, 2023 · 1 comment
Labels
T: Bug Something isn't working

Comments

@jupiterou
Copy link

Hi,
I have tried the online tutorial for single port docker image installation on a VPS.
Since the single port approach creates two containers/images the marzban-nginx
container always exits, and following error is generated and logged for the marzban-nginx
container.

nginx: [emerg] bind() to unix:/run/nginx-h2c.socket failed (98: Address already in use)
2023/04/19 18:54:53 [notice] 1#1: try again to bind() after 500ms
2023/04/19 18:54:53 [emerg] 1#1: bind() to unix:/run/nginx-h1.socket failed (98: Address already in use)
nginx: [emerg] bind() to unix:/run/nginx-h1.socket failed (98: Address already in use)
2023/04/19 18:54:53 [emerg] 1#1: bind() to unix:/run/nginx-h2c.socket failed (98: Address already in use)
nginx: [emerg] bind() to unix:/run/nginx-h2c.socket failed (98: Address already in use)
2023/04/19 18:54:53 [notice] 1#1: try again to bind() after 500ms
2023/04/19 18:54:53 [emerg] 1#1: bind() to unix:/run/nginx-h1.socket failed (98: Address already in use)
nginx: [emerg] bind() to unix:/run/nginx-h1.socket failed (98: Address already in use)
2023/04/19 18:54:53 [emerg] 1#1: bind() to unix:/run/nginx-h2c.socket failed (98: Address already in use)
nginx: [emerg] bind() to unix:/run/nginx-h2c.socket failed (98: Address already in use)
2023/04/19 18:54:53 [notice] 1#1: try again to bind() after 500ms
2023/04/19 18:54:53 [emerg] 1#1: still could not bind()
nginx: [emerg] still could not bind()

I do not know how to solve the issue, I persume the port 443 or 80 should not be used by other app or container,
executing following commands also did not retuned any value.
#netstat -tulpn | grep --color :80

or
netstat -tulpn | grep --color :443

I would like to know the reason behind the marzban-nginx that cause it to fail, is there any fix for that?Thanks

@jupiterou jupiterou added the T: Bug Something isn't working label Apr 19, 2023
@OxJ4ck
Copy link
Contributor

OxJ4ck commented Apr 19, 2023

try removing /var/lib/marzban/run folder.

docker compose down
rm -r /var/lib/marzban/run
docker compose up -d

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

No branches or pull requests

3 participants