-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
An error occurs when port 5432 is occupied by another program, even though DB_PORT in the .env file has been changed to 5433. #14442
Comments
Hey @IncubatorShokuhou! I'm here to help you with any bugs, questions, or contributions you have for Dify. Let's work together to solve this issue! The error occurs because the To resolve the issue, you need to ensure that the ports:
- '5433:5432' This change will map the host port 5433 to the container's port 5432, resolving the port conflict [1]. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
@dosubot So I need to change DB_PORT=5433 and add EXPOSE_DB_PORT=5433 in .env ? |
Yes, that's correct. You should set both To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
In your case, you only need to modify |
Hey @crazywoola! I'm here to help with bugs, technical questions, and engineering knowledge. It looks like you're diving into some configuration details. If you think I should have more to say on this, feel free to reach out to the Dosu Team. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
It works for me. Thank you! |
Self Checks
Dify version
0.15.3
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
DB_PORT
in .env to 5433✔️ Expected Behavior
no error occour
❌ Actual Behavior
Error response from daemon: driver failed programming external connectivity on endpoint docker-db-1 (1d166d9ffdded0d2b66475026ad5033576bfecd3b456ff925d6202bca1c9fdd9): Error starting userland proxy: listen tcp4 0.0.0.0:5432: bind: address already in use
The text was updated successfully, but these errors were encountered: