mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
The model plugin often experiences internal server communication errors. I always need to uninstall the plugin and reinstalling it to fix it when i once start docker every times. #284
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Fone520 on GitHub (May 15, 2025).
Self Checks
Dify version
1.3.1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
✔️ Expected Behavior
No response
❌ Actual Behavior
No response
@dosubot[bot] commented on GitHub (May 15, 2025):
Hi there, @Fone520! I'm Dosu, your friendly neighborhood bot here to help you tackle bugs, answer questions, and guide you towards contributing. I'm ready to assist you while we wait for a human maintainer. 🚀
To address the internal server communication errors with the model plugin in your self-hosted Dify version 1.3.1 setup using Docker, consider the following steps:
Replace
localhostwithhost.docker.internal:Modify your service configuration to connect to
host.docker.internalinstead oflocalhost. This change allows Docker containers to access services running on the host machine.Set Environment Variables:
Depending on your operating system, set the
OLLAMA_HOSTenvironment variable to0.0.0.0to allow connections from Docker containers.Mac:
Use
launchctlto set the environment variable:Then, restart the Ollama application.
Linux:
Edit the systemd service for Ollama:
Reload systemd and restart Ollama:
Windows:
Edit the system environment variables to include
OLLAMA_HOSTand restart Ollama from a new terminal window.These steps should help resolve the internal server communication errors in your Docker setup [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