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

SSL error without proxy on self hosted dify #11963

Closed
5 tasks done
lbbc1117 opened this issue Dec 22, 2024 · 4 comments
Closed
5 tasks done

SSL error without proxy on self hosted dify #11963

lbbc1117 opened this issue Dec 22, 2024 · 4 comments
Labels
🐞 bug Something isn't working 🤔 cant-reproduce We can not reproduce it or the information is limited

Comments

@lbbc1117
Copy link

lbbc1117 commented Dec 22, 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

0.14.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

With proxy on the host machine:

image
image


Without proxy on the host machine:

image
image

✔️ Expected Behavior

network be ok

❌ Actual Behavior

its blocking EVERY request

@dosubot dosubot bot added 🐞 bug Something isn't working 🤔 cant-reproduce We can not reproduce it or the information is limited labels Dec 22, 2024
Copy link

dosubot bot commented Dec 22, 2024

Hey @lbbc1117! I'm here to help you with any bugs, questions, or contributions you have for Dify. Let's work together to solve your issue!

The SSL error you're encountering in a self-hosted Dify setup without a proxy might be related to the default SSL settings in the Docker environment. By default, HTTPS is disabled in Dify's Docker setup, which could lead to SSL handshake issues if not configured properly.

To address this, you can check and modify the following settings in your Docker environment:

  1. Enable HTTPS: Ensure that NGINX_HTTPS_ENABLED is set to true in your Docker environment configuration. This will enable HTTPS and allow SSL connections.

  2. SSL Certificates: Verify that the SSL certificate and key files (dify.crt and dify.key) are correctly configured and accessible by the Docker container. These files should be placed in the appropriate directory and referenced correctly in your configuration.

  3. SSL Protocols: Ensure that the SSL protocols are correctly set. The default protocols are TLSv1.1, TLSv1.2, and TLSv1.3. You might want to adjust these if your environment requires different protocols.

  4. Network Configuration: Double-check your network settings to ensure there are no firewall rules or network policies blocking SSL traffic.

These steps should help resolve the SSL errors you're experiencing. If the issue persists, consider checking the Docker logs for more detailed error messages that might provide further insights into the problem.

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

Fixed in #11906
Duplicated #11839
Duplicated #11739

@lbbc1117
Copy link
Author

lbbc1117 commented Dec 27, 2024

Fixed in #11906 Duplicated #11839 Duplicated #11739

THX for reply

But reverting HTTP proxy settings as mentioned in #11906 and re-running docker compose NOT solving this issue

@lbbc1117
Copy link
Author

It looks like a SSL issue, not proxy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working 🤔 cant-reproduce We can not reproduce it or the information is limited
Projects
None yet
Development

No branches or pull requests

2 participants