Start success, but visit http://localhost/install refused #11913

Closed
opened 2026-02-21 19:04:42 -05:00 by yindo · 1 comment
Owner

Originally created by @MrBigBang on GitHub (Mar 20, 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

latest

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

install dify on my compute by docker compose up -d, no errors, but view http://localhost/install not work,browser prints ERR_CONNECTION_REFUSED
run docker ps, echo below info:

CONTAINER ID   IMAGE                                       COMMAND                   CREATED       STATUS                              PORTS                                                                          NAMES
e7e2666721f4   nginx:latest                                "sh -c 'cp /docker-e…"   8 hours ago   Up 13 seconds                       0.0.0.0:80->80/tcp, [::]:80->80/tcp, 0.0.0.0:443->443/tcp, [::]:443->443/tcp   docker-nginx-1
e8727a56a2c2   langgenius/dify-api:1.1.1                   "/bin/bash /entrypoi…"   8 hours ago   Up 1 second                         5001/tcp                                                                       docker-api-1
0644ebfd0326   langgenius/dify-api:1.1.1                   "/bin/bash /entrypoi…"   8 hours ago   Up 1 second                         5001/tcp                                                                       docker-worker-1
2822483b73f0   langgenius/dify-plugin-daemon:0.0.6-local   "/bin/bash -c /app/e…"   8 hours ago   Restarting (2) About a minute ago                                                                                  docker-plugin_daemon-1
537544a9b876   redis:6-alpine                              "docker-entrypoint.s…"   8 hours ago   Restarting (1) 14 minutes ago                                                                                      docker-redis-1
270088d877d8   postgres:15-alpine                          "docker-entrypoint.s…"   8 hours ago   Restarting (1) 14 minutes ago                                                                                      docker-db-1
2ce5babee945   langgenius/dify-web:1.1.1                   "/bin/sh ./entrypoin…"   8 hours ago   Up 8 hours                          3000/tcp                                                                       docker-web-1
cda9ca131874   langgenius/dify-sandbox:0.2.10              "/main"                   8 hours ago   Up 8 hours (healthy)                                                                                               docker-sandbox-1
2d1ab84bc20a   ubuntu/squid:latest                         "sh -c 'cp /docker-e…"   8 hours ago   Up 8 hours                          3128/tcp                                                                       docker-ssrf_proxy-1
7d0e43787829   semitechnologies/weaviate:1.19.0            "/bin/weaviate --hos…"   8 hours ago   Up 8 hours                                                                                                         docker-weaviate-1

✔️ Expected Behavior

why and how to fix

Actual Behavior

No response

Originally created by @MrBigBang on GitHub (Mar 20, 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 latest ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce install dify on my compute by `docker compose up -d`, no errors, but view `http://localhost/install` not work,browser prints ERR_CONNECTION_REFUSED run `docker ps`, echo below info: ``` CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES e7e2666721f4 nginx:latest "sh -c 'cp /docker-e…" 8 hours ago Up 13 seconds 0.0.0.0:80->80/tcp, [::]:80->80/tcp, 0.0.0.0:443->443/tcp, [::]:443->443/tcp docker-nginx-1 e8727a56a2c2 langgenius/dify-api:1.1.1 "/bin/bash /entrypoi…" 8 hours ago Up 1 second 5001/tcp docker-api-1 0644ebfd0326 langgenius/dify-api:1.1.1 "/bin/bash /entrypoi…" 8 hours ago Up 1 second 5001/tcp docker-worker-1 2822483b73f0 langgenius/dify-plugin-daemon:0.0.6-local "/bin/bash -c /app/e…" 8 hours ago Restarting (2) About a minute ago docker-plugin_daemon-1 537544a9b876 redis:6-alpine "docker-entrypoint.s…" 8 hours ago Restarting (1) 14 minutes ago docker-redis-1 270088d877d8 postgres:15-alpine "docker-entrypoint.s…" 8 hours ago Restarting (1) 14 minutes ago docker-db-1 2ce5babee945 langgenius/dify-web:1.1.1 "/bin/sh ./entrypoin…" 8 hours ago Up 8 hours 3000/tcp docker-web-1 cda9ca131874 langgenius/dify-sandbox:0.2.10 "/main" 8 hours ago Up 8 hours (healthy) docker-sandbox-1 2d1ab84bc20a ubuntu/squid:latest "sh -c 'cp /docker-e…" 8 hours ago Up 8 hours 3128/tcp docker-ssrf_proxy-1 7d0e43787829 semitechnologies/weaviate:1.19.0 "/bin/weaviate --hos…" 8 hours ago Up 8 hours docker-weaviate-1 ``` ### ✔️ Expected Behavior why and how to fix ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug🤔 cant-reproduce labels 2026-02-21 19:04:42 -05:00
yindo closed this issue 2026-02-21 19:04:42 -05:00
Author
Owner

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

Hey @MrBigBang! I'm here to help you with any bugs, questions, or contributions. Let's get this issue sorted out together!

I found a similar issue where users experienced an ERR_CONNECTION_REFUSED error when trying to access the Dify install page. Here are some steps you can take to resolve this issue:

  1. Check Environment Variables: Ensure that your .env file is correctly configured with the necessary API URLs. Specifically, verify that CONSOLE_API_URL, SERVICE_API_URL, and APP_API_URL are set to the correct backend URLs for your application. If they are left empty, they default to the same domain, which might not be suitable for your setup [1].

  2. Configure Server Address: If you are trying to access the application using 127.0.0.1, remember that this is the internal address of the container. You need to configure Dify's server address to be the host's local network IP address instead. Set DIFY_BIND_ADDRESS to 0.0.0.0 in your .env file to allow access from external sources [1].

  3. Verify Port Configuration: Ensure that EXPOSE_NGINX_PORT and EXPOSE_NGINX_SSL_PORT are correctly set to the ports you intend to use for HTTP and HTTPS access [1].

  4. Check Middleware Services: Make sure that all required middleware services (PostgreSQL, Redis, Weaviate) are properly configured and running. The logs indicate that docker-redis-1 and docker-db-1 are restarting, which suggests there might be configuration issues with these services.

  5. Firewall and Network Settings: Ensure that no firewall rules are blocking the necessary ports (e.g., 80, 443, 5001) and that your network settings allow for the required connections.

These steps should help you troubleshoot and resolve the ERR_CONNECTION_REFUSED error.

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 20, 2025): <!-- Greeting --> Hey @MrBigBang! I'm here to help you with any bugs, questions, or contributions. Let's get this issue sorted out together! <!-- Answer --> I found a similar issue where users experienced an ERR_CONNECTION_REFUSED error when trying to access the Dify install page. Here are some steps you can take to resolve this issue: 1. **Check Environment Variables**: Ensure that your `.env` file is correctly configured with the necessary API URLs. Specifically, verify that `CONSOLE_API_URL`, `SERVICE_API_URL`, and `APP_API_URL` are set to the correct backend URLs for your application. If they are left empty, they default to the same domain, which might not be suitable for your setup <sup>[[1]](https://github.com/langgenius/dify/issues/15292)</sup>. 2. **Configure Server Address**: If you are trying to access the application using `127.0.0.1`, remember that this is the internal address of the container. You need to configure Dify's server address to be the host's local network IP address instead. Set `DIFY_BIND_ADDRESS` to `0.0.0.0` in your `.env` file to allow access from external sources <sup>[[1]](https://github.com/langgenius/dify/issues/15292)</sup>. 3. **Verify Port Configuration**: Ensure that `EXPOSE_NGINX_PORT` and `EXPOSE_NGINX_SSL_PORT` are correctly set to the ports you intend to use for HTTP and HTTPS access <sup>[[1]](https://github.com/langgenius/dify/issues/15292)</sup>. 4. **Check Middleware Services**: Make sure that all required middleware services (PostgreSQL, Redis, Weaviate) are properly configured and running. The logs indicate that `docker-redis-1` and `docker-db-1` are restarting, which suggests there might be configuration issues with these services. 5. **Firewall and Network Settings**: Ensure that no firewall rules are blocking the necessary ports (e.g., 80, 443, 5001) and that your network settings allow for the required connections. These steps should help you troubleshoot and resolve the ERR_CONNECTION_REFUSED error. <!-- 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/ad4b287f-19ac-4dd7-8c41-61c81ce85435?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/ad4b287f-19ac-4dd7-8c41-61c81ce85435?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/ad4b287f-19ac-4dd7-8c41-61c81ce85435?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/ad4b287f-19ac-4dd7-8c41-61c81ce85435?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/ad4b287f-19ac-4dd7-8c41-61c81ce85435?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/ad4b287f-19ac-4dd7-8c41-61c81ce85435?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/ad4b287f-19ac-4dd7-8c41-61c81ce85435?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#11913