Skip to content

🚨 Bug: Dify Self-Hosted install page returns 404 on /console/api/setup (HTTPS enabled) #20842

Description

@50ethan

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

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Self Checks

  • I have searched existing issues
  • I am reporting a bug, not asking a question
  • I am using English

Dify version

1.4.1 (Self-hosted via Docker)

Deployment type

Self-hosted VPS (ConoHa)


Problem description

After successfully setting up SSL (HTTPS) and accessing https://sora-chat.shop/install, the UI loads but the API call to:
GET https://sora-chat.shop/console/api/setup

returns 404 Not Found, and browser shows:

SyntaxError: Unexpected token '<', "<!doctype "... is not valid JSON

This causes the install screen to freeze.


What I tried

  • Confirmed that API container is running and accessible on http://api:5001
  • NEXT_PUBLIC_API_PREFIX=https://sora-chat.shop/api is correctly passed to the web container
  • All volumes and environment variables are aligned per official instructions
  • docker-compose.yml, default.conf, and .env are configured as per https guide

Screenshot

Install page error ← GitHubに画像アップ後、リンク差し替えてください


Logs

  • docker compose logs api shows API is booting successfully
  • docker compose logs nginx shows Nginx is routing

Request

Please clarify:

  • Should the frontend be calling /console/api/setup?
  • If yes, how should default.conf be configured to route this properly?

Thank you!

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions