Gemini's setup can't finish #128

Closed
opened 2026-02-16 10:18:10 -05:00 by yindo · 4 comments
Owner

Originally created by @Sanuki-073 on GitHub (Mar 27, 2025).

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

Cloud or Self Hosted

Cloud

Steps to reproduce

Set up gemini in model provider

✔️ Expected Behavior

Finish the setup.

Actual Behavior

Set up is not completed by 504 Error.

Originally created by @Sanuki-073 on GitHub (Mar 27, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.1.3 ### Cloud or Self Hosted Cloud ### Steps to reproduce Set up gemini in model provider ### ✔️ Expected Behavior Finish the setup. ### ❌ Actual Behavior Set up is not completed by 504 Error.
yindo closed this issue 2026-02-16 10:18:10 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Mar 27, 2025):

I found a similar open issue related to a 504 Gateway error during plugin authorization. The suggested solutions include:

  1. Check Network Connectivity: Ensure there are no network issues between your setup and the endpoint. Verify that the endpoint is accessible and not blocked by any firewall or network restrictions.

  2. Server Load and Timeout Settings: Check if the server handling the request is under heavy load and consider increasing the timeout settings. For Dify's cloud setup, it's recommended to set the GUNICORN_TIMEOUT to 360 seconds to support longer connection times [1][2].

  3. Configuration Review: Double-check the configuration settings for Gemini in the model provider to ensure they are correct.

  4. Logs and Monitoring: Review the logs for any errors or warnings that might provide more insight into the issue. Utilize monitoring tools like Opik and Langfuse to observe the behavior of your setup and identify potential issues [3][4].

These steps might help resolve the 504 error you're encountering during the Gemini setup.

To continue talking to Dosu, mention @dosu.


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

@dosubot[bot] commented on GitHub (Mar 27, 2025): <!-- Answer --> I found a similar open issue related to a 504 Gateway error during plugin authorization. The suggested solutions include: 1. **Check Network Connectivity**: Ensure there are no network issues between your setup and the endpoint. Verify that the endpoint is accessible and not blocked by any firewall or network restrictions. 2. **Server Load and Timeout Settings**: Check if the server handling the request is under heavy load and consider increasing the timeout settings. For Dify's cloud setup, it's recommended to set the `GUNICORN_TIMEOUT` to 360 seconds to support longer connection times <sup>[[1]](https://github.com/langgenius/dify/issues/16769)</sup><sup>[[2]](https://github.com/langgenius/dify-docs/blob/main/en/getting-started/install-self-hosted/environments.md)</sup>. 3. **Configuration Review**: Double-check the configuration settings for Gemini in the model provider to ensure they are correct. 4. **Logs and Monitoring**: Review the logs for any errors or warnings that might provide more insight into the issue. Utilize monitoring tools like Opik and Langfuse to observe the behavior of your setup and identify potential issues <sup>[[3]](https://github.com/langgenius/dify-docs/blob/main/en/guides/monitoring/integrate-external-ops-tools/integrate-opik.md)</sup><sup>[[4]](https://github.com/langgenius/dify-docs/blob/main/en/guides/monitoring/integrate-external-ops-tools/integrate-langfuse.md)</sup>. These steps might help resolve the 504 error you're encountering during the Gemini setup. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/4c7ecac4-44e2-4cd1-8134-795c6f60211b?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/4c7ecac4-44e2-4cd1-8134-795c6f60211b?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/4c7ecac4-44e2-4cd1-8134-795c6f60211b?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/4c7ecac4-44e2-4cd1-8134-795c6f60211b?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/4c7ecac4-44e2-4cd1-8134-795c6f60211b?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/4c7ecac4-44e2-4cd1-8134-795c6f60211b?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/4c7ecac4-44e2-4cd1-8134-795c6f60211b?feedback_type=other)</sup>
Author
Owner

@crazywoola commented on GitHub (Mar 27, 2025):

Please downgrade the plugin version to 0.0.7.

The problem is introduced in the latest version 0.0.8.

Image

Our cloud env use lambda to deploy plugins, which doesn't have the permission to write files.

@crazywoola commented on GitHub (Mar 27, 2025): Please downgrade the plugin version to `0.0.7`. The problem is introduced in the latest version `0.0.8`. ![Image](https://github.com/user-attachments/assets/6db1a9d1-0a7e-4294-bd9e-8f7f37c06264) Our cloud env use lambda to deploy plugins, which doesn't have the permission to write files.
Author
Owner

@Sanuki-073 commented on GitHub (Mar 27, 2025):

@crazywoola
Thank you for your response!
However, downgrading did not help resolve the issue.
Ultimately, I was able to solve it by building the gemini from the official package myself and uploading the file to cloud from my local environment.

@Sanuki-073 commented on GitHub (Mar 27, 2025): @crazywoola Thank you for your response! However, downgrading did not help resolve the issue. Ultimately, I was able to solve it by building the gemini from the official package myself and uploading the file to cloud from my local environment.
Author
Owner

@shoppingjaws commented on GitHub (Mar 27, 2025):

Okay, I will try to debug in this weekend #556

@shoppingjaws commented on GitHub (Mar 27, 2025): Okay, I will try to debug in this weekend #556
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#128