deployed in a local Docker environment, but encountered a 404 error when accessing http://localhost/install #8231

Closed
opened 2026-02-21 18:24:36 -05:00 by yindo · 1 comment
Owner

Originally created by @zhenPolaris on GitHub (Feb 13, 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

0.15.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image

Image

I followed the official documentation exactly without including any additional steps.

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @zhenPolaris on GitHub (Feb 13, 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 0.15.3 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce ![Image](https://github.com/user-attachments/assets/4a925a6f-9bf2-4db9-b0f2-6924cc3e10db) ![Image](https://github.com/user-attachments/assets/0ba3cf0c-e3f7-415b-8d8f-a6809fceab3e) I followed the official documentation exactly without including any additional steps. ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🤔 cant-reproduce label 2026-02-21 18:24:36 -05:00
yindo closed this issue 2026-02-21 18:24:36 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Feb 13, 2025):

Hey there, @zhenPolaris! 👋 I'm here to help you with bug fixing, answering questions, and becoming a contributor. Let's squash those bugs together!

I found some similar threads related to 404 errors when accessing http://localhost/install in a Docker environment for Dify:

  1. After "docker compose up -d", Open URL http://localhost/install,i got an ERROR: http://localhost/console/api/setup 504 not found. - This discussion is unsolved and might provide some insights into similar issues [1].

  2. Unable to open http://localhost/install - Another unsolved discussion that might have relevant information [2].

  3. Help Problem starting the project - This is also an unsolved discussion that could be related [3].

For troubleshooting, consider the following steps:

  • Ensure all Docker containers are running smoothly by executing docker compose ps and checking logs for any errors with docker logs <container_name>.
  • Verify that the Nginx reverse proxy is correctly configured and running, as it handles routing for the application.
  • Check the environment variables in your .env file to ensure they are correctly set, especially those related to server configuration and URLs.
  • Review the Nginx configuration files to ensure they are correctly set up to route requests to the appropriate services.
  • Restart the Docker containers using:
    docker compose down
    docker compose up -d
    
  • Check for any CORS errors and update relevant URLs in docker-compose.yml if necessary [4].

These steps should help you identify and resolve the 404 error when accessing http://localhost/install.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other | Bug Report

@dosubot[bot] commented on GitHub (Feb 13, 2025): <!-- Greeting --> Hey there, @zhenPolaris! 👋 I'm here to help you with bug fixing, answering questions, and becoming a contributor. Let's squash those bugs together! <!-- Answer --> I found some similar threads related to 404 errors when accessing `http://localhost/install` in a Docker environment for Dify: 1. [After "docker compose up -d", Open URL http://localhost/install,i got an ERROR: http://localhost/console/api/setup 504 not found.](https://github.com/langgenius/dify/discussions/10212) - This discussion is unsolved and might provide some insights into similar issues <sup>[[1]](https://github.com/langgenius/dify/discussions/10212)</sup>. 2. [Unable to open http://localhost/install](https://github.com/langgenius/dify/discussions/10165) - Another unsolved discussion that might have relevant information <sup>[[2]](https://github.com/langgenius/dify/discussions/10165)</sup>. 3. [Help Problem starting the project](https://github.com/langgenius/dify/discussions/9751) - This is also an unsolved discussion that could be related <sup>[[3]](https://github.com/langgenius/dify/discussions/9751)</sup>. For troubleshooting, consider the following steps: - Ensure all Docker containers are running smoothly by executing `docker compose ps` and checking logs for any errors with `docker logs <container_name>`. - Verify that the Nginx reverse proxy is correctly configured and running, as it handles routing for the application. - Check the environment variables in your `.env` file to ensure they are correctly set, especially those related to server configuration and URLs. - Review the Nginx configuration files to ensure they are correctly set up to route requests to the appropriate services. - Restart the Docker containers using: ```bash docker compose down docker compose up -d ``` - Check for any CORS errors and update relevant URLs in `docker-compose.yml` if necessary <sup>[[4]](https://github.com/langgenius/dify/issues/5769)</sup>. These steps should help you identify and resolve the 404 error when accessing `http://localhost/install`. <!-- 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/86bc5fe9-04cb-4cf9-967b-35c4b09989c4?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/86bc5fe9-04cb-4cf9-967b-35c4b09989c4?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/86bc5fe9-04cb-4cf9-967b-35c4b09989c4?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/86bc5fe9-04cb-4cf9-967b-35c4b09989c4?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/86bc5fe9-04cb-4cf9-967b-35c4b09989c4?feedback_type=hallucination) | [Other](https://app.dosu.dev/response-feedback/86bc5fe9-04cb-4cf9-967b-35c4b09989c4?feedback_type=other) | [Bug Report](https://app.dosu.dev/response-feedback/86bc5fe9-04cb-4cf9-967b-35c4b09989c4?feedback_type=bug_report)</sup>
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#8231