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

Closed
opened 2026-02-16 10:18:47 -05:00 by yindo · 1 comment
Owner

Originally created by @Fone520 on GitHub (May 15, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.3.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @Fone520 on GitHub (May 15, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.3.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce ![Image](https://github.com/user-attachments/assets/72f1d179-fd90-431c-97b4-b39cbcaed159) ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo closed this issue 2026-02-16 10:18:47 -05:00
Author
Owner

@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:

  1. Replace localhost with host.docker.internal:
    Modify your service configuration to connect to host.docker.internal instead of localhost. This change allows Docker containers to access services running on the host machine.

    http://host.docker.internal:11434
    
  2. Set Environment Variables:
    Depending on your operating system, set the OLLAMA_HOST environment variable to 0.0.0.0 to allow connections from Docker containers.

    • Mac:
      Use launchctl to set the environment variable:

      launchctl setenv OLLAMA_HOST "0.0.0.0"
      

      Then, restart the Ollama application.

    • Linux:
      Edit the systemd service for Ollama:

      [Service]
      Environment="OLLAMA_HOST=0.0.0.0"
      

      Reload systemd and restart Ollama:

      systemctl daemon-reload
      systemctl restart ollama
      
    • Windows:
      Edit the system environment variables to include OLLAMA_HOST and 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

@dosubot[bot] commented on GitHub (May 15, 2025): <!-- Greeting --> Hi there, @Fone520! I'm [Dosu](https://dosu.dev), 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. 🚀 <!-- Answer --> 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: 1. **Replace `localhost` with `host.docker.internal`:** Modify your service configuration to connect to `host.docker.internal` instead of `localhost`. This change allows Docker containers to access services running on the host machine. ```bash http://host.docker.internal:11434 ``` 2. **Set Environment Variables:** Depending on your operating system, set the `OLLAMA_HOST` environment variable to `0.0.0.0` to allow connections from Docker containers. - **Mac:** Use `launchctl` to set the environment variable: ```bash launchctl setenv OLLAMA_HOST "0.0.0.0" ``` Then, restart the Ollama application. - **Linux:** Edit the systemd service for Ollama: ```ini [Service] Environment="OLLAMA_HOST=0.0.0.0" ``` Reload systemd and restart Ollama: ```bash systemctl daemon-reload systemctl restart ollama ``` - **Windows:** Edit the system environment variables to include `OLLAMA_HOST` and restart Ollama from a new terminal window. These steps should help resolve the internal server communication errors in your Docker setup <sup>[[1]](https://github.com/crazywoola/dify-docs-mintlify/blob/main/ja-jp/learn-more/use-cases/private-ai-ollama-deepseek-dify.mdx)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/84ae4979-4480-4f83-a04c-eea1e7c32109?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/84ae4979-4480-4f83-a04c-eea1e7c32109?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/84ae4979-4480-4f83-a04c-eea1e7c32109?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/84ae4979-4480-4f83-a04c-eea1e7c32109?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/84ae4979-4480-4f83-a04c-eea1e7c32109?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/84ae4979-4480-4f83-a04c-eea1e7c32109?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/84ae4979-4480-4f83-a04c-eea1e7c32109?feedback_type=other)</sup>
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#284