Nano Banana pro cannot generate 4k images, Request to Plugin Daemon Service failed-500 #218

Open
opened 2026-02-16 00:20:31 -05:00 by yindo · 5 comments
Owner

Originally created by @Valentino-L on GitHub (Dec 10, 2025).

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • 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, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.10.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image

Choose 4k option here

✔️ Expected Behavior

Successfully generate 4k images

Actual Behavior

Image

Always times out, dify is unable to output any images. Gives "Request to Plugin Daemon Service failed-500" error

Originally created by @Valentino-L on GitHub (Dec 10, 2025). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [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, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.10.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce <img width="764" height="840" alt="Image" src="https://github.com/user-attachments/assets/5fcfcead-ac37-4b72-b6d7-c9e4423a6c70" /> Choose 4k option here ### ✔️ Expected Behavior Successfully generate 4k images ### ❌ Actual Behavior <img width="736" height="1344" alt="Image" src="https://github.com/user-attachments/assets/2fabdd65-6a87-4de2-9c07-a50e21576484" /> Always times out, dify is unable to output any images. Gives "Request to Plugin Daemon Service failed-500" error
yindo added the plugin-daemonbug labels 2026-02-16 00:20:31 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Dec 10, 2025):

Hi @Valentino-L! I'm Dosu and I’m helping the dify team.

4K image generation with Nano Banana Pro is not officially supported in Dify v1.10.0—only High and Low resolutions are stable. Selecting 4K currently has no effect and can cause issues, as confirmed by maintainers; 4K support is under development and not yet available in the release you’re using (source).

The “Request to Plugin Daemon Service failed-500” error with a ~300s timeout happens because the Plugin Daemon Service times out on long-running tasks like large image generation. This is controlled by the PLUGIN_DAEMON_TIMEOUT (default 300s) and related environment variables (source). There are no explicit per-model or per-resolution limits—timeouts and resource exhaustion are the main causes (source).

If you want to experiment with longer tasks, increase these environment variables in your .env or docker-compose.yaml and restart your Docker stack:

  • PLUGIN_DAEMON_TIMEOUT=1200
  • PLUGIN_MAX_EXECUTION_TIMEOUT=1200
  • WORKFLOW_MAX_EXECUTION_TIME=1800
  • HTTP_REQUEST_MAX_READ_TIMEOUT=1200
  • GUNICORN_TIMEOUT=600
  • NGINX_PROXY_READ_TIMEOUT=3600s
  • NGINX_PROXY_SEND_TIMEOUT=3600s

Make sure your Docker host has enough CPU, RAM, and (if needed) GPU resources—Dify does not set explicit resource limits, so you must manage these externally (source). Also, check Docker networking, service health, and Redis connectivity to rule out misconfiguration (source).

Until official 4K support lands, use High resolution for Nano Banana Pro. If you need 4K output immediately, consider alternative plugins (like Regolo.ai) or models with better streaming support (source). If you want help interpreting release notes or config changes when 4K support is released, let me know!

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

Chat with Dosu Open in Cursor Join Discord Share on X

@dosubot[bot] commented on GitHub (Dec 10, 2025): <!-- Greeting --> Hi @Valentino-L! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the dify team. <!-- Answer --> 4K image generation with Nano Banana Pro is not officially supported in Dify v1.10.0—only High and Low resolutions are stable. Selecting 4K currently has no effect and can cause issues, as confirmed by maintainers; 4K support is under development and not yet available in the release you’re using ([source](https://github.com/langgenius/dify/issues/29020#issuecomment-3607006934)). The “Request to Plugin Daemon Service failed-500” error with a ~300s timeout happens because the Plugin Daemon Service times out on long-running tasks like large image generation. This is controlled by the `PLUGIN_DAEMON_TIMEOUT` (default 300s) and related environment variables ([source](https://github.com/langgenius/dify/blob/acdbcdb6f82b2ed2d48d5dd20cbfd745375588a6/api/configs/feature/__init__.py#L72-L454)). There are no explicit per-model or per-resolution limits—timeouts and resource exhaustion are the main causes ([source](https://github.com/langgenius/dify/blob/acdbcdb6f82b2ed2d48d5dd20cbfd745375588a6/api/core/plugin/impl/base.py#L39-L337)). If you want to experiment with longer tasks, increase these environment variables in your `.env` or `docker-compose.yaml` and restart your Docker stack: - `PLUGIN_DAEMON_TIMEOUT=1200` - `PLUGIN_MAX_EXECUTION_TIMEOUT=1200` - `WORKFLOW_MAX_EXECUTION_TIME=1800` - `HTTP_REQUEST_MAX_READ_TIMEOUT=1200` - `GUNICORN_TIMEOUT=600` - `NGINX_PROXY_READ_TIMEOUT=3600s` - `NGINX_PROXY_SEND_TIMEOUT=3600s` Make sure your Docker host has enough CPU, RAM, and (if needed) GPU resources—Dify does not set explicit resource limits, so you must manage these externally ([source](https://github.com/langgenius/dify/blob/acdbcdb6f82b2ed2d48d5dd20cbfd745375588a6/docker/.env.example#L140-L1340)). Also, check Docker networking, service health, and Redis connectivity to rule out misconfiguration ([source](https://github.com/langgenius/dify/issues/27659)). Until official 4K support lands, use High resolution for Nano Banana Pro. If you need 4K output immediately, consider alternative plugins (like Regolo.ai) or models with better streaming support ([source](https://github.com/langgenius/dify/issues/28795#issuecomment-3585511286)). If you want help interpreting release notes or config changes when 4K support is released, let me know! <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/c23a157b-9d9c-49e4-8d0f-c767ac49128c?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/c23a157b-9d9c-49e4-8d0f-c767ac49128c?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/c23a157b-9d9c-49e4-8d0f-c767ac49128c?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/c23a157b-9d9c-49e4-8d0f-c767ac49128c?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/c23a157b-9d9c-49e4-8d0f-c767ac49128c?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/c23a157b-9d9c-49e4-8d0f-c767ac49128c?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/c23a157b-9d9c-49e4-8d0f-c767ac49128c?feedback_type=other)</sup> [![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/6088a4f4-073a-43f3-b3d4-4f06fb0c05a0/ask?utm_source=github)&nbsp;[![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=4K%20image%20generation%20with%20Nano%20Banana%20Pro%20is%20not%20officially%20supported%20in%20Dify%20v1.10.0%E2%80%94only%20High%20and%20Low%20resolutions%20are%20stable.%20Selecting%204K%20currently%20has%20no%20effect%20and%20can%20cause%20issues%2C%20as%20confirmed%20by%20maintainers%3B%204K%20support%20is%20under%20development%20and%20not%20yet%20available%20in%20the%20release%20you%E2%80%99re%20using%20%28%5Bsource%5D%28https%3A//github.com/langgenius/dify/issues/29020%23issuecomment-3607006934%29%29.%0A%0AThe%20%E2%80%9CRequest%20to%20Plugin%20Daemon%20Service%20failed-500%E2%80%9D%20error%20with%20a%20~300s%20timeout%20happens%20because%20the%20Plugin%20Daemon%20Service%20times%20out%20on%20long-running%20tasks%20like%20large%20image%20generation.%20This%20is%20controlled%20by%20the%20%60PLUGIN_DAEMON_TIMEOUT%60%20%28default%20300s%29%20and%20related%20environment%20variables%20%28%5Bsource%5D%28https%3A//github.com/langgenius/dify/blob/acdbcdb6f82b2ed2d48d5dd20cbfd745375588a6/api/configs/feature/__init__.py%23L72-L454%29%29.%20There%20are%20no%20explicit%20per-model%20or%20per-resolution%20limits%E2%80%94timeouts%20and%20resource%20exhaustion%20are%20the%20main%20causes%20%28%5Bsource%5D%28https%3A//github.com/langgenius/dify/blob/acdbcdb6f82b2ed2d48d5dd20cbfd745375588a6/api/core/plugin/impl/base.py%23L39-L337%29%29.%0A%0AIf%20you%20want%20to%20experiment%20with%20longer%20tasks%2C%20increase%20these%20environment%20variables%20in%20your%20%60.env%60%20or%20%60docker-compose.yaml%60%20and%20restart%20your%20Docker%20stack%3A%0A%0A-%20%60PLUGIN_DAEMON_TIMEOUT%3D1200%60%0A-%20%60PLUGIN_MAX_EXECUTION_TIMEOUT%3D1200%60%0A-%20%60WORKFLOW_MAX_EXECUTION_TIME%3D1800%60%0A-%20%60HTTP_REQUEST_MAX_READ_TIMEOUT%3D1200%60%0A-%20%60GUNICORN_TIMEOUT%3D600%60%0A-%20%60NGINX_PROXY_READ_TIMEOUT%3D3600s%60%0A-%20%60NGINX_PROXY_SEND_TIMEOUT%3D3600s%60%0A%0AMake%20sure%20your%20Docker%20host%20has%20enough%20CPU%2C%20RAM%2C%20and%20%28if%20needed%29%20GPU%20resources%E2%80%94Dify%20does%20not%20set%20explicit%20resource%20limits%2C%20so%20you%20must%20manage%20these%20externally%20%28%5Bsource%5D%28https%3A//github.com/langgenius/dify/blob/acdbcdb6f82b2ed2d48d5dd20cbfd745375588a6/docker/.env.example%23L140-L1340%29%29.%20Also%2C%20check%20Docker%20networking%2C%20service%20health%2C%20and%20Redis%20connectivity%20to%20rule%20out%20misconfiguration%20%28%5Bsource%5D%28https%3A//github.com/langgenius/dify/issues/27659%29%29.%0A%0AUntil%20official%204K%20support%20lands%2C%20use%20High%20resolution%20for%20Nano%20Banana%20Pro.%20If%20you%20need%204K%20output%20immediately%2C%20consider%20alternative%20plugins%20%28like%20Regolo.ai%29%20or%20models%20with%20better%20streaming%20support%20%28%5Bsource%5D%28https%3A//github.com/langgenius/dify/issues/28795%23issuecomment-3585511286%29%29.%20If%20you%20want%20help%20interpreting%20release%20notes%20or%20config%20changes%20when%204K%20support%20is%20released%2C%20let%20me%20know%21)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify/issues/29452)
Author
Owner

@crazywoola commented on GitHub (Dec 10, 2025):

Issues related to the plugins should not be posted in this repo.

@crazywoola commented on GitHub (Dec 10, 2025): Issues related to the plugins should not be posted in this repo.
Author
Owner

@Valentino-L commented on GitHub (Dec 10, 2025):

Issues related to the plugins should not be posted in this repo.

This is not a plugin, it's a problem with the official dify LLM node and Gemini is the model provider

@Valentino-L commented on GitHub (Dec 10, 2025): > Issues related to the plugins should not be posted in this repo. This is not a plugin, it's a problem with the official dify LLM node and Gemini is the model provider
Author
Owner

@crazywoola commented on GitHub (Dec 10, 2025):

It seems to be a problem with this repo, please attached the logs as well.

@crazywoola commented on GitHub (Dec 10, 2025): It seems to be a problem with this repo, please attached the logs as well.
Author
Owner

@dosubot[bot] commented on GitHub (Dec 10, 2025):

The 500 error and timeout when generating 4K images with Nano Banana Pro are most likely caused by the plugin daemon's execution timeout or resource exhaustion in your Docker environment. For resource-intensive tasks like 4K image generation, you should increase the PLUGIN_MAX_EXECUTION_TIMEOUT (default is 600 seconds) and GUNICORN_TIMEOUT (default is 200 seconds) environment variables in your Docker Compose or deployment configuration. This gives the plugin more time to complete before being killed by the daemon. Also, review and raise your container's CPU, memory, and (if used) GPU limits to ensure the plugin isn't being killed due to resource constraints. Timeout enforcement happens at the infrastructure level, so these changes are critical for long-running jobs like 4K renders. Examining the plugin daemon logs around the time of the error can provide more details on the failure cause. See more details in the relevant discussion and the .env.example configuration.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

Open in Cursor Join Discord Share on X

@dosubot[bot] commented on GitHub (Dec 10, 2025): <!-- Answer --> The 500 error and timeout when generating 4K images with Nano Banana Pro are most likely caused by the plugin daemon's execution timeout or resource exhaustion in your Docker environment. For resource-intensive tasks like 4K image generation, you should increase the `PLUGIN_MAX_EXECUTION_TIMEOUT` (default is 600 seconds) and `GUNICORN_TIMEOUT` (default is 200 seconds) environment variables in your Docker Compose or deployment configuration. This gives the plugin more time to complete before being killed by the daemon. Also, review and raise your container's CPU, memory, and (if used) GPU limits to ensure the plugin isn't being killed due to resource constraints. Timeout enforcement happens at the infrastructure level, so these changes are critical for long-running jobs like 4K renders. Examining the plugin daemon logs around the time of the error can provide more details on the failure cause. See more details in the [relevant discussion](https://github.com/langgenius/dify-plugin-daemon/issues/371#issuecomment-3012083162) and the [.env.example configuration](https://github.com/langgenius/dify-plugin-daemon/blob/96b51115cb30f008bf4eda7e3787ea27d39c18e2/.env.example#L128-L164). <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/7f5de598-f090-4505-8d12-6c630c1ce404?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/7f5de598-f090-4505-8d12-6c630c1ce404?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/7f5de598-f090-4505-8d12-6c630c1ce404?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/7f5de598-f090-4505-8d12-6c630c1ce404?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/7f5de598-f090-4505-8d12-6c630c1ce404?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/7f5de598-f090-4505-8d12-6c630c1ce404?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/7f5de598-f090-4505-8d12-6c630c1ce404?feedback_type=other)</sup> [![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=The%20500%20error%20and%20timeout%20when%20generating%204K%20images%20with%20Nano%20Banana%20Pro%20are%20most%20likely%20caused%20by%20the%20plugin%20daemon%27s%20execution%20timeout%20or%20resource%20exhaustion%20in%20your%20Docker%20environment.%20For%20resource-intensive%20tasks%20like%204K%20image%20generation%2C%20you%20should%20increase%20the%20%60PLUGIN_MAX_EXECUTION_TIMEOUT%60%20%28default%20is%20600%20seconds%29%20and%20%60GUNICORN_TIMEOUT%60%20%28default%20is%20200%20seconds%29%20environment%20variables%20in%20your%20Docker%20Compose%20or%20deployment%20configuration.%20This%20gives%20the%20plugin%20more%20time%20to%20complete%20before%20being%20killed%20by%20the%20daemon.%20Also%2C%20review%20and%20raise%20your%20container%27s%20CPU%2C%20memory%2C%20and%20%28if%20used%29%20GPU%20limits%20to%20ensure%20the%20plugin%20isn%27t%20being%20killed%20due%20to%20resource%20constraints.%20Timeout%20enforcement%20happens%20at%20the%20infrastructure%20level%2C%20so%20these%20changes%20are%20critical%20for%20long-running%20jobs%20like%204K%20renders.%20Examining%20the%20plugin%20daemon%20logs%20around%20the%20time%20of%20the%20error%20can%20provide%20more%20details%20on%20the%20failure%20cause.%20See%20more%20details%20in%20the%20%5Brelevant%20discussion%5D%28https%3A//github.com/langgenius/dify-plugin-daemon/issues/371%23issuecomment-3012083162%29%20and%20the%20%5B.env.example%20configuration%5D%28https%3A//github.com/langgenius/dify-plugin-daemon/blob/96b51115cb30f008bf4eda7e3787ea27d39c18e2/.env.example%23L128-L164%29.)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify-plugin-daemon/issues/532)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#218