Skip to content

Dify backend is running but inaccessible in browser. #18857

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

Open
5 tasks done
2002yxd1128 opened this issue Apr 27, 2025 · 2 comments
Open
5 tasks done

Dify backend is running but inaccessible in browser. #18857

2002yxd1128 opened this issue Apr 27, 2025 · 2 comments
Labels
🤔 cant-reproduce We can not reproduce it or the information is limited

Comments

@2002yxd1128
Copy link

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.0.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

My Dify instance has been running on the server without any modifications, but one day it suddenly became inaccessible via the browser. The backend services appear to be functioning normally. What could be causing this issue?
Image

Image

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

@dosubot dosubot bot added the 🤔 cant-reproduce We can not reproduce it or the information is limited label Apr 27, 2025
Copy link

dosubot bot commented Apr 27, 2025

I found similar threads discussing the issue of Dify being inaccessible in the browser despite the backend services running normally. Here are some relevant discussions and solutions:

  1. Open Issue: Dify backend is running but inaccessible in browser suggests ensuring that your environment variables in the docker-compose.yaml file are correctly configured with your server's addresses. Specifically, set variables like CONSOLE_API_URL, SERVICE_API_URL, and APP_API_URL with your actual server domain. Additionally, make sure your application is not bound to localhost but to a publicly accessible domain or IP address. If Nginx is running on your system, stop it using sudo systemctl stop nginx, then restart the Dify containers with docker compose up -d. If you encounter a PluginDaemonInternalServerError: killed by timeout error, add PLUGIN_MAX_EXECUTION_TIMEOUT: 2400 to your docker-compose.yaml file [1].

  2. Closed Issue: Prompt generator return HTTP 502 (Bad Gateway) was resolved by updating the Nginx configuration to point to the correct container IP addresses. You can check the IP addresses of your Docker containers using:

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

    Then, update the Nginx configuration in dify/docker/nginx/conf.d to use these IP addresses for the API and web services [2].

Additionally, it's important to note that version 1.0.0 of Dify has not been officially released and shows compatibility issues. It is recommended to use version v0.15.3 for production environments to avoid potential problems [3].

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

@crazywoola
Copy link
Member

I think the provided information is not sufficient to investigate, I suggest upgrading to the latest version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤔 cant-reproduce We can not reproduce it or the information is limited
Projects
None yet
Development

No branches or pull requests

2 participants