PluginDaemonBadRequestError: file size exceeds the maximum limit #163

Closed
opened 2026-02-16 00:20:14 -05:00 by yindo · 4 comments
Owner

Originally created by @MrXionGe on GitHub (Jul 17, 2025).

Self Checks

To make sure we get to you in time, please check the following :)

  • 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."

Versions

  1. dify-plugin-daemon dify-plugin-daemon:0.1.3-local
  2. dify-api dify-api:1.6.0

Describe the bug
When installing a plugin from a local file, if the file is larger than 50MB, it will prompt "PluginDaemonBadRequestError: file size exceeds the maximum limit".
But I can't find the relevant parameters in ".env".

To Reproduce
Steps to reproduce the behavior:

  1. Enter the "Plugins" page
  2. Click "Install Plugin"
  3. Click "Local Plugin"
  4. Select the file "*.difypkg" (file larger than 50MB)
  5. Upload the file
  6. Error message

Screenshots

Image Image Image
Originally created by @MrXionGe on GitHub (Jul 17, 2025). **Self Checks** To make sure we get to you in time, please check the following :) - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify-plugin-daemon/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." **Versions** 1. dify-plugin-daemon dify-plugin-daemon:0.1.3-local 2. dify-api dify-api:1.6.0 **Describe the bug** When installing a plugin from a local file, if the file is larger than 50MB, it will prompt "PluginDaemonBadRequestError: file size exceeds the maximum limit". But I can't find the relevant parameters in ".env". **To Reproduce** Steps to reproduce the behavior: 1. Enter the "Plugins" page 2. Click "Install Plugin" 3. Click "Local Plugin" 4. Select the file "*.difypkg" (file larger than 50MB) 5. Upload the file 6. Error message **Screenshots** <img width="2559" height="1348" alt="Image" src="https://github.com/user-attachments/assets/780ed6d8-60de-43da-873c-344e3057c1e4" /> <img width="2559" height="1348" alt="Image" src="https://github.com/user-attachments/assets/28b685dd-1164-423b-9056-fede962cae2b" /> <img width="2559" height="1348" alt="Image" src="https://github.com/user-attachments/assets/0c7d430e-6c01-4bd0-ac1a-e16166bde30d" />
yindo closed this issue 2026-02-16 00:20:14 -05:00
Author
Owner

@MrXionGe commented on GitHub (Jul 17, 2025):

In ".env", I configured "UPLOAD_FILE_SIZE_LIMIT=100".
It seems that this configuration is only related to the knowledge base and Agent.

@MrXionGe commented on GitHub (Jul 17, 2025): In ".env", I configured "UPLOAD_FILE_SIZE_LIMIT=100". It seems that this configuration is only related to the knowledge base and Agent.
Author
Owner

@MrXionGe commented on GitHub (Jul 17, 2025):

I just need a method that allows for larger plugin files to be uploaded.
Thanks for your reply and help.

@MrXionGe commented on GitHub (Jul 17, 2025): I just need a method that allows for larger plugin files to be uploaded. Thanks for your reply and help.
Author
Owner

@xiaomeixw commented on GitHub (Jul 17, 2025):

FORCE_VERIFYING_SIGNATURE=false
PLUGIN_MAX_PACKAGE_SIZE=524288000
NGINX_CLIENT_MAX_BODY_SIZE=500M

@xiaomeixw commented on GitHub (Jul 17, 2025): FORCE_VERIFYING_SIGNATURE=false PLUGIN_MAX_PACKAGE_SIZE=524288000 NGINX_CLIENT_MAX_BODY_SIZE=500M
Author
Owner

@MrXionGe commented on GitHub (Jul 17, 2025):

@xiaomeixw

Thank you.
Change the value of PLUGIN_MAX_PACKAGE_SIZE. It has been solved.

@MrXionGe commented on GitHub (Jul 17, 2025): @xiaomeixw Thank you. Change the value of PLUGIN_MAX_PACKAGE_SIZE. It has been solved.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#163