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

Upload knowledge base error, error information:Meta endpoint! Unexpected status code: 502, with response body: None. #12971

Open
5 tasks done
wgq910668 opened this issue Jan 23, 2025 · 2 comments
Labels
🐞 bug Something isn't working

Comments

@wgq910668
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.15.2

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

Uploading knowledge base error, select high quality upload. Error. Error message:Meta endpoint! Unexpected status code: 502, with response body: None.

Image

Deployment method: local source code deployment. Front-end and back-end are deployed. Other components are deployed by docker. Including weaviate and worker logs.

Worker log information:

Image

docker ps:

Image

docker logs :

Image

✔️ Expected Behavior

Upload Successfully

❌ Actual Behavior

No response

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

dosubot bot commented Jan 23, 2025

A similar issue was reported and resolved in a closed thread. The error "Meta endpoint! Unexpected status code: 502, with response body: None" in a self-hosted Dify setup using Docker is likely related to an issue with the Nginx configuration forwarding the service to the wrong location. Here are the steps you can take to resolve this issue:

  1. Check Running Containers: Ensure that your containers are running and note their IP addresses by executing:

    docker ps -q | xargs -n 1 docker inspect --format '{{ .Name }}: {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}'
  2. Update Nginx Configuration:

    • Open the Nginx configuration file located at dify/docker/nginx/conf.d.
    • Replace http://api:5001 with http://<your-api-ip>:5001.
    • Replace http://web:3000 with http://<your-web-ip>:3000.
  3. Restart Nginx: After updating the configuration, restart the Nginx container or reload the configuration to apply the changes.

These steps should help in resolving the 502 error by ensuring that the requests are correctly routed to the appropriate service endpoints [1].

To continue talking to Dosu, mention @dosu.


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

@crazywoola
Copy link
Member

might related to this #12960 as well.

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

2 participants