Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The "Create from Blank" page cannot load static files #12912

Closed
5 tasks done
burstlink opened this issue Jan 21, 2025 · 3 comments
Closed
5 tasks done

The "Create from Blank" page cannot load static files #12912

burstlink opened this issue Jan 21, 2025 · 3 comments
Labels
🐞 bug Something isn't working
Milestone

Comments

@burstlink
Copy link

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.0.0-beta.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  • Open the webpage /apps, click the button Create from Blank.
  • Static file loading failed after the pop-up window opened.

✔️ Expected Behavior

The page displays normally

❌ Actual Behavior

The page cannot load static files.
image-20250121170850426

The reason is that the light static files are missing. It is normal after copying the files.

Image

image-20250121180603983

@dosubot dosubot bot added the 🐞 bug Something isn't working label Jan 21, 2025
Copy link

dosubot bot commented Jan 21, 2025

Hey @burstlink! I'm here to help you with bugs, questions, and becoming a contributor. Let's tackle this issue together while we wait for a human maintainer.

The issue you're experiencing with the "Create from Blank" page not loading static files seems to be related to missing 'light' static files. Since copying the files resolved the issue, it indicates that the necessary static files were not initially present in the expected directory.

To ensure that the static files are correctly loaded in your self-hosted Dify setup using Docker, you should verify the following:

  1. Directory Structure: Ensure that the static files are located in the correct directory on your host machine. According to the Docker setup, static files should be in the ./volumes/app/storage directory, which is mounted to the /app/api/storage directory inside the container [1].

  2. Docker Configuration: Check your Docker configuration to ensure that the volume mounts are correctly set up to include the directory where your static files are stored.

  3. File Copying: If the files are missing, manually copy the required 'light' static files into the appropriate directory within the Docker container, as you did with the docker cp command.

By ensuring these configurations, you should be able to resolve the static file loading issue on the "Create from Blank" page.

To continue talking to Dosu, mention @dosu.


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

@burstlink burstlink changed the title The "Create from Blank" page cannot load static files, The "Create from Blank" page cannot load static files Jan 21, 2025
@burstlink
Copy link
Author

  • Before copying
    Image

  • After copying
    Image

@crazywoola crazywoola added this to the 1.0 milestone Jan 21, 2025
@hjlarry
Copy link
Contributor

hjlarry commented Jan 22, 2025

It was already fixed in this PR #12589

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants