Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
Self Checks
- [x] This is only for bug report, if you would like to ask a question, please head to Discussions.
- [x] I have searched for existing issues search for existing issues, including closed ones.
- [x] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
- [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
- [x] Please do not modify this template :) and fill in all the required fields.
Dify version
1.0.0.
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
1、web front fault error:
curl 'http://localhost/console/api/workspaces/current/model-providers/langgenius/tongyi/tongyi' \
response:{"message": "Internal Server Error", "code": "unknown"}
2、docker-api
2025-03-03 14:39:53 2025-03-03 06:39:53.039 ERROR [Dummy-19] [app.py:875] - Exception on /console/api/workspaces/current/model-providers/langgenius/tongyi/tongyi [POST]
2025-03-03 14:39:53 Traceback (most recent call last):
2025-03-03 14:39:53 File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request
2025-03-03 14:39:53 rv = self.dispatch_request()
2025-03-03 14:39:53 ^^^^^^^^^^^^^^^^^^^^^^^
2025-03-03 14:39:53 File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request
2025-03-03 14:39:53 return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
2025-03-03 14:39:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-03 14:39:53 File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 489, in wrapper
2025-03-03 14:39:53 resp = resource(*args, **kwargs)
2025-03-03 14:39:53 ^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-03 14:39:53 File "/app/api/.venv/lib/python3.12/site-packages/flask/views.py", line 110, in view
2025-03-03 14:39:53 return current_app.ensure_sync(self.dispatch_request)(**kwargs) # type: ignore[no-any-return]
2025-03-03 14:39:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-03 14:39:53 File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 604, in dispatch_request
2025-03-03 14:39:53 resp = meth(*args, **kwargs)
2025-03-03 14:39:53 ^^^^^^^^^^^^^^^^^^^^^
2025-03-03 14:39:53 File "/app/api/controllers/console/wraps.py", line 147, in decorated
2025-03-03 14:39:53 return view(*args, **kwargs)
2025-03-03 14:39:53 ^^^^^^^^^^^^^^^^^^^^^
2025-03-03 14:39:53 File "/app/api/libs/login.py", line 94, in decorated_view
2025-03-03 14:39:53 return current_app.ensure_sync(func)(*args, **kwargs)
2025-03-03 14:39:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-03 14:39:53 File "/app/api/controllers/console/wraps.py", line 27, in decorated
2025-03-03 14:39:53 return view(*args, **kwargs)
2025-03-03 14:39:53 ^^^^^^^^^^^^^^^^^^^^^
2025-03-03 14:39:53 File "/app/api/controllers/console/workspace/model_providers.py", line 102, in post
2025-03-03 14:39:53 model_provider_service.save_provider_credentials(
2025-03-03 14:39:53 File "/app/api/services/model_provider_service.py", line 145, in save_provider_credentials
2025-03-03 14:39:53 provider_configuration.add_or_update_custom_credentials(credentials)
2025-03-03 14:39:53 File "/app/api/core/entities/provider_configuration.py", line 248, in add_or_update_custom_credentials
2025-03-03 14:39:53 provider_record, credentials = self.custom_credentials_validate(credentials)
2025-03-03 14:39:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-03 14:39:53 File "/app/api/core/entities/provider_configuration.py", line 231, in custom_credentials_validate
2025-03-03 14:39:53 credentials = model_provider_factory.provider_credentials_validate(
2025-03-03 14:39:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-03 14:39:53 File "/app/api/core/model_runtime/model_providers/model_provider_factory.py", line 155, in provider_credentials_validate
2025-03-03 14:39:53 self.plugin_model_manager.validate_provider_credentials(
2025-03-03 14:39:53 File "/app/api/core/plugin/manager/model.py", line 97, in validate_provider_credentials
2025-03-03 14:39:53 for resp in response:
2025-03-03 14:39:53 ^^^^^^^^
2025-03-03 14:39:53 File "/app/api/core/plugin/manager/base.py", line 189, in _request_with_plugin_daemon_response_stream
2025-03-03 14:39:53 self._handle_plugin_daemon_error(error.error_type, error.message)
2025-03-03 14:39:53 File "/app/api/core/plugin/manager/base.py", line 223, in _handle_plugin_daemon_error
2025-03-03 14:39:53 raise PluginDaemonInternalServerError(description=message)
2025-03-03 14:39:53 core.plugin.manager.exc.PluginDaemonInternalServerError: PluginDaemonInternalServerError: no available node, plugin not found
3、docker-plugin_daemon
2025-03-03 14:38:51 2025/03/03 06:38:51 factory.go:28: [ERROR]PluginDaemonInternalServerError: no available node, plugin not found
2025-03-03 14:38:51 goroutine 401 [running]:
2025-03-03 14:38:51 runtime/debug.Stack()
2025-03-03 14:38:51 /usr/local/go/src/runtime/debug/stack.go:24 +0x5e
2025-03-03 14:38:51 github.com/langgenius/dify-plugin-daemon/internal/types/exception.InternalServerError({0x180b640, 0xc0003f25c0})
2025-03-03 14:38:51 /app/internal/types/exception/factory.go:27 +0x27
2025-03-03 14:38:51 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).redirectPluginInvokeByPluginIdentifier(0xc000010918, 0xc000202b00, {0xc000c84600?, 0xe98ebf?}, {0x180b640, 0xc0003f2570})
2025-03-03 14:38:51 /app/internal/server/middleware.go:120 +0xef
2025-03-03 14:38:51 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).RedirectPluginInvoke.func2(0xc000202b00)
2025-03-03 14:38:51 /app/internal/server/middleware.go:94 +0x95
2025-03-03 14:38:51 github.com/gin-gonic/gin.(*Context).Next(0xc000202b00)
2025-03-03 14:38:51 /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185 +0x2b
2025-03-03 14:38:51 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).FetchPluginInstallation.func1(0xc000202b00)
2025-03-03 14:38:51 /app/internal/server/middleware.go:66 +0x2f2
2025-03-03 14:38:51 github.com/gin-gonic/gin.(*Context).Next(0xc000202b00)
2025-03-03 14:38:51 /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185 +0x2b
2025-03-03 14:38:51 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginGroup.CheckingKey.func1(0xc000202b00)
2025-03-03 14:38:51 /app/internal/server/middleware.go:24 +0x95
2025-03-03 14:38:51 github.com/gin-gonic/gin.(*Context).Next(...)
2025-03-03 14:38:51 /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
2025-03-03 14:38:51 github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1(0xc000202b00)
2025-03-03 14:38:51 /go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:102 +0x7a
2025-03-03 14:38:51 github.com/gin-gonic/gin.(*Context).Next(...)
2025-03-03 14:38:51 /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
2025-03-03 14:38:51 github.com/gin-gonic/gin.LoggerWithConfig.func1(0xc000202b00)
2025-03-03 14:38:51 /go/pkg/mod/github.com/gin-gonic/[email protected]/logger.go:249 +0xe5
2025-03-03 14:38:51 github.com/gin-gonic/gin.(*Context).Next(...)
2025-03-03 14:38:51 /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
2025-03-03 14:38:51 github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc00041eea0, 0xc000202b00)
2025-03-03 14:38:51 /go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:633 +0x892
2025-03-03 14:38:51 github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc00041eea0, {0x181dac0, 0xc000238620}, 0xc00031aea0)
2025-03-03 14:38:51 /go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:589 +0x1b2
2025-03-03 14:38:51 net/http.serverHandler.ServeHTTP({0x1813868?}, {0x181dac0?, 0xc000238620?}, 0x6?)
2025-03-03 14:38:51 /usr/local/go/src/net/http/server.go:3142 +0x8e
2025-03-03 14:38:51 net/http.(*conn).serve(0xc0005930e0, {0x1820270, 0xc0005237a0})
2025-03-03 14:38:51 /usr/local/go/src/net/http/server.go:2044 +0x5e8
2025-03-03 14:38:51 created by net/http.(*Server).Serve in goroutine 30
2025-03-03 14:38:51 /usr/local/go/src/net/http/server.go:3290 +0x4b4
2025-03-03 14:38:51
✔️ Expected Behavior
can set the API key as normal
❌ Actual Behavior
No response
Hello @xinkuang! I'm here to assist you with any bugs, questions, or contributions you have. Let's work together to resolve the issue you're facing.
I found a similar issue related to "Internal Server Error" when setting the API key in a self-hosted Dify version 1.0.0 using Docker. The suggested solution is to restart your Dify instance, as this has resolved the issue for other users. If the error persists, you should check the logs of the 'api' container to diagnose the issue. You can view these logs using the command docker-compose logs api to gain more insight into what might be causing the error [1][2].
Additionally, the error message "PluginDaemonInternalServerError: no available node, plugin not found" suggests there might be an issue with the plugin configuration or availability. Ensure that the necessary plugins are correctly installed and configured. If you have recently added or updated plugins, verify their installation and configuration settings.
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
PYTHON_ENV_INIT_TIMEOUT: 320
Try to add this after this line https://github.com/langgenius/dify/blob/c0358d8d0c600a4d97589235baa7ff4a7144b04d/docker/docker-compose.yaml#L560
Please try to remove the plugin and install it from the marketplace again.
Link
- https://github.com/langgenius/dify/issues/14736
- https://github.com/langgenius/dify/issues/14718
- https://github.com/langgenius/dify/issues/14601
- https://github.com/langgenius/dify/issues/14682
- https://github.com/langgenius/dify/issues/14654
- https://github.com/langgenius/dify/issues/14207
- https://github.com/langgenius/dify/issues/14782
Please try to remove the plugin and install it from the marketplace again.
qwen is ok。
plugin_daemon:
PYTHON_ENV_INIT_TIMEOUT: ${PYTHON_ENV_INIT_TIMEOUT:-640}
PIP_MIRROR_URL: https://pypi.tuna.tsinghua.edu.cn/simple
### but Volcengine is error!
3451-f3b01e497296e6f6.js:1 Uncaught (in promise) TimeoutError: Request timed out: POST http://localhost/console/api/workspaces/current/model-providers/langgenius/volcengine_maas/volcengine_maas/models
docker-plugin_daemon-1
2025-03-03 18:22:38 [GIN] 2025/03/03 - 10:22:38 | 200 | 4m0s | 172.20.0.8 | POST "/plugin/b27fd1af-3645-4e99-8885-0f2b4eecae88/dispatch/model/schema"
2025-03-03 18:22:39 2025/03/03 10:22:39 factory.go:28: [ERROR]PluginDaemonInternalServerError: killed by timeout
2025-03-03 18:22:39 goroutine 1227 [running]:
2025-03-03 18:22:39 runtime/debug.Stack()
2025-03-03 18:22:39 /usr/local/go/src/runtime/debug/stack.go:24 +0x5e
2025-03-03 18:22:39 github.com/langgenius/dify-plugin-daemon/internal/types/exception.InternalServerError({0x180b640, 0xc00052e7b0})
2025-03-03 18:22:39 /app/internal/types/exception/factory.go:27 +0x27
2025-03-03 18:22:39 github.com/langgenius/dify-plugin-daemon/internal/service.baseSSEService[...](0xc0014050a0, 0x15f6c0d, 0xf0?)
2025-03-03 18:22:39 /app/internal/service/base_sse.go:81 +0x4e6
2025-03-03 18:22:39 github.com/langgenius/dify-plugin-daemon/internal/service.GetAIModelSchema(0xc0019c25a0, 0xc00121b800, 0xf0)
2025-03-03 18:22:39 /app/internal/service/invoke_model.go:321 +0x198
2025-03-03 18:22:39 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.GetAIModelSchema.func19.1({{{0xc00005504d, 0x24}, {0xc001e4ce70, 0x7}}, {{0x0, 0x0}}, {0xc0000b0e70, 0x61}, 0x0, 0x0, ...})
2025-03-03 18:22:39 /app/internal/server/controllers/model.go:163 +0x91
2025-03-03 18:22:39 github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...].func1()
2025-03-03 18:22:39 /app/internal/server/controllers/base.go:53 +0xb5
2025-03-03 18:22:39 github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindRequest[...](0xc00121b800, 0xc001405328)
2025-03-03 18:22:39 /app/internal/server/controllers/base.go:31 +0x276
2025-03-03 18:22:39 github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...](0x1603a20?, 0xa?)
2025-03-03 18:22:39 /app/internal/server/controllers/base.go:37 +0x45
2025-03-03 18:22:39 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.GetAIModelSchema.func19(0xc00121b800)
2025-03-03 18:22:39 /app/internal/server/controllers/model.go:160 +0x74
2025-03-03 18:22:39 github.com/gin-gonic/gin.(*Context).Next(0xc00121b800)
2025-03-03 18:22:39 /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185 +0x2b
2025-03-03 18:22:39 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).InitClusterID.func3(0xc00121b800)
2025-03-03 18:22:39 /app/internal/server/middleware.go:170 +0x54
2025-03-03 18:22:39 github.com/gin-gonic/gin.(*Context).Next(0xc00121b800)
2025-03-03 18:22:39 /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185 +0x2b
2025-03-03 18:22:39 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).RedirectPluginInvoke.func2(0xc00121b800)
2025-03-03 18:22:39 /app/internal/server/middleware.go:97 +0x74
2025-03-03 18:22:39 github.com/gin-gonic/gin.(*Context).Next(0xc00121b800)
2025-03-03 18:22:39 /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185 +0x2b
2025-03-03 18:22:39 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).FetchPluginInstallation.func1(0xc00121b800)
2025-03-03 18:22:39 /app/internal/server/middleware.go:66 +0x2f2
2025-03-03 18:22:39 github.com/gin-gonic/gin.(*Context).Next(0xc00121b800)
2025-03-03 18:22:39 /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185 +0x2b
2025-03-03 18:22:39 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginGroup.CheckingKey.func1(0xc00121b800)
2025-03-03 18:22:39 /app/internal/server/middleware.go:24 +0x95
2025-03-03 18:22:39 github.com/gin-gonic/gin.(*Context).Next(...)
2025-03-03 18:22:39 /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
2025-03-03 18:22:39 github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1(0xc00121b800)
2025-03-03 18:22:39 /go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:102 +0x7a
2025-03-03 18:22:39 github.com/gin-gonic/gin.(*Context).Next(...)
2025-03-03 18:22:39 /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
2025-03-03 18:22:39 github.com/gin-gonic/gin.LoggerWithConfig.func1(0xc00121b800)
2025-03-03 18:22:39 /go/pkg/mod/github.com/gin-gonic/[email protected]/logger.go:249 +0xe5
2025-03-03 18:22:39 github.com/gin-gonic/gin.(*Context).Next(...)
2025-03-03 18:22:39 /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
2025-03-03 18:22:39 github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc00051a340, 0xc00121b800)
2025-03-03 18:22:39 /go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:633 +0x892
2025-03-03 18:22:39 github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc00051a340, {0x181dac0, 0xc000132620}, 0xc0014eed80)
2025-03-03 18:22:39 /go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:589 +0x1b2
2025-03-03 18:22:39 net/http.serverHandler.ServeHTTP({0x1813868?}, {0x181dac0?, 0xc000132620?}, 0x6?)
2025-03-03 18:22:39 /usr/local/go/src/net/http/server.go:3142 +0x8e
2025-03-03 18:22:39 net/http.(*conn).serve(0xc0011843f0, {0x1820270, 0xc0003fb380})
2025-03-03 18:22:39 /usr/local/go/src/net/http/server.go:2044 +0x5e8
2025-03-03 18:22:39 created by net/http.(*Server).Serve in goroutine 64
2025-03-03 18:22:39 /usr/local/go/src/net/http/server.go:3290 +0x4b4
2025-03-03 18:22:39
2025-03-03 18:22:39 [GIN] 2025/03/03 - 10:22:39 | 200 | 4m0s | 172.20.0.8 | POST "/plugin/b27fd1af-3645-4e99-8885-0f2b4eecae88/dispatch/model/schema"
025-03-03 20:11:04 2025-03-03 12:11:04.568 ERROR [Dummy-14] [app.py:875] - Exception on /console/api/workspaces/current/model-providers/langgenius/volcengine_maas/volcengine_maas/models [POST]
2025-03-03 20:11:04 Traceback (most recent call last):
2025-03-03 20:11:04 File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request
2025-03-03 20:11:04 rv = self.dispatch_request()
2025-03-03 20:11:04 ^^^^^^^^^^^^^^^^^^^^^^^
2025-03-03 20:11:04 File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request
2025-03-03 20:11:04 return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
2025-03-03 20:11:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-03 20:11:04 File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 489, in wrapper
2025-03-03 20:11:04 resp = resource(*args, **kwargs)
2025-03-03 20:11:04 ^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-03 20:11:04 File "/app/api/.venv/lib/python3.12/site-packages/flask/views.py", line 110, in view
2025-03-03 20:11:04 return current_app.ensure_sync(self.dispatch_request)(**kwargs) # type: ignore[no-any-return]
2025-03-03 20:11:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-03 20:11:04 File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 604, in dispatch_request
2025-03-03 20:11:04 resp = meth(*args, **kwargs)
2025-03-03 20:11:04 ^^^^^^^^^^^^^^^^^^^^^
2025-03-03 20:11:04 File "/app/api/controllers/console/wraps.py", line 147, in decorated
2025-03-03 20:11:04 return view(*args, **kwargs)
2025-03-03 20:11:04 ^^^^^^^^^^^^^^^^^^^^^
2025-03-03 20:11:04 File "/app/api/libs/login.py", line 94, in decorated_view
2025-03-03 20:11:04 return current_app.ensure_sync(func)(*args, **kwargs)
2025-03-03 20:11:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-03 20:11:04 File "/app/api/controllers/console/wraps.py", line 27, in decorated
2025-03-03 20:11:04 return view(*args, **kwargs)
2025-03-03 20:11:04 ^^^^^^^^^^^^^^^^^^^^^
2025-03-03 20:11:04 File "/app/api/controllers/console/workspace/models.py", line 154, in post
2025-03-03 20:11:04 model_provider_service.save_model_credentials(
2025-03-03 20:11:04 File "/app/api/services/model_provider_service.py", line 237, in save_model_credentials
2025-03-03 20:11:04 provider_configuration.add_or_update_custom_model_credentials(
2025-03-03 20:11:04 File "/app/api/core/entities/provider_configuration.py", line 406, in add_or_update_custom_model_credentials
2025-03-03 20:11:04 provider_model_record, credentials = self.custom_model_credentials_validate(model_type, model, credentials)
2025-03-03 20:11:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-03 20:11:04 File "/app/api/core/entities/provider_configuration.py", line 386, in custom_model_credentials_validate
2025-03-03 20:11:04 credentials = model_provider_factory.model_credentials_validate(
2025-03-03 20:11:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-03 20:11:04 File "/app/api/core/model_runtime/model_providers/model_provider_factory.py", line 190, in model_credentials_validate
2025-03-03 20:11:04 self.plugin_model_manager.validate_model_credentials(
2025-03-03 20:11:04 File "/app/api/core/plugin/manager/model.py", line 137, in validate_model_credentials
2025-03-03 20:11:04 for resp in response:
2025-03-03 20:11:04 ^^^^^^^^
2025-03-03 20:11:04 File "/app/api/core/plugin/manager/base.py", line 189, in _request_with_plugin_daemon_response_stream
2025-03-03 20:11:04 self._handle_plugin_daemon_error(error.error_type, error.message)
2025-03-03 20:11:04 File "/app/api/core/plugin/manager/base.py", line 223, in _handle_plugin_daemon_error
2025-03-03 20:11:04 raise PluginDaemonInternalServerError(description=message)
2025-03-03 20:11:04 core.plugin.manager.exc.PluginDaemonInternalServerError: PluginDaemonInternalServerError: killed by timeout
2025-03-03 20:13:38 2025-03-03 12:13:38.289 WARNING [Dummy-10] [provider_configuration.py:963] - get custom model schema failed, PluginDaemonInternalServerError: killed by timeout
025-03-03 20:11:04 2025-03-03 12:11:04.568 ERROR [Dummy-14] [app.py:875] - Exception on /console/api/workspaces/current/model-providers/langgenius/volcengine_maas/volcengine_maas/models [POST] 2025-03-03 20:11:04 Traceback (most recent call last): 2025-03-03 20:11:04 File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request 2025-03-03 20:11:04 rv = self.dispatch_request() 2025-03-03 20:11:04 ^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-03 20:11:04 File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request 2025-03-03 20:11:04 return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return] 2025-03-03 20:11:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-03 20:11:04 File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/init.py", line 489, in wrapper 2025-03-03 20:11:04 resp = resource(*args, **kwargs) 2025-03-03 20:11:04 ^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-03 20:11:04 File "/app/api/.venv/lib/python3.12/site-packages/flask/views.py", line 110, in view 2025-03-03 20:11:04 return current_app.ensure_sync(self.dispatch_request)(**kwargs) # type: ignore[no-any-return] 2025-03-03 20:11:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-03 20:11:04 File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/init.py", line 604, in dispatch_request 2025-03-03 20:11:04 resp = meth(*args, **kwargs) 2025-03-03 20:11:04 ^^^^^^^^^^^^^^^^^^^^^ 2025-03-03 20:11:04 File "/app/api/controllers/console/wraps.py", line 147, in decorated 2025-03-03 20:11:04 return view(*args, **kwargs) 2025-03-03 20:11:04 ^^^^^^^^^^^^^^^^^^^^^ 2025-03-03 20:11:04 File "/app/api/libs/login.py", line 94, in decorated_view 2025-03-03 20:11:04 return current_app.ensure_sync(func)(*args, **kwargs) 2025-03-03 20:11:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-03 20:11:04 File "/app/api/controllers/console/wraps.py", line 27, in decorated 2025-03-03 20:11:04 return view(*args, **kwargs) 2025-03-03 20:11:04 ^^^^^^^^^^^^^^^^^^^^^ 2025-03-03 20:11:04 File "/app/api/controllers/console/workspace/models.py", line 154, in post 2025-03-03 20:11:04 model_provider_service.save_model_credentials( 2025-03-03 20:11:04 File "/app/api/services/model_provider_service.py", line 237, in save_model_credentials 2025-03-03 20:11:04 provider_configuration.add_or_update_custom_model_credentials( 2025-03-03 20:11:04 File "/app/api/core/entities/provider_configuration.py", line 406, in add_or_update_custom_model_credentials 2025-03-03 20:11:04 provider_model_record, credentials = self.custom_model_credentials_validate(model_type, model, credentials) 2025-03-03 20:11:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-03 20:11:04 File "/app/api/core/entities/provider_configuration.py", line 386, in custom_model_credentials_validate 2025-03-03 20:11:04 credentials = model_provider_factory.model_credentials_validate( 2025-03-03 20:11:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-03 20:11:04 File "/app/api/core/model_runtime/model_providers/model_provider_factory.py", line 190, in model_credentials_validate 2025-03-03 20:11:04 self.plugin_model_manager.validate_model_credentials( 2025-03-03 20:11:04 File "/app/api/core/plugin/manager/model.py", line 137, in validate_model_credentials 2025-03-03 20:11:04 for resp in response: 2025-03-03 20:11:04 ^^^^^^^^ 2025-03-03 20:11:04 File "/app/api/core/plugin/manager/base.py", line 189, in _request_with_plugin_daemon_response_stream 2025-03-03 20:11:04 self._handle_plugin_daemon_error(error.error_type, error.message) 2025-03-03 20:11:04 File "/app/api/core/plugin/manager/base.py", line 223, in _handle_plugin_daemon_error 2025-03-03 20:11:04 raise PluginDaemonInternalServerError(description=message) 2025-03-03 20:11:04 core.plugin.manager.exc.PluginDaemonInternalServerError: PluginDaemonInternalServerError: killed by timeout 2025-03-03 20:13:38 2025-03-03 12:13:38.289 WARNING [Dummy-10] [provider_configuration.py:963] - get custom model schema failed, PluginDaemonInternalServerError: killed by timeout
I meet the same error . Do you solve the problem?
I encountered this error after a while, but it resolved after restarting the docker-plugin_daemon-1 container, and then the error continued to occur.
The error log only shows 2025/03/04 14:47:42 factory. go: 28: [ERROR] Plugin Daemon Internal Server Error: killed by timeout. There is no specific timeout object, and I don't know which plugin timed out. When I restarted the container, everything was normal, but there was still an error after half an hour
@rechardwang Try https://github.com/langgenius/dify/issues/14736#issuecomment-2693905382 & https://github.com/langgenius/dify/issues/14682#issuecomment-2694019566
@crazywoola All those parameters were added, but they didn't work. Restarting the docker-plugin_daemon-1 container can restore normal operation, but after a while, it became abnormal and all models in the system couldn't be selected
Let me save you, in 1.0.0web, click on the upper right corner of the plugin, select tongyi, switch version to 0.04 is normal, may be 0.0.5 there is a problem
#14828
@crazywoola remove the plugin and install it from the marketplace again,No effect, all plugins have been uninstalled, database related tables have been cleared, local plugin files have been deleted, and even after a complete reinstallation, there are still issues
2025/03/05 18:01:34 factory.go:28: [ERROR]PluginDaemonInternalServerError: killed by timeout goroutine 7472 [running]: runtime/debug.Stack() /usr/local/go/src/runtime/debug/stack.go:24 +0x5e github.com/langgenius/dify-plugin-daemon/internal/types/exception.InternalServerError({0x180b640, 0xc0020faa30}) /app/internal/types/exception/factory.go:27 +0x27 github.com/langgenius/dify-plugin-daemon/internal/service.baseSSEService[...](0xc0029c10a0, 0x15f6c0d, 0x1770?) /app/internal/service/base_sse.go:81 +0x4e6 github.com/langgenius/dify-plugin-daemon/internal/service.GetAIModelSchema(0xc0002792c0, 0xc012066100, 0x1770) /app/internal/service/invoke_model.go:321 +0x198 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.GetAIModelSchema.func19.1({{{0xc0064a232d, 0x24}, {0xc011a207e0, 0x7}}, {{0x0, 0x0}}, {0xc0064c2620, 0x61}, 0x0, 0x0, ...}) /app/internal/server/controllers/model.go:163 +0x91 github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...].func1() /app/internal/server/controllers/base.go:53 +0xb5 github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindRequest[...](0xc012066100, 0xc0029c1328) /app/internal/server/controllers/base.go:31 +0x276 github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...](0x1603a20?, 0xa?) /app/internal/server/controllers/base.go:37 +0x45 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.GetAIModelSchema.func19(0xc012066100) /app/internal/server/controllers/model.go:160 +0x74 github.com/gin-gonic/gin.(*Context).Next(0xc012066100) /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185 +0x2b github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).InitClusterID.func3(0xc012066100) /app/internal/server/middleware.go:170 +0x54 github.com/gin-gonic/gin.(*Context).Next(0xc012066100) /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185 +0x2b github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).RedirectPluginInvoke.func2(0xc012066100) /app/internal/server/middleware.go:97 +0x74 github.com/gin-gonic/gin.(*Context).Next(0xc012066100) /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185 +0x2b github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).FetchPluginInstallation.func1(0xc012066100) /app/internal/server/middleware.go:66 +0x2f2 github.com/gin-gonic/gin.(*Context).Next(0xc012066100) /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185 +0x2b github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginGroup.CheckingKey.func1(0xc012066100) /app/internal/server/middleware.go:24 +0x95 github.com/gin-gonic/gin.(*Context).Next(...) /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185 github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1(0xc012066100) /go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:102 +0x7a github.com/gin-gonic/gin.(*Context).Next(...) /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185 github.com/gin-gonic/gin.LoggerWithConfig.func1(0xc012066100) /go/pkg/mod/github.com/gin-gonic/[email protected]/logger.go:249 +0xe5 github.com/gin-gonic/gin.(*Context).Next(...) /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185 github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc0001ef520, 0xc012066100) /go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:633 +0x892 github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc0001ef520, {0x181dac0, 0xc00171aa80}, 0xc002276900) /go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:589 +0x1b2 net/http.serverHandler.ServeHTTP({0x1813868?}, {0x181dac0?, 0xc00171aa80?}, 0x6?) /usr/local/go/src/net/http/server.go:3142 +0x8e net/http.(*conn).serve(0xc000e4f710, {0x1820270, 0xc000378450}) /usr/local/go/src/net/http/server.go:2044 +0x5e8 created by net/http.(*Server).Serve in goroutine 88 /usr/local/go/src/net/http/server.go:3290 +0x4b4
My problem is not with tongyi, all my plugins have been reinstalled from the market, and it will be like this soon
Hi everyone! We fixed this issue in https://github.com/langgenius/dify-plugin-daemon/pull/54, Please wait for our new release. After the upgrade, you need to reinstall the plugin to resolve the issue.