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

Creating an app from a Template causes a 404 error [SELF_HOSTED]. #11082

Closed
5 tasks done
oakhtar147 opened this issue Nov 25, 2024 · 4 comments · Fixed by #11091
Closed
5 tasks done

Creating an app from a Template causes a 404 error [SELF_HOSTED]. #11082

oakhtar147 opened this issue Nov 25, 2024 · 4 comments · Fixed by #11091
Assignees
Labels
🐞 bug Something isn't working

Comments

@oakhtar147
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

0.12.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Went through the docs from here https://docs.dify.ai/getting-started/install-self-hosted/docker-compose

Did nothing by myself that could change the deployment.

I have not altered anything e.g. the .env file.

✔️ Expected Behavior

Creating an app from a template should work.

❌ Actual Behavior

Creating an app from a template fails due a 404 error.

http://<server-ip>/console/api/apps/import not found (404).

@dosubot dosubot bot added the 🐞 bug Something isn't working label Nov 25, 2024
Copy link

dosubot bot commented Nov 25, 2024

Hey @oakhtar147! I'm here to help you with any bugs, questions, or contributions you have for the Dify app. Let's get to the bottom of this 404 error together.

I found a similar open issue regarding a "404 Not Found" error on a self-hosted Dify instance. The suggested solution involves several steps to ensure that all necessary services are running and properly configured. Here are the key steps you can follow:

  1. Ensure All Containers Are Running:
    Check that all required Docker containers are up and running using:

    docker compose ps

    Look for services like api, worker, web, weaviate, db, redis, and nginx.

  2. Check the Nginx Configuration:
    Verify that the Nginx container is correctly configured and running:

    docker compose ps | grep nginx
  3. Access the Correct URL:
    Make sure you are using the correct URL format. For a local setup, it should be:

    http://localhost
    
  4. Update and Restart Dify:
    Update and restart your Dify instance:

    cd dify/docker
    git pull origin main
    docker compose down
    docker compose pull
    docker compose up -d
  5. Check Logs for Errors:
    Inspect the logs of the Nginx and other relevant containers for any errors:

    docker logs docker-nginx-1
    docker logs docker-web-1
    docker logs docker-api-1
  6. Verify Environment Variables:
    Ensure all necessary environment variables are correctly set in your docker-compose.yaml file. For example:

    CONSOLE_WEB_URL: ${CONSOLE_WEB_URL}
    CONSOLE_API_URL: ${CONSOLE_API_URL}
    SERVICE_API_URL: ${SERVICE_API_URL}
    APP_WEB_URL: ${APP_WEB_URL}

By following these steps, you should be able to identify and resolve the "404 Not Found" error when creating an app from a template [1].

To continue talking to Dosu, mention @dosu.

@poemDead
Copy link

I got the same issue in the Cloud version too.
image

@minghe36
Copy link

I got the same issue in the Cloud version too.

@oakhtar147
Copy link
Author

wow thanks for the quick turnaround :D

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

Successfully merging a pull request may close this issue.

4 participants