-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Cannot connect to redis://:**@redis:6379/1: Error -3 #5680
Comments
Hello @HakunamatataLeo! 👋 I'm here to assist you with bug solving, answering questions, and even becoming a contributor. Let's work together to resolve your issue. To resolve the issue where your Docker container "docker-worker-1" running the "langgenius/dify-api:0.6.11" image cannot connect to a Redis instance at "redis:6379" due to a "Temporary failure in name resolution," you can try the following steps:
Additionally, ensure that the Redis configuration in your services:
redis:
image: redis:6-alpine
restart: always
volumes:
- ./volumes/redis/data:/data
command: redis-server --requirepass difyai123456
ports:
- "6379:6379"
worker:
image: langgenius/dify-api:0.6.11
restart: always
environment:
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_PASSWORD: difyai123456
depends_on:
- redis
networks:
default: By ensuring that the containers are on the same network and properly configured, you should be able to resolve the "Temporary failure in name resolution" error [1][2][3]. |
If the provided configuration doesn't resolve the issue, here are additional steps you can take:
These steps should help resolve the "Temporary failure in name resolution" error [1][2]. |
An error occurred during credentials validation: HTTPConnectionPool(host='host.docker.internal', port=11434): Max retries exceeded with url: /api/chat (Caused by NameResolutionError("<urllib3.connection.HTTPConnection object at 0xffff37e92740>: Failed to resolve 'host.docker.internal' ([Errno -2] Name or service not known)")) |
@dosubot |
To address the
These steps should help resolve the |
docker server how to config the ’dns‘ @dosubot |
Run failed: Node LLM run failed: [ollama] Server Unavailable Error, HTTPConnectionPool(host='host.docker.internal', port=11434): Max retries exceeded with url: /api/chat (Caused by NameResolutionError("<urllib3.connection.HTTPConnection object at 0xffff3d9cc5e0>: Failed to resolve 'host.docker.internal' ([Errno -2] Name or service not known)")) |
@dosubot |
To configure the DNS settings for your Docker server and resolve the
These steps should help resolve the |
how to connect local ollama |
To connect to your local Ollama instance from within a Docker container, follow these steps:
By following these steps, you should be able to connect to your local Ollama instance from within a Docker container [1][2][3]. |
@HakunamatataLeo Please check your env variables in Please not not modify network bridge, if you want to disable the proxy, please see this link #5686 (comment)
For bug report, please use bug template to report an issue. This is a feature request template. Thanks :) |
Self Checks
1. Is this request related to a challenge you're experiencing? Tell me about your story.
2. Additional context or comments
Cannot connect to redis
3. Can you help us with this feature?
The text was updated successfully, but these errors were encountered: