Frequent Internal Network Errors and Invalid Invitation Links in Locally Deployed Dify 1.0.0 #103

Closed
opened 2026-02-16 11:19:46 -05:00 by yindo · 3 comments
Owner

Originally created by @nixinonana on GitHub (Mar 12, 2025).

Hello everyone,
I'm encountering two issues with Dify 1.0.0 deployed locally via Docker.
The first problem is frequent internal network errors after a successful deployment. These errors occur repeatedly, though they sometimes resolve temporarily before reappearing. I'm seeking potential solutions from others who might have experienced similar issues.
The second issue involves the invitation links generated under "Settings" - "Members." Despite multiple attempts to create new links, they consistently fail to open properly, displaying an "invalid link" message(Both devices use the same LAN). This persists even when accessing from devices on the same local network and after substituting localhost with the host IP.
Has anyone else faced these problems? I'd appreciate any insights or solutions the community can offer.
Best regards,

Originally created by @nixinonana on GitHub (Mar 12, 2025). Hello everyone, I'm encountering two issues with Dify 1.0.0 deployed locally via Docker. The first problem is frequent internal network errors after a successful deployment. These errors occur repeatedly, though they sometimes resolve temporarily before reappearing. I'm seeking potential solutions from others who might have experienced similar issues. The second issue involves the invitation links generated under "Settings" - "Members." Despite multiple attempts to create new links, they consistently fail to open properly, displaying an "invalid link" message(Both devices use the same LAN). This persists even when accessing from devices on the same local network and after substituting localhost with the host IP. Has anyone else faced these problems? I'd appreciate any insights or solutions the community can offer. Best regards,
yindo added the bug label 2026-02-16 11:19:46 -05:00
yindo closed this issue 2026-02-16 11:19:46 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Mar 12, 2025):

For the internal network errors in Dify 1.0.0 when deployed via Docker, there are a couple of known causes and solutions:

  1. Ollama Accessibility: Ensure that Ollama is accessible inside the Docker container. Replace localhost with host.docker.internal in the service URL. For macOS, set the environment variable using launchctl:

    launchctl setenv OLLAMA_HOST "0.0.0.0"
    

    For Linux, if Ollama runs as a systemd service, edit the service to include:

    [Service]
    Environment="OLLAMA_HOST=0.0.0.0"
    

    Then reload and restart the service:

    systemctl daemon-reload
    systemctl restart ollama
    

    On Windows, modify the system environment variables to include OLLAMA_HOST and restart Ollama [1].

  2. 502 Bad Gateway Error: This can occur if Nginx is forwarding requests to the wrong location. Ensure the target container is running and use the following command to find the correct IP addresses:

    docker ps -q | xargs -n 1 docker inspect --format '{{ .Name }}: {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}'
    

    Update the Nginx configuration in dify/docker/nginx/conf.d with the correct IP addresses and restart the Nginx container or reload the configuration [1].

Regarding the "invalid link" issue with invitation links, I couldn't find specific error messages or logs related to this problem in the documentation. However, ensure that the default setting for invitation link expiration is set correctly, which is 72 hours [2]. If the issue persists, consider checking the network and firewall settings to ensure proper communication between devices on the same LAN.

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 (Mar 12, 2025): <!-- Answer --> For the internal network errors in Dify 1.0.0 when deployed via Docker, there are a couple of known causes and solutions: 1. **Ollama Accessibility**: Ensure that Ollama is accessible inside the Docker container. Replace `localhost` with `host.docker.internal` in the service URL. For macOS, set the environment variable using `launchctl`: ```bash launchctl setenv OLLAMA_HOST "0.0.0.0" ``` For Linux, if Ollama runs as a systemd service, edit the service to include: ```ini [Service] Environment="OLLAMA_HOST=0.0.0.0" ``` Then reload and restart the service: ```bash systemctl daemon-reload systemctl restart ollama ``` On Windows, modify the system environment variables to include `OLLAMA_HOST` and restart Ollama <sup>[[1]](https://github.com/langgenius/dify-docs/blob/main/en/learn-more/use-cases/private-ai-ollama-deepseek-dify.md)</sup>. 2. **502 Bad Gateway Error**: This can occur if Nginx is forwarding requests to the wrong location. Ensure the target container is running and use the following command to find the correct IP addresses: ```bash docker ps -q | xargs -n 1 docker inspect --format '{{ .Name }}: {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' ``` Update the Nginx configuration in `dify/docker/nginx/conf.d` with the correct IP addresses and restart the Nginx container or reload the configuration <sup>[[1]](https://github.com/langgenius/dify-docs/blob/main/en/learn-more/use-cases/private-ai-ollama-deepseek-dify.md)</sup>. Regarding the "invalid link" issue with invitation links, I couldn't find specific error messages or logs related to this problem in the documentation. However, ensure that the default setting for invitation link expiration is set correctly, which is 72 hours <sup>[[2]](https://github.com/langgenius/dify-docs/blob/main/en/getting-started/install-self-hosted/environments.md)</sup>. If the issue persists, consider checking the network and firewall settings to ensure proper communication between devices on the same LAN. <!-- 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/fd1efae1-45ff-4278-83b7-37060602c8fc?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/fd1efae1-45ff-4278-83b7-37060602c8fc?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/fd1efae1-45ff-4278-83b7-37060602c8fc?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/fd1efae1-45ff-4278-83b7-37060602c8fc?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/fd1efae1-45ff-4278-83b7-37060602c8fc?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/fd1efae1-45ff-4278-83b7-37060602c8fc?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/fd1efae1-45ff-4278-83b7-37060602c8fc?feedback_type=other)</sup>
Author
Owner

@nixinonana commented on GitHub (Mar 13, 2025):

I'm currently using the SiliconFlow API to call the AI model, so I suspect the issue might be elsewhere.

@nixinonana commented on GitHub (Mar 13, 2025): I'm currently using the SiliconFlow API to call the AI model, so I suspect the issue might be elsewhere.
Author
Owner

@dosubot[bot] commented on GitHub (Apr 22, 2025):

Hi, @nixinonana. I'm Dosu, and I'm helping the dify-docs team manage their backlog and am marking this issue as stale.

Issue Summary:

  • You are experiencing internal network errors and invalid invitation links with Dify 1.0.0 deployed via Docker.
  • I provided troubleshooting steps, including Docker and Nginx configuration changes and checking Ollama accessibility.
  • You suspect the issue might be related to using the SiliconFlow API for calling the AI model.

Next Steps:

  • Please confirm if this issue is still relevant to the latest version of the dify-docs repository. If it is, you can keep the discussion open by commenting on this issue.
  • Otherwise, this issue will be automatically closed in 7 days.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Apr 22, 2025): Hi, @nixinonana. I'm [Dosu](https://dosu.dev), and I'm helping the dify-docs team manage their backlog and am marking this issue as stale. **Issue Summary:** - You are experiencing internal network errors and invalid invitation links with Dify 1.0.0 deployed via Docker. - I provided troubleshooting steps, including Docker and Nginx configuration changes and checking Ollama accessibility. - You suspect the issue might be related to using the SiliconFlow API for calling the AI model. **Next Steps:** - Please confirm if this issue is still relevant to the latest version of the dify-docs repository. If it is, you can keep the discussion open by commenting on this issue. - Otherwise, this issue will be automatically closed in 7 days. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-docs-archived#103