-
Notifications
You must be signed in to change notification settings - Fork 13k
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
fail to start dify with podman; nginx excited; worker fails to connect redis #16967
Comments
Hello, @ZelinMa557! I'm here to help you with your Dify issue. I can assist with bug fixes, answer questions, and guide you on becoming a contributor. I found a similar closed issue that might help with your Redis connection problem. The suggested solution is to ensure that the Redis container is running properly. Here are some steps you can follow:
Additionally, for the 'host not found in upstream' error in Nginx, ensure you are using Dify version 0.15.3 or later. Verify that the target container is running by executing: docker ps -q | xargs -n 1 docker inspect --format '{{ .Name }}: {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' Look for the lines corresponding to your web and API services, and update the Nginx configuration with the correct IP addresses. Restart the Nginx container or reload the configuration if necessary [2]. 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 |
@dosu I think worker fails to connect redis:6379 because nginx excited. Logs of nginx:
This might explain why worker fails to connect nginx. |
The Nginx error indicates that it cannot resolve the hostname "api" in its configuration. This is likely due to network settings or service discovery issues. Here are steps to resolve this:
These steps should help resolve the Nginx issue, which might also be affecting the worker's ability to connect to Redis [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 |
Self Checks
Dify version
0.15.3
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
✔️ Expected Behavior
success to start dify
❌ Actual Behavior
full log:
The text was updated successfully, but these errors were encountered: