“Internal Server Error” occurred when create chat-assitant-app or agentic-app #19930

Closed
opened 2026-02-21 20:04:59 -05:00 by yindo · 2 comments
Owner

Originally created by @flyromance on GitHub (Oct 26, 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.9.2

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

api-1  | 2025-10-26 16:47:17.076 ERROR [Dummy-502] [app.py:875] - Exception on /console/api/apps [POST]
api-1  | Traceback (most recent call last):
api-1  |   File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request
api-1  |     rv = self.dispatch_request()
api-1  |          ^^^^^^^^^^^^^^^^^^^^^^^
api-1  |   File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request
api-1  |     return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
api-1  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1  |   File "/app/api/.venv/lib/python3.12/site-packages/flask_restx/api.py", line 404, in wrapper
api-1  |     resp = resource(*args, **kwargs)
api-1  |            ^^^^^^^^^^^^^^^^^^^^^^^^^
api-1  |   File "/app/api/.venv/lib/python3.12/site-packages/flask/views.py", line 110, in view
api-1  |     return current_app.ensure_sync(self.dispatch_request)(**kwargs)  # type: ignore[no-any-return]
api-1  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1  |   File "/app/api/.venv/lib/python3.12/site-packages/flask_restx/resource.py", line 41, in dispatch_request
api-1  |     resp = meth(*args, **kwargs)
api-1  |            ^^^^^^^^^^^^^^^^^^^^^
api-1  |   File "/app/api/controllers/console/wraps.py", line 219, in decorated
api-1  |     return view(*args, **kwargs)
api-1  |            ^^^^^^^^^^^^^^^^^^^^^
api-1  |   File "/app/api/libs/login.py", line 80, in decorated_view
api-1  |     return current_app.ensure_sync(func)(*args, **kwargs)
api-1  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1  |   File "/app/api/controllers/console/wraps.py", line 36, in decorated
api-1  |     return view(*args, **kwargs)
api-1  |            ^^^^^^^^^^^^^^^^^^^^^
api-1  |   File "/app/api/.venv/lib/python3.12/site-packages/flask_restx/marshalling.py", line 246, in wrapper
api-1  |     resp = f(*args, **kwargs)
api-1  |            ^^^^^^^^^^^^^^^^^^
api-1  |   File "/app/api/controllers/console/wraps.py", line 121, in decorated
api-1  |     return view(*args, **kwargs)
api-1  |            ^^^^^^^^^^^^^^^^^^^^^
api-1  |   File "/app/api/controllers/console/wraps.py", line 314, in decorated_function
api-1  |     return f(*args, **kwargs)
api-1  |            ^^^^^^^^^^^^^^^^^^
api-1  |   File "/app/api/controllers/console/app/app.py", line 153, in post
api-1  |     app = app_service.create_app(current_tenant_id, args, current_user)
api-1  |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1  |   File "/app/api/services/app_service.py", line 113, in create_app
api-1  |     model_schema = llm_model.get_model_schema(model_instance.model, model_instance.credentials)
api-1  |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1  |   File "/app/api/core/model_runtime/model_providers/__base/ai_model.py", line 161, in get_model_schema
api-1  |     schema = plugin_model_manager.get_model_schema(
api-1  |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1  |   File "/app/api/core/plugin/impl/model.py", line 69, in get_model_schema
api-1  |     for resp in response:
api-1  |                 ^^^^^^^^
api-1  |   File "/app/api/core/plugin/impl/base.py", line 272, in _request_with_plugin_daemon_response_stream
api-1  |     self._handle_plugin_daemon_error(error.error_type, error.message)
api-1  |   File "/app/api/core/plugin/impl/base.py", line 308, in _handle_plugin_daemon_error
api-1  |     raise PluginDaemonInternalServerError(description=message)
api-1  | core.plugin.impl.exc.PluginDaemonInternalServerError: req_id: 956a6b4d82 PluginDaemonInternalServerError: no available node, plugin not found
api-1  | 2025-10-26 16:50:27.508 INFO [Dummy-503] [_client.py:1038] - HTTP Request: GET http://plugin_daemon:5002/plugin/f93ab070-5120-4c2b-a55e-148d77356025/management/models?page=1&page_size=256 "HTTP/1.1 200 OK"
api-1  | 2025-10-26 16:50:27.585 INFO [Dummy-503] [_client.py:1038] - HTTP Request: POST http://plugin_daemon:5002/plugin/f93ab070-5120-4c2b-a55e-148d77356025/dispatch/model/schema "HTTP/1.1 500 Internal Server Error"

✔️ Expected Behavior

http respose success

Actual Behavior

http response fail

Originally created by @flyromance on GitHub (Oct 26, 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.9.2 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce ``` api-1 | 2025-10-26 16:47:17.076 ERROR [Dummy-502] [app.py:875] - Exception on /console/api/apps [POST] api-1 | Traceback (most recent call last): api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request api-1 | rv = self.dispatch_request() api-1 | ^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request api-1 | return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return] api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask_restx/api.py", line 404, in wrapper api-1 | resp = resource(*args, **kwargs) api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask/views.py", line 110, in view api-1 | return current_app.ensure_sync(self.dispatch_request)(**kwargs) # type: ignore[no-any-return] api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask_restx/resource.py", line 41, in dispatch_request api-1 | resp = meth(*args, **kwargs) api-1 | ^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/controllers/console/wraps.py", line 219, in decorated api-1 | return view(*args, **kwargs) api-1 | ^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/libs/login.py", line 80, in decorated_view api-1 | return current_app.ensure_sync(func)(*args, **kwargs) api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/controllers/console/wraps.py", line 36, in decorated api-1 | return view(*args, **kwargs) api-1 | ^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask_restx/marshalling.py", line 246, in wrapper api-1 | resp = f(*args, **kwargs) api-1 | ^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/controllers/console/wraps.py", line 121, in decorated api-1 | return view(*args, **kwargs) api-1 | ^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/controllers/console/wraps.py", line 314, in decorated_function api-1 | return f(*args, **kwargs) api-1 | ^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/controllers/console/app/app.py", line 153, in post api-1 | app = app_service.create_app(current_tenant_id, args, current_user) api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/services/app_service.py", line 113, in create_app api-1 | model_schema = llm_model.get_model_schema(model_instance.model, model_instance.credentials) api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/core/model_runtime/model_providers/__base/ai_model.py", line 161, in get_model_schema api-1 | schema = plugin_model_manager.get_model_schema( api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/core/plugin/impl/model.py", line 69, in get_model_schema api-1 | for resp in response: api-1 | ^^^^^^^^ api-1 | File "/app/api/core/plugin/impl/base.py", line 272, in _request_with_plugin_daemon_response_stream api-1 | self._handle_plugin_daemon_error(error.error_type, error.message) api-1 | File "/app/api/core/plugin/impl/base.py", line 308, in _handle_plugin_daemon_error api-1 | raise PluginDaemonInternalServerError(description=message) api-1 | core.plugin.impl.exc.PluginDaemonInternalServerError: req_id: 956a6b4d82 PluginDaemonInternalServerError: no available node, plugin not found api-1 | 2025-10-26 16:50:27.508 INFO [Dummy-503] [_client.py:1038] - HTTP Request: GET http://plugin_daemon:5002/plugin/f93ab070-5120-4c2b-a55e-148d77356025/management/models?page=1&page_size=256 "HTTP/1.1 200 OK" api-1 | 2025-10-26 16:50:27.585 INFO [Dummy-503] [_client.py:1038] - HTTP Request: POST http://plugin_daemon:5002/plugin/f93ab070-5120-4c2b-a55e-148d77356025/dispatch/model/schema "HTTP/1.1 500 Internal Server Error" ``` ### ✔️ Expected Behavior http respose success ### ❌ Actual Behavior http response fail
yindo added the 🐞 bug label 2026-02-21 20:04:59 -05:00
yindo closed this issue 2026-02-21 20:04:59 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Oct 26, 2025):

Hi @flyromance! I'm Dosu and I’m helping the dify team.

The error PluginDaemonInternalServerError: no available node, plugin not found means Dify's API can't find or communicate with the plugin daemon, or the required plugin isn't registered or running. This is almost always a deployment or configuration issue in Docker setups.

Here's a focused troubleshooting checklist:

  1. Make sure the plugin daemon container is running and healthy. In your docker-compose.yaml, there should be a service like dify-plugin-daemon. Check its logs for errors about startup, registration, or DB connection.
  2. Double-check your .env and docker-compose.yaml for plugin-related variables (PLUGIN_DAEMON_URL, PLUGIN_DAEMON_KEY, etc). Both the API and plugin daemon must use the same values.
  3. Ensure all containers (API, plugin daemon, DB, Redis) are on the same Docker network. Recent changes require using container names (not IPs) for internal communication—see PR #26580.
  4. If you recently migrated or upgraded, re-run plugin migration and installation commands to ensure plugins are registered:
    poetry run flask extract-plugins --workers=20
    poetry run flask install-plugins --workers=2
    poetry run flask migrate-data-for-plugin
    
  5. In the Dify UI, check that your plugins are installed and functional.
  6. If plugin dependency installation is slow or failing, try setting a pip mirror in your .env (e.g., PIP_MIRROR_URL=https://mirrors.aliyun.com/pypi/simple/) and wait for the plugin environment to finish installing.

If the error persists, check for network issues between containers and confirm all persistent volumes are mounted correctly. This error is almost always due to a misalignment or missing step in the plugin daemon setup or Docker networking.
Reference 1 | Reference 2

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Chat with Dosu Join Discord Share on X

@dosubot[bot] commented on GitHub (Oct 26, 2025): <!-- Greeting --> Hi @flyromance! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the dify team. <!-- Answer --> The error `PluginDaemonInternalServerError: no available node, plugin not found` means Dify's API can't find or communicate with the plugin daemon, or the required plugin isn't registered or running. This is almost always a deployment or configuration issue in Docker setups. Here's a focused troubleshooting checklist: 1. Make sure the plugin daemon container is running and healthy. In your `docker-compose.yaml`, there should be a service like `dify-plugin-daemon`. Check its logs for errors about startup, registration, or DB connection. 2. Double-check your `.env` and `docker-compose.yaml` for plugin-related variables (`PLUGIN_DAEMON_URL`, `PLUGIN_DAEMON_KEY`, etc). Both the API and plugin daemon must use the same values. 3. Ensure all containers (API, plugin daemon, DB, Redis) are on the same Docker network. Recent changes require using container names (not IPs) for internal communication—see [PR #26580](https://github.com/langgenius/dify/pull/26580). 4. If you recently migrated or upgraded, re-run plugin migration and installation commands to ensure plugins are registered: ``` poetry run flask extract-plugins --workers=20 poetry run flask install-plugins --workers=2 poetry run flask migrate-data-for-plugin ``` 5. In the Dify UI, check that your plugins are installed and functional. 6. If plugin dependency installation is slow or failing, try setting a pip mirror in your `.env` (e.g., `PIP_MIRROR_URL=https://mirrors.aliyun.com/pypi/simple/`) and wait for the plugin environment to finish installing. If the error persists, check for network issues between containers and confirm all persistent volumes are mounted correctly. This error is almost always due to a misalignment or missing step in the plugin daemon setup or Docker networking. [Reference 1](https://github.com/langgenius/dify/issues/22173#issuecomment-3057855807) | [Reference 2](https://github.com/langgenius/dify/pull/26580) <!-- 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/1e804f7d-4043-4bdc-bd37-577359627491?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/1e804f7d-4043-4bdc-bd37-577359627491?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/1e804f7d-4043-4bdc-bd37-577359627491?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/1e804f7d-4043-4bdc-bd37-577359627491?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/1e804f7d-4043-4bdc-bd37-577359627491?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/1e804f7d-4043-4bdc-bd37-577359627491?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/1e804f7d-4043-4bdc-bd37-577359627491?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/6088a4f4-073a-43f3-b3d4-4f06fb0c05a0/ask?utm_source=github)&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/27463)
Author
Owner

@crazywoola commented on GitHub (Oct 26, 2025):

Try to remove the plugin and install it again.

@crazywoola commented on GitHub (Oct 26, 2025): Try to remove the plugin and install it again.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#19930