Unable to open http://localhost/install #6510

Closed
opened 2026-02-21 18:16:03 -05:00 by yindo · 4 comments
Owner

Originally created by @ZiAn-Su on GitHub (Nov 2, 2024).

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

not sure; Version dated October 31, 2024

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  • cd dify
  • cd docker
  • cp .env.example .env
  • docker compose up -d
  • http://localhost/install
    My environment is Win11+docker4.35.1
    Everything seems OK, and all the services are up.
    382233936-659cc4e6-1cd2-4f60-997b-4db79dfbe9bf
    Compared to another normal machine, the port of 80 is not monitored, perhaps the problem is here.
    be9bf
    docker_logs.txt

✔️ Expected Behavior

Enter the installation interface

Actual Behavior

382233936-659cc4e6-1cd2-4f60-997b-4db79dfbe9bf

Originally created by @ZiAn-Su on GitHub (Nov 2, 2024). ### 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 not sure; Version dated October 31, 2024 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce - cd dify - cd docker - cp .env.example .env - docker compose up -d - http://localhost/install My environment is Win11+docker4.35.1 Everything seems OK, and all the services are up. ![382233936-659cc4e6-1cd2-4f60-997b-4db79dfbe9bf](https://private-user-images.githubusercontent.com/54671439/382234168-3daf2720-0fc3-4abb-be58-87b0efdba9a0.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzA1MzI5NTAsIm5iZiI6MTczMDUzMjY1MCwicGF0aCI6Ii81NDY3MTQzOS8zODIyMzQxNjgtM2RhZjI3MjAtMGZjMy00YWJiLWJlNTgtODdiMGVmZGJhOWEwLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDExMDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMTAyVDA3MzA1MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQyM2RhZGI5ODRlZjI5YWI2MmE3NmNmZmU0NDA2NjJmMzFiMzkxMzhmOTJkZmUwMjNkOTRkMjU5MDgxMjg0NTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.OeDtzanOqNUjveG9TlbKgonHyK6CUTeh1gEQdix12pw) Compared to another normal machine, the port of 80 is not monitored, perhaps the problem is here. ![be9bf](https://private-user-images.githubusercontent.com/54671439/382234244-6ded85ed-b8b2-4de5-a8cf-98e92c3b88bd.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzA1MzI5NTAsIm5iZiI6MTczMDUzMjY1MCwicGF0aCI6Ii81NDY3MTQzOS8zODIyMzQyNDQtNmRlZDg1ZWQtYjhiMi00ZGU1LWE4Y2YtOThlOTJjM2I4OGJkLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDExMDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMTAyVDA3MzA1MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ4YmM0MmQ1MzU5MWMyYWVhODAxMTNjNDgyYzBlZjhlOGM3NjUyNjk5NDMxMmRjNWI1MzM4NTllZWU0YzIzOTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.cKUFx1nOcb2I_z9Lp3wjM8bZIfKNeNXu2OBg8UGydik) [docker_logs.txt](https://github.com/user-attachments/files/17606049/docker_logs.txt) ### ✔️ Expected Behavior Enter the installation interface ### ❌ Actual Behavior ![382233936-659cc4e6-1cd2-4f60-997b-4db79dfbe9bf](https://github.com/user-attachments/assets/767e2765-e0ab-4464-95d2-31e724b404cf)
yindo added the 🐞 bug🤔 cant-reproduce labels 2026-02-21 18:16:03 -05:00
yindo closed this issue 2026-02-21 18:16:03 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Nov 2, 2024):

@ZiAn-Su Hello there! I'm here to help you with bug fixes, answer questions, and guide you on becoming a contributor. Let's tackle this issue together!

There are similar discussions and issues related to your problem:

  1. Unable to open http://localhost/install - This discussion is unsolved and might provide insights into similar issues.
  2. Help Problem starting the project - Another unsolved discussion that might be relevant.
  3. Local Docker Setup Failure - This unsolved discussion could also be related.

A similar closed issue, docker does not rewrite specific URLs into the system, suggests that the problem might be due to the Nginx reverse proxy configuration. Here are some steps to resolve this issue:

  • Ensure that the NGINX_SERVER_NAME is set to the correct domain name.
  • Verify that NGINX_PORT and EXPOSE_NGINX_PORT are correctly set.
  • If HTTPS is enabled, ensure SSL certificates are correctly configured and NGINX_SSL_PORT and EXPOSE_NGINX_SSL_PORT are set appropriately.
  • Ensure environment variables for the API, worker, and web services are correctly set in the docker-compose.yaml file.
  • Ensure CORS settings are correctly configured to avoid cross-origin issues.
  • Use a .env file to manage these environment variables persistently across deployments [1].

Additionally, the issue could be related to port 80 not being monitored. Ensure that the docker-nginx-1 container is mapping port 80 to the host. If port 80 is being used by another service on your Windows 11 machine, this could prevent access to http://localhost/install. Verify if the container is running and check for any port conflicts [2].

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Nov 2, 2024): <!-- Greeting --> @ZiAn-Su Hello there! I'm here to help you with bug fixes, answer questions, and guide you on becoming a contributor. Let's tackle this issue together! <!-- Answer --> There are similar discussions and issues related to your problem: 1. [Unable to open http://localhost/install](https://github.com/langgenius/dify/discussions/10165) - This discussion is unsolved and might provide insights into similar issues. 2. [Help Problem starting the project](https://github.com/langgenius/dify/discussions/9751) - Another unsolved discussion that might be relevant. 3. [Local Docker Setup Failure](https://github.com/langgenius/dify/discussions/9344) - This unsolved discussion could also be related. A similar closed issue, [docker does not rewrite specific URLs into the system](https://github.com/langgenius/dify/issues/8819), suggests that the problem might be due to the Nginx reverse proxy configuration. Here are some steps to resolve this issue: - Ensure that the `NGINX_SERVER_NAME` is set to the correct domain name. - Verify that `NGINX_PORT` and `EXPOSE_NGINX_PORT` are correctly set. - If HTTPS is enabled, ensure SSL certificates are correctly configured and `NGINX_SSL_PORT` and `EXPOSE_NGINX_SSL_PORT` are set appropriately. - Ensure environment variables for the API, worker, and web services are correctly set in the `docker-compose.yaml` file. - Ensure CORS settings are correctly configured to avoid cross-origin issues. - Use a `.env` file to manage these environment variables persistently across deployments <sup>[[1]](https://github.com/langgenius/dify/discussions/10165)</sup>. Additionally, the issue could be related to port 80 not being monitored. Ensure that the `docker-nginx-1` container is mapping port 80 to the host. If port 80 is being used by another service on your Windows 11 machine, this could prevent access to `http://localhost/install`. Verify if the container is running and check for any port conflicts <sup>[[2]](https://github.com/langgenius/dify-docs/blob/main/en/getting-started/install-self-hosted/docker-compose.md)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

@crazywoola commented on GitHub (Nov 2, 2024):

cp .env.example .env

Yes everything seems okay to me, however you missed editing those variables when you deploy to another machine.

@crazywoola commented on GitHub (Nov 2, 2024): > cp .env.example .env Yes everything seems okay to me, however you missed editing those variables when you deploy to another machine.
Author
Owner

@ZiAn-Su commented on GitHub (Nov 2, 2024):

All are using the default configuration, but there is a dify that cannot be opened. @crazywoola

@ZiAn-Su commented on GitHub (Nov 2, 2024): All are using the default configuration, but there is a dify that cannot be opened. @crazywoola
Author
Owner

@ZiAn-Su commented on GitHub (Nov 5, 2024):

My problem has been solved.
My WSL has two subsystems, Linux and Docker Desktop. The default subsystem is Linux. When the Docker service is enabled, messages are forwarded to the Linux system. In the Linux system, curl http://localhost:80 can be accessed, but Windows can't access.
After setting Docker Desktop as the default system, Windows can access curl http://localhost:80 .
Snipaste_2024-11-06_00-10-54

@ZiAn-Su commented on GitHub (Nov 5, 2024): My problem has been solved. My WSL has two subsystems, Linux and Docker Desktop. The default subsystem is Linux. When the Docker service is enabled, messages are forwarded to the Linux system. In the Linux system, curl http://localhost:80 can be accessed, but Windows can't access. After setting Docker Desktop as the default system, Windows can access curl http://localhost:80 . ![Snipaste_2024-11-06_00-10-54](https://github.com/user-attachments/assets/e9f77ad7-429b-4e86-b9d9-fa94423e9a3f)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#6510