设置管理员页面无法打开 #5477

Closed
opened 2026-02-21 18:11:09 -05:00 by yindo · 2 comments
Owner

Originally created by @Nand-Lu on GitHub (Sep 9, 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

lattest

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

设置管理员界面无法打开

GET /console/api/setup 404

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @Nand-Lu on GitHub (Sep 9, 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 lattest ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce 设置管理员界面无法打开 GET /console/api/setup 404 ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 18:11:09 -05:00
yindo closed this issue 2026-02-21 18:11:09 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Sep 9, 2024):

@Nand-Lu Hello there! I'm here to help you with any bugs, questions, or contributions while you wait for a human maintainer. I'm a bot named Dosu, and I'm at your service.

I found some similar issues and discussions that might help:

  1. 部署后,在install界面卡住 - This discussion is still open and might have relevant information.
  2. Interface error 500 after startup - Another open discussion that could provide insights.
  3. The website cannot be accessed using caddy reverse - This discussion is also open and might be related to your issue.

For your specific issue, the admin setup page should be accessed via http://localhost/setup, not /console/api/setup. Ensure you are using the correct URL to access the setup page [1].

Additionally, the route for the setup process is defined in the api/controllers/console/setup.py file as:

api.add_resource(SetupApi, "/setup")

[2]

Make sure your nginx.conf is correctly routing requests to the web service. The configuration should look something like this:

server {
    listen 80;
    server_name _;

    location / {
      proxy_pass http://web:3000;
      include proxy.conf;
    }

    # Other location blocks and configurations
}

[3][4]

If you encounter a 404 error, check the logs for messages like "Not Found - The specified user does not exist" to diagnose the issue further [5].

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Sep 9, 2024): <!-- Greeting --> @Nand-Lu Hello there! I'm here to help you with any bugs, questions, or contributions while you wait for a human maintainer. I'm a bot named [Dosu](https://dosu.dev), and I'm at your service. <!-- Answer --> I found some similar issues and discussions that might help: 1. [部署后,在install界面卡住](https://github.com/langgenius/dify/discussions/4102) - This discussion is still open and might have relevant information. 2. [Interface error 500 after startup](https://github.com/langgenius/dify/discussions/7252) - Another open discussion that could provide insights. 3. [The website cannot be accessed using caddy reverse](https://github.com/langgenius/dify/discussions/4104) - This discussion is also open and might be related to your issue. For your specific issue, the admin setup page should be accessed via [http://localhost/setup](http://localhost/setup), not `/console/api/setup`. Ensure you are using the correct URL to access the setup page <sup>[[1]](https://github.com/langgenius/dify-docs/blob/main/en/getting-started/install-self-hosted/docker-compose.md)</sup>. Additionally, the route for the setup process is defined in the `api/controllers/console/setup.py` file as: ```python api.add_resource(SetupApi, "/setup") ``` <sup>[[2]](https://github.com/langgenius/dify/blob/main/api/controllers/console/setup.py)</sup> Make sure your `nginx.conf` is correctly routing requests to the web service. The configuration should look something like this: ```nginx server { listen 80; server_name _; location / { proxy_pass http://web:3000; include proxy.conf; } # Other location blocks and configurations } ``` <sup>[[3]](https://github.com/langgenius/dify/blob/main/docker/nginx/conf.d/default.conf.template)</sup><sup>[[4]](https://github.com/langgenius/dify/blob/main/docker-legacy/nginx/conf.d/default.conf)</sup> If you encounter a 404 error, check the logs for messages like "Not Found - The specified user does not exist" to diagnose the issue further <sup>[[5]](https://github.com/langgenius/dify/blob/main/api/constants/recommended_apps.json)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

@crazywoola commented on GitHub (Sep 9, 2024):

#1542

@crazywoola commented on GitHub (Sep 9, 2024): #1542
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#5477