dify crash #9853

Closed
opened 2026-02-21 18:39:46 -05:00 by yindo · 0 comments
Owner

Originally created by @bebilli on GitHub (Mar 7, 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.0.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image
When configuring LocalAI, the button turns gray and there is no response after clicking "Save". The following is the error information:

2025-03-07 23:33:28 plugin_daemon-1 | 2025/03/07 15:33:28 factory.go:28: [ERROR]PluginDaemonInternalServerError: killed by timeout
2025-03-07 23:33:28 plugin_daemon-1 | goroutine 877 [running]:
2025-03-07 23:33:28 plugin_daemon-1 | runtime/debug.Stack()
2025-03-07 23:33:28 plugin_daemon-1 | /usr/local/go/src/runtime/debug/stack.go:24 +0x5e
2025-03-07 23:33:28 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/types/exception.InternalServerError({0x180b640, 0xc00078b200})
2025-03-07 23:33:28 plugin_daemon-1 | /app/internal/types/exception/factory.go:27 +0x27
2025-03-07 23:33:28 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/service.baseSSEService[...](0xc000d170a0, 0x15f6c0d, 0xf0?)
2025-03-07 23:33:28 plugin_daemon-1 | /app/internal/service/base_sse.go:81 +0x4e6
2025-03-07 23:33:28 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/service.ValidateModelCredentials(0xc00026e640, 0xc0002ef200, 0xf0)
2025-03-07 23:33:28 plugin_daemon-1 | /app/internal/service/invoke_model.go:237 +0x198
2025-03-07 23:33:28 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.ValidateModelCredentials.func18.1({{{0xc0004b9ead, 0x24}, {0xc0006234d0, 0x7}}, {{0x0, 0x0}}, {0xc00024a4e0, 0x59}, 0x0, 0x0, ...})
2025-03-07 23:33:28 plugin_daemon-1 | /app/internal/server/controllers/model.go:111 +0x91
2025-03-07 23:33:28 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...].func1()
2025-03-07 23:33:28 plugin_daemon-1 | /app/internal/server/controllers/base.go:53 +0xb5
2025-03-07 23:33:28 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindRequest[...](0xc0002ef200, 0xc000d17328)
2025-03-07 23:33:28 plugin_daemon-1 | /app/internal/server/controllers/base.go:31 +0x276
2025-03-07 23:33:28 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...](0x1603a20?, 0xa?)
2025-03-07 23:33:28 plugin_daemon-1 | /app/internal/server/controllers/base.go:37 +0x45
2025-03-07 23:33:28 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.ValidateModelCredentials.func18(0xc0002ef200)
2025-03-07 23:33:28 plugin_daemon-1 | /app/internal/server/controllers/model.go:108 +0x74
2025-03-07 23:33:28 plugin_daemon-1 | github.com/gin-gonic/gin.(*Context).Next(0xc0002ef200)
2025-03-07 23:33:28 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x2b
2025-03-07 23:33:28 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).InitClusterID.func3(0xc0002ef200)
2025-03-07 23:33:28 plugin_daemon-1 | /app/internal/server/middleware.go:170 +0x54
2025-03-07 23:33:28 plugin_daemon-1 | github.com/gin-gonic/gin.(*Context).Next(0xc0002ef200)
2025-03-07 23:33:28 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x2b
2025-03-07 23:33:28 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).RedirectPluginInvoke.func2(0xc0002ef200)
2025-03-07 23:33:28 plugin_daemon-1 | /app/internal/server/middleware.go:97 +0x74
2025-03-07 23:33:28 plugin_daemon-1 | github.com/gin-gonic/gin.(*Context).Next(0xc0002ef200)
2025-03-07 23:33:28 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x2b
2025-03-07 23:33:28 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).FetchPluginInstallation.func1(0xc0002ef200)
2025-03-07 23:33:28 plugin_daemon-1 | /app/internal/server/middleware.go:66 +0x2f2
2025-03-07 23:33:28 plugin_daemon-1 | github.com/gin-gonic/gin.(*Context).Next(0xc0002ef200)
2025-03-07 23:33:28 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x2b
2025-03-07 23:33:28 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginGroup.CheckingKey.func1(0xc0002ef200)
2025-03-07 23:33:28 plugin_daemon-1 | /app/internal/server/middleware.go:24 +0x95
2025-03-07 23:33:28 plugin_daemon-1 | github.com/gin-gonic/gin.(*Context).Next(...)
2025-03-07 23:33:28 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
2025-03-07 23:33:28 plugin_daemon-1 | github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1(0xc0002ef200)
2025-03-07 23:33:28 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102 +0x7a
2025-03-07 23:33:28 plugin_daemon-1 | github.com/gin-gonic/gin.(*Context).Next(...)
2025-03-07 23:33:28 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
2025-03-07 23:33:28 plugin_daemon-1 | github.com/gin-gonic/gin.LoggerWithConfig.func1(0xc0002ef200)
2025-03-07 23:33:28 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249 +0xe5
2025-03-07 23:33:28 plugin_daemon-1 | github.com/gin-gonic/gin.(*Context).Next(...)
2025-03-07 23:33:28 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
2025-03-07 23:33:28 plugin_daemon-1 | github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc000536680, 0xc0002ef200)
2025-03-07 23:33:28 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 +0x892
2025-03-07 23:33:28 plugin_daemon-1 | github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc000536680, {0x181dac0, 0xc0004c8700}, 0xc000876900)
2025-03-07 23:33:28 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 +0x1b2
2025-03-07 23:33:28 plugin_daemon-1 | net/http.serverHandler.ServeHTTP({0x1813868?}, {0x181dac0?, 0xc0004c8700?}, 0x6?)
2025-03-07 23:33:28 plugin_daemon-1 | /usr/local/go/src/net/http/server.go:3142 +0x8e
2025-03-07 23:33:28 plugin_daemon-1 | net/http.(*conn).serve(0xc0006ae900, {0x1820270, 0xc00055c450})
2025-03-07 23:33:28 plugin_daemon-1 | /usr/local/go/src/net/http/server.go:2044 +0x5e8
2025-03-07 23:33:28 plugin_daemon-1 | created by net/http.(*Server).Serve in goroutine 67
2025-03-07 23:33:28 plugin_daemon-1 | /usr/local/go/src/net/http/server.go:3290 +0x4b4
2025-03-07 23:33:28 plugin_daemon-1 |
2025-03-07 23:33:28 plugin_daemon-1 | [GIN] 2025/03/07 - 15:33:28 | 200 | 4m0s | 172.18.0.7 | POST "/plugin/1a1c08ae-28c7-4f4d-ad2f-8eebe762465f/dispatch/model/validate_model_credentials"
2025-03-07 23:33:28 api-1 | 2025-03-07 15:33:28.785 ERROR [Dummy-15] [app.py:875] - Exception on /console/api/workspaces/current/model-providers/langgenius/localai/localai/models [POST]
2025-03-07 23:33:28 api-1 | Traceback (most recent call last):
2025-03-07 23:33:28 api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request
2025-03-07 23:33:28 api-1 | rv = self.dispatch_request()
2025-03-07 23:33:28 api-1 | ^^^^^^^^^^^^^^^^^^^^^^^
2025-03-07 23:33:28 api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request
2025-03-07 23:33:28 api-1 | return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
2025-03-07 23:33:28 api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-07 23:33:28 api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 489, in wrapper
2025-03-07 23:33:28 api-1 | resp = resource(*args, **kwargs)
2025-03-07 23:33:28 api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-07 23:33:28 api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask/views.py", line 110, in view
2025-03-07 23:33:28 api-1 | return current_app.ensure_sync(self.dispatch_request)(**kwargs) # type: ignore[no-any-return]
2025-03-07 23:33:28 api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-07 23:33:28 api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 604, in dispatch_request
2025-03-07 23:33:28 api-1 | resp = meth(*args, **kwargs)
2025-03-07 23:33:28 api-1 | ^^^^^^^^^^^^^^^^^^^^^
2025-03-07 23:33:28 api-1 | File "/app/api/controllers/console/wraps.py", line 147, in decorated
2025-03-07 23:33:28 api-1 | return view(*args, **kwargs)
2025-03-07 23:33:28 api-1 | ^^^^^^^^^^^^^^^^^^^^^
2025-03-07 23:33:28 api-1 | File "/app/api/libs/login.py", line 94, in decorated_view
2025-03-07 23:33:28 api-1 | return current_app.ensure_sync(func)(*args, **kwargs)
2025-03-07 23:33:28 api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-07 23:33:28 api-1 | File "/app/api/controllers/console/wraps.py", line 27, in decorated
2025-03-07 23:33:28 api-1 | return view(*args, **kwargs)
2025-03-07 23:33:28 api-1 | ^^^^^^^^^^^^^^^^^^^^^
2025-03-07 23:33:28 api-1 | File "/app/api/controllers/console/workspace/models.py", line 154, in post
2025-03-07 23:33:28 api-1 | model_provider_service.save_model_credentials(
2025-03-07 23:33:28 api-1 | File "/app/api/services/model_provider_service.py", line 237, in save_model_credentials
2025-03-07 23:33:28 api-1 | provider_configuration.add_or_update_custom_model_credentials(
2025-03-07 23:33:28 api-1 | File "/app/api/core/entities/provider_configuration.py", line 406, in add_or_update_custom_model_credentials
2025-03-07 23:33:28 api-1 | provider_model_record, credentials = self.custom_model_credentials_validate(model_type, model, credentials)
2025-03-07 23:33:28 api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-07 23:33:28 api-1 | File "/app/api/core/entities/provider_configuration.py", line 386, in custom_model_credentials_validate
2025-03-07 23:33:28 api-1 | credentials = model_provider_factory.model_credentials_validate(
2025-03-07 23:33:28 api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-07 23:33:28 api-1 | File "/app/api/core/model_runtime/model_providers/model_provider_factory.py", line 190, in model_credentials_validate
2025-03-07 23:33:28 api-1 | self.plugin_model_manager.validate_model_credentials(
2025-03-07 23:33:28 api-1 | File "/app/api/core/plugin/manager/model.py", line 137, in validate_model_credentials
2025-03-07 23:33:28 api-1 | for resp in response:
2025-03-07 23:33:28 api-1 | ^^^^^^^^
2025-03-07 23:33:28 api-1 | File "/app/api/core/plugin/manager/base.py", line 189, in _request_with_plugin_daemon_response_stream
2025-03-07 23:33:28 api-1 | self._handle_plugin_daemon_error(error.error_type, error.message)
2025-03-07 23:33:28 api-1 | File "/app/api/core/plugin/manager/base.py", line 223, in handle_plugin_daemon_error
2025-03-07 23:33:28 api-1 | raise PluginDaemonInternalServerError(description=message)
2025-03-07 23:33:28 api-1 | core.plugin.manager.exc.PluginDaemonInternalServerError: PluginDaemonInternalServerError: killed by timeout
2025-03-07 23:33:30 plugin_daemon-1 | [GIN] 2025/03/07 - 15:33:30 | 200 | 382.992µs | 172.18.0.7 | GET "/plugin/1a1c08ae-28c7-4f4d-ad2f-8eebe762465f/management/install/tasks?page=1&page_size=100"
2025-03-07 23:33:30 nginx-1 | 172.18.0.1 - - [07/Mar/2025:15:33:30 +0000] "GET /console/api/workspaces/current/plugin/tasks?page=1&page_size=100 HTTP/1.1" 200 606 "http://localhost/app/8460bc31-d871-4205-b5ff-713dd1a5692c/configuration" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36" "-"
2025-03-07 23:33:35 plugin_daemon-1 | [GIN] 2025/03/07 - 15:33:35 | 200 | 265.34µs | 172.18.0.7 | GET "/plugin/1a1c08ae-28c7-4f4d-ad2f-8eebe762465f/management/install/tasks?page=1&page_size=100"
2025-03-07 23:33:35 nginx-1 | 172.18.0.1 - - [07/Mar/2025:15:33:35 +0000] "GET /console/api/workspaces/current/plugin/tasks?page=1&page_size=100 HTTP/1.1" 200 606 "http://localhost/app/8460bc31-d871-4205-b5ff-713dd1a5692c/configuration" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36" "-"
2025-03-07 23:33:40 plugin_daemon-1 | [GIN] 2025/03/07 - 15:33:40 | 200 | 314.397µs | 172.18.0.7 | GET "/plugin/1a1c08ae-28c7-4f4d-ad2f-8eebe762465f/management/install/tasks?page=1&page_size=100"
2025-03-07 23:33:40 nginx-1 | 172.18.0.1 - - [07/Mar/2025:15:33:40 +0000] "GET /console/api/workspaces/current/plugin/tasks?page=1&page_size=100 HTTP/1.1" 200 606 "http://localhost/app/8460bc31-d871-4205-b5ff-713dd1a5692c/configuration" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36" "-"
2025-03-07 23:33:45 plugin_daemon-1 | [GIN] 2025/03/07 - 15:33:45 | 200 | 311.677µs | 172.18.0.7 | GET "/plugin/1a1c08ae-28c7-4f4d-ad2f-8eebe762465f/management/install/tasks?page=1&page_size=100"
2025-03-07 23:33:45 nginx-1 | 172.18.0.1 - - [07/Mar/2025:15:33:45 +0000] "GET /console/api/workspaces/current/plugin/tasks?page=1&page_size=100 HTTP/1.1" 200 606 "http://localhost/app/8460bc31-d871-4205-b5ff-713dd1a5692c/configuration" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36" "-"
2025-03-07 23:33:48 sandbox-1 | [GIN] 2025/03/07 - 15:33:48 | 200 | 15.811µs | ::1 | GET "/health"
2025-03-07 23:33:50 plugin_daemon-1 | [GIN] 2025/03/07 - 15:33:50 | 200 | 407.369µs | 172.18.0.7 | GET "/plugin/1a1c08ae-28c7-4f4d-ad2f-8eebe762465f/management/install/tasks?page=1&page_size=100"
2025-03-07 23:33:50 nginx-1 | 172.18.0.1 - - [07/Mar/2025:15:33:50 +0000] "GET /console/api/workspaces/current/plugin/tasks?page=1&page_size=100 HTTP/1.1" 200 606 "http://localhost/app/8460bc31-d871-4205-b5ff-713dd1a5692c/configuration" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36" "-"
2025-03-07 23:33:55 plugin_daemon-1 | [GIN] 2025/03/07 - 15:33:55 | 200 | 380.602µs | 172.18.0.7 | GET "/plugin/1a1c08ae-28c7-4f4d-ad2f-8eebe762465f/management/install/tasks?page=1&page_size=100"
2025-03-07 23:33:55 nginx-1 | 172.18.0.1 - - [07/Mar/2025:15:33:55 +0000] "GET /console/api/workspaces/current/plugin/tasks?page=1&page_size=100 HTTP/1.1" 200 606 "http://localhost/app/8460bc31-d871-4205-b5ff-713dd1a5692c/configuration" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36" "-"
2025-03-07 23:34:00 plugin_daemon-1 | [GIN] 2025/03/07 - 15:34:00 | 200 | 442.436µs | 172.18.0.7 | GET "/plugin/1a1c08ae-28c7-4f4d-ad2f-8eebe762465f/management/install/tasks?page=1&page_size=100"
2025-03-07 23:34:00 nginx-1 | 172.18.0.1 - - [07/Mar/2025:15:34:00 +0000] "GET /console/api/workspaces/current/plugin/tasks?page=1&page_size=100 HTTP/1.1" 200 606 "http://localhost/app/8460bc31-d871-4205-b5ff-713dd1a5692c/configuration" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36" "-"
2025-03-07 23:34:05 plugin_daemon-1 | [GIN] 2025/03/07 - 15:34:05 | 200 | 300.62µs | 172.18.0.7 | GET "/plugin/1a1c08ae-28c7-4f4d-ad2f-8eebe762465f/management/install/tasks?page=1&page_size=100"
2025-03-07 23:34:05 nginx-1 | 172.18.0.1 - - [07/Mar/2025:15:34:05 +0000] "GET /console/api/workspaces/current/plugin/tasks?page=1&page_size=100 HTTP/1.1" 200 606 "http://localhost/app/8460bc31-d871-4205-b5ff-713dd1a5692c/configuration" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36" "-"
2025-03-07 23:34:10 plugin_daemon-1 | [GIN] 2025/03/07 - 15:34:10 | 200 | 366.109µs | 172.18.0.7 | GET "/plugin/1a1c08ae-28c7-4f4d-ad2f-8eebe762465f/management/install/tasks?page=1&page_size=100"
2025-03-07 23:34:10 nginx-1 | 172.18.0.1 - - [07/Mar/2025:15:34:10 +0000] "GET /console/api/workspaces/current/plugin/tasks?page=1&page_size=100 HTTP/1.1" 200 606 "http://localhost/app/8460bc31-d871-4205-b5ff-713dd1a5692c/configuration" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36" "-"
2025-03-07 23:34:15 plugin_daemon-1 | [GIN] 2025/03/07 - 15:34:15 | 200 | 360.24µs | 172.18.0.7 | GET "/plugin/1a1c08ae-28c7-4f4d-ad2f-8eebe762465f/management/install/tasks?page=1&page_size=100"
2025-03-07 23:34:15 nginx-1 | 172.18.0.1 - - [07/Mar/2025:15:34:15 +0000] "GET /console/api/workspaces/current/plugin/tasks?page=1&page_size=100 HTTP/1.1" 200 606 "http://localhost/app/8460bc31-d871-4205-b5ff-713dd1a5692c/configuration" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36" "-"
2025-03-07 23:34:18 sandbox-1 | [GIN] 2025/03/07 - 15:34:18 | 200 | 13.424µs | ::1 | GET "/health"
2025-03-07 23:34:20 plugin_daemon-1 | [GIN] 2025/03/07 - 15:34:20 | 200 | 334.471µs | 172.18.0.7 | GET "/plugin/1a1c08ae-28c7-4f4d-ad2f-8eebe762465f/management/install/tasks?page=1&page_size=100"
2025-03-07 23:34:20 nginx-1 | 172.18.0.1 - - [07/Mar/2025:15:34:20 +0000] "GET /console/api/workspaces/current/plugin/tasks?page=1&page_size=100 HTTP/1.1" 200 606 "http://localhost/app/8460bc31-d871-4205-b5ff-713dd1a5692c/configuration" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36" "-"
2025-03-07 23:34:25 plugin_daemon-1 | [GIN] 2025/03/07 - 15:34:25 | 200 | 285.419µs | 172.18.0.7 | GET "/plugin/1a1c08ae-28c7-4f4d-ad2f-8eebe762465f/management/install/tasks?page=1&page_size=100"
2025-03-07 23:34:25 nginx-1 | 172.18.0.1 - - [07/Mar/2025:15:34:25 +0000] "GET /console/api/workspaces/current/plugin/tasks?page=1&page_size=100 HTTP/1.1" 200 606 "http://localhost/app/8460bc31-d871-4205-b5ff-713dd1a5692c/configuration" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36" "-"
2025-03-07 23:34:30 plugin_daemon-1 | [GIN] 2025/03/07 - 15:34:30 | 200 | 296.407µs | 172.18.0.7 | GET "/plugin/1a1c08ae-28c7-4f4d-ad2f-8eebe762465f/management/install/tasks?page=1&page_size=100"
2025-03-07 23:34:30 nginx-1 | 172.18.0.1 - - [07/Mar/2025:15:34:30 +0000] "GET /console/api/workspaces/current/plugin/tasks?page=1&page_size=100 HTTP/1.1" 200 606 "http://localhost/app/8460bc31-d871-4205-b5ff-713dd1a5692c/configuration" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36" "-"
2025-03-07 23:34:35 plugin_daemon-1 | [GIN] 2025/03/07 - 15:34:35 | 200 | 317.432µs | 172.18.0.7 | GET "/plugin/1a1c08ae-28c7-4f4d-ad2f-8eebe762465f/management/install/tasks?page=1&page_size=100"
2025-03-07 23:34:35 nginx-1 | 172.18.0.1 - - [07/Mar/2025:15:34:35 +0000] "GET /console/api/workspaces/current/plugin/tasks?page=1&page_size=100 HTTP/1.1" 200 606 "http://localhost/app/8460bc31-d871-4205-b5ff-713dd1a5692c/configuration" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36" "-"
2025-03-07 23:34:37 plugin_daemon-1 | 2025/03/07 15:34:37 factory.go:28: [ERROR]PluginDaemonInternalServerError: killed by timeout
2025-03-07 23:34:37 plugin_daemon-1 | goroutine 904 [running]:
2025-03-07 23:34:37 plugin_daemon-1 | runtime/debug.Stack()
2025-03-07 23:34:37 plugin_daemon-1 | /usr/local/go/src/runtime/debug/stack.go:24 +0x5e
2025-03-07 23:34:37 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/types/exception.InternalServerError({0x180b640, 0xc000685e80})
2025-03-07 23:34:37 plugin_daemon-1 | /app/internal/types/exception/factory.go:27 +0x27
2025-03-07 23:34:37 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/service.baseSSEService[...](0xc0001ad0a0, 0x15f6c0d, 0xf0?)
2025-03-07 23:34:37 plugin_daemon-1 | /app/internal/service/base_sse.go:81 +0x4e6
2025-03-07 23:34:37 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/service.ValidateModelCredentials(0xc000292640, 0xc0001b7400, 0xf0)
2025-03-07 23:34:37 plugin_daemon-1 | /app/internal/service/invoke_model.go:237 +0x198
2025-03-07 23:34:37 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.ValidateModelCredentials.func18.1({{{0xc0003189ad, 0x24}, {0xc000a5b930, 0x7}}, {{0x0, 0x0}}, {0xc000312ae0, 0x59}, 0x0, 0x0, ...})
2025-03-07 23:34:37 plugin_daemon-1 | /app/internal/server/controllers/model.go:111 +0x91
2025-03-07 23:34:37 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...].func1()
2025-03-07 23:34:37 plugin_daemon-1 | /app/internal/server/controllers/base.go:53 +0xb5
2025-03-07 23:34:37 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindRequest[...](0xc0001b7400, 0xc0001ad328)
2025-03-07 23:34:37 plugin_daemon-1 | /app/internal/server/controllers/base.go:31 +0x276
2025-03-07 23:34:37 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...](0x1603a20?, 0xa?)
2025-03-07 23:34:37 plugin_daemon-1 | /app/internal/server/controllers/base.go:37 +0x45
2025-03-07 23:34:37 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.ValidateModelCredentials.func18(0xc0001b7400)
2025-03-07 23:34:37 plugin_daemon-1 | /app/internal/server/controllers/model.go:108 +0x74
2025-03-07 23:34:37 plugin_daemon-1 | github.com/gin-gonic/gin.(*Context).Next(0xc0001b7400)
2025-03-07 23:34:37 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x2b
2025-03-07 23:34:37 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).InitClusterID.func3(0xc0001b7400)
2025-03-07 23:34:37 plugin_daemon-1 | /app/internal/server/middleware.go:170 +0x54
2025-03-07 23:34:37 plugin_daemon-1 | github.com/gin-gonic/gin.(*Context).Next(0xc0001b7400)
2025-03-07 23:34:37 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x2b
2025-03-07 23:34:37 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).RedirectPluginInvoke.func2(0xc0001b7400)
2025-03-07 23:34:37 plugin_daemon-1 | /app/internal/server/middleware.go:97 +0x74
2025-03-07 23:34:37 plugin_daemon-1 | github.com/gin-gonic/gin.(*Context).Next(0xc0001b7400)
2025-03-07 23:34:37 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x2b
2025-03-07 23:34:37 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).FetchPluginInstallation.func1(0xc0001b7400)
2025-03-07 23:34:37 plugin_daemon-1 | /app/internal/server/middleware.go:66 +0x2f2
2025-03-07 23:34:37 plugin_daemon-1 | github.com/gin-gonic/gin.(*Context).Next(0xc0001b7400)
2025-03-07 23:34:37 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x2b
2025-03-07 23:34:37 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginGroup.CheckingKey.func1(0xc0001b7400)
2025-03-07 23:34:37 plugin_daemon-1 | /app/internal/server/middleware.go:24 +0x95
2025-03-07 23:34:37 plugin_daemon-1 | github.com/gin-gonic/gin.(*Context).Next(...)
2025-03-07 23:34:37 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
2025-03-07 23:34:37 plugin_daemon-1 | github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1(0xc0001b7400)
2025-03-07 23:34:37 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102 +0x7a
2025-03-07 23:34:37 plugin_daemon-1 | github.com/gin-gonic/gin.(*Context).Next(...)
2025-03-07 23:34:37 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
2025-03-07 23:34:37 plugin_daemon-1 | github.com/gin-gonic/gin.LoggerWithConfig.func1(0xc0001b7400)
2025-03-07 23:34:37 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249 +0xe5
2025-03-07 23:34:37 plugin_daemon-1 | github.com/gin-gonic/gin.(*Context).Next(...)
2025-03-07 23:34:37 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
2025-03-07 23:34:37 plugin_daemon-1 | github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc000536680, 0xc0001b7400)
2025-03-07 23:34:37 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 +0x892
2025-03-07 23:34:37 plugin_daemon-1 | github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc000536680, {0x181dac0, 0xc00072cd20}, 0xc000678900)
2025-03-07 23:34:37 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 +0x1b2
2025-03-07 23:34:37 plugin_daemon-1 | net/http.serverHandler.ServeHTTP({0x1813868?}, {0x181dac0?, 0xc00072cd20?}, 0x6?)
2025-03-07 23:34:37 plugin_daemon-1 | /usr/local/go/src/net/http/server.go:3142 +0x8e
2025-03-07 23:34:37 plugin_daemon-1 | net/http.(*conn).serve(0xc000538750, {0x1820270, 0xc00055c450})
2025-03-07 23:34:37 plugin_daemon-1 | /usr/local/go/src/net/http/server.go:2044 +0x5e8
2025-03-07 23:34:37 plugin_daemon-1 | created by net/http.(*Server).Serve in goroutine 67
2025-03-07 23:34:37 plugin_daemon-1 | /usr/local/go/src/net/http/server.go:3290 +0x4b4
2025-03-07 23:34:37 plugin_daemon-1 |
2025-03-07 23:34:37 plugin_daemon-1 | [GIN] 2025/03/07 - 15:34:37 | 200 | 4m0s | 172.18.0.7 | POST "/plugin/1a1c08ae-28c7-4f4d-ad2f-8eebe762465f/dispatch/model/validate_model_credentials"
2025-03-07 23:34:37 api-1 | 2025-03-07 15:34:37.602 ERROR [Dummy-16] [app.py:875] - Exception on /console/api/workspaces/current/model-providers/langgenius/localai/localai/models [POST]
2025-03-07 23:34:37 api-1 | Traceback (most recent call last):
2025-03-07 23:34:37 api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request
2025-03-07 23:34:37 api-1 | rv = self.dispatch_request()
2025-03-07 23:34:37 api-1 | ^^^^^^^^^^^^^^^^^^^^^^^
2025-03-07 23:34:37 api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request
2025-03-07 23:34:37 api-1 | return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
2025-03-07 23:34:37 api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-07 23:34:37 api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 489, in wrapper
2025-03-07 23:34:37 api-1 | resp = resource(*args, **kwargs)
2025-03-07 23:34:37 api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-07 23:34:37 api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask/views.py", line 110, in view
2025-03-07 23:34:37 api-1 | return current_app.ensure_sync(self.dispatch_request)(**kwargs) # type: ignore[no-any-return]
2025-03-07 23:34:37 api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-07 23:34:37 api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init_
.py", line 604, in dispatch_request
2025-03-07 23:34:37 api-1 | resp = meth(*args, **kwargs)
2025-03-07 23:34:37 api-1 | ^^^^^^^^^^^^^^^^^^^^^
2025-03-07 23:34:37 api-1 | File "/app/api/controllers/console/wraps.py", line 147, in decorated
2025-03-07 23:34:37 api-1 | return view(*args, **kwargs)
2025-03-07 23:34:37 api-1 | ^^^^^^^^^^^^^^^^^^^^^
2025-03-07 23:34:37 api-1 | File "/app/api/libs/login.py", line 94, in decorated_view
2025-03-07 23:34:37 api-1 | return current_app.ensure_sync(func)(*args, **kwargs)
2025-03-07 23:34:37 api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-07 23:34:37 api-1 | File "/app/api/controllers/console/wraps.py", line 27, in decorated
2025-03-07 23:34:37 api-1 | return view(*args, **kwargs)
2025-03-07 23:34:37 api-1 | ^^^^^^^^^^^^^^^^^^^^^
2025-03-07 23:34:37 api-1 | File "/app/api/controllers/console/workspace/models.py", line 154, in post
2025-03-07 23:34:37 api-1 | model_provider_service.save_model_credentials(
2025-03-07 23:34:37 api-1 | File "/app/api/services/model_provider_service.py", line 237, in save_model_credentials
2025-03-07 23:34:37 api-1 | provider_configuration.add_or_update_custom_model_credentials(
2025-03-07 23:34:37 api-1 | File "/app/api/core/entities/provider_configuration.py", line 406, in add_or_update_custom_model_credentials
2025-03-07 23:34:37 api-1 | provider_model_record, credentials = self.custom_model_credentials_validate(model_type, model, credentials)
2025-03-07 23:34:37 api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-07 23:34:37 api-1 | File "/app/api/core/entities/provider_configuration.py", line 386, in custom_model_credentials_validate
2025-03-07 23:34:37 api-1 | credentials = model_provider_factory.model_credentials_validate(
2025-03-07 23:34:37 api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-07 23:34:37 api-1 | File "/app/api/core/model_runtime/model_providers/model_provider_factory.py", line 190, in model_credentials_validate
2025-03-07 23:34:37 api-1 | self.plugin_model_manager.validate_model_credentials(
2025-03-07 23:34:37 api-1 | File "/app/api/core/plugin/manager/model.py", line 137, in validate_model_credentials
2025-03-07 23:34:37 api-1 | for resp in response:
2025-03-07 23:34:37 api-1 | ^^^^^^^^
2025-03-07 23:34:37 api-1 | File "/app/api/core/plugin/manager/base.py", line 189, in _request_with_plugin_daemon_response_stream
2025-03-07 23:34:37 api-1 | self._handle_plugin_daemon_error(error.error_type, error.message)
2025-03-07 23:34:37 api-1 | File "/app/api/core/plugin/manager/base.py", line 223, in _handle_plugin_daemon_error
2025-03-07 23:34:37 api-1 | raise PluginDaemonInternalServerError(description=message)
2025-03-07 23:34:37 api-1 | core.plugin.manager.exc.PluginDaemonInternalServerError: PluginDaemonInternalServerError: killed by timeout

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @bebilli on GitHub (Mar 7, 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.0.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce ![Image](https://github.com/user-attachments/assets/ee78e724-8eb3-41e2-a05f-e5e70d638014) When configuring LocalAI, the button turns gray and there is no response after clicking "Save". The following is the error information: 2025-03-07 23:33:28 plugin_daemon-1 | 2025/03/07 15:33:28 factory.go:28: [ERROR]PluginDaemonInternalServerError: killed by timeout 2025-03-07 23:33:28 plugin_daemon-1 | goroutine 877 [running]: 2025-03-07 23:33:28 plugin_daemon-1 | runtime/debug.Stack() 2025-03-07 23:33:28 plugin_daemon-1 | /usr/local/go/src/runtime/debug/stack.go:24 +0x5e 2025-03-07 23:33:28 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/types/exception.InternalServerError({0x180b640, 0xc00078b200}) 2025-03-07 23:33:28 plugin_daemon-1 | /app/internal/types/exception/factory.go:27 +0x27 2025-03-07 23:33:28 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/service.baseSSEService[...](0xc000d170a0, 0x15f6c0d, 0xf0?) 2025-03-07 23:33:28 plugin_daemon-1 | /app/internal/service/base_sse.go:81 +0x4e6 2025-03-07 23:33:28 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/service.ValidateModelCredentials(0xc00026e640, 0xc0002ef200, 0xf0) 2025-03-07 23:33:28 plugin_daemon-1 | /app/internal/service/invoke_model.go:237 +0x198 2025-03-07 23:33:28 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.ValidateModelCredentials.func18.1({{{0xc0004b9ead, 0x24}, {0xc0006234d0, 0x7}}, {{0x0, 0x0}}, {0xc00024a4e0, 0x59}, 0x0, 0x0, ...}) 2025-03-07 23:33:28 plugin_daemon-1 | /app/internal/server/controllers/model.go:111 +0x91 2025-03-07 23:33:28 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...].func1() 2025-03-07 23:33:28 plugin_daemon-1 | /app/internal/server/controllers/base.go:53 +0xb5 2025-03-07 23:33:28 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindRequest[...](0xc0002ef200, 0xc000d17328) 2025-03-07 23:33:28 plugin_daemon-1 | /app/internal/server/controllers/base.go:31 +0x276 2025-03-07 23:33:28 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...](0x1603a20?, 0xa?) 2025-03-07 23:33:28 plugin_daemon-1 | /app/internal/server/controllers/base.go:37 +0x45 2025-03-07 23:33:28 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.ValidateModelCredentials.func18(0xc0002ef200) 2025-03-07 23:33:28 plugin_daemon-1 | /app/internal/server/controllers/model.go:108 +0x74 2025-03-07 23:33:28 plugin_daemon-1 | github.com/gin-gonic/gin.(*Context).Next(0xc0002ef200) 2025-03-07 23:33:28 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x2b 2025-03-07 23:33:28 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).InitClusterID.func3(0xc0002ef200) 2025-03-07 23:33:28 plugin_daemon-1 | /app/internal/server/middleware.go:170 +0x54 2025-03-07 23:33:28 plugin_daemon-1 | github.com/gin-gonic/gin.(*Context).Next(0xc0002ef200) 2025-03-07 23:33:28 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x2b 2025-03-07 23:33:28 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).RedirectPluginInvoke.func2(0xc0002ef200) 2025-03-07 23:33:28 plugin_daemon-1 | /app/internal/server/middleware.go:97 +0x74 2025-03-07 23:33:28 plugin_daemon-1 | github.com/gin-gonic/gin.(*Context).Next(0xc0002ef200) 2025-03-07 23:33:28 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x2b 2025-03-07 23:33:28 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).FetchPluginInstallation.func1(0xc0002ef200) 2025-03-07 23:33:28 plugin_daemon-1 | /app/internal/server/middleware.go:66 +0x2f2 2025-03-07 23:33:28 plugin_daemon-1 | github.com/gin-gonic/gin.(*Context).Next(0xc0002ef200) 2025-03-07 23:33:28 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x2b 2025-03-07 23:33:28 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginGroup.CheckingKey.func1(0xc0002ef200) 2025-03-07 23:33:28 plugin_daemon-1 | /app/internal/server/middleware.go:24 +0x95 2025-03-07 23:33:28 plugin_daemon-1 | github.com/gin-gonic/gin.(*Context).Next(...) 2025-03-07 23:33:28 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 2025-03-07 23:33:28 plugin_daemon-1 | github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1(0xc0002ef200) 2025-03-07 23:33:28 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102 +0x7a 2025-03-07 23:33:28 plugin_daemon-1 | github.com/gin-gonic/gin.(*Context).Next(...) 2025-03-07 23:33:28 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 2025-03-07 23:33:28 plugin_daemon-1 | github.com/gin-gonic/gin.LoggerWithConfig.func1(0xc0002ef200) 2025-03-07 23:33:28 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249 +0xe5 2025-03-07 23:33:28 plugin_daemon-1 | github.com/gin-gonic/gin.(*Context).Next(...) 2025-03-07 23:33:28 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 2025-03-07 23:33:28 plugin_daemon-1 | github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc000536680, 0xc0002ef200) 2025-03-07 23:33:28 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 +0x892 2025-03-07 23:33:28 plugin_daemon-1 | github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc000536680, {0x181dac0, 0xc0004c8700}, 0xc000876900) 2025-03-07 23:33:28 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 +0x1b2 2025-03-07 23:33:28 plugin_daemon-1 | net/http.serverHandler.ServeHTTP({0x1813868?}, {0x181dac0?, 0xc0004c8700?}, 0x6?) 2025-03-07 23:33:28 plugin_daemon-1 | /usr/local/go/src/net/http/server.go:3142 +0x8e 2025-03-07 23:33:28 plugin_daemon-1 | net/http.(*conn).serve(0xc0006ae900, {0x1820270, 0xc00055c450}) 2025-03-07 23:33:28 plugin_daemon-1 | /usr/local/go/src/net/http/server.go:2044 +0x5e8 2025-03-07 23:33:28 plugin_daemon-1 | created by net/http.(*Server).Serve in goroutine 67 2025-03-07 23:33:28 plugin_daemon-1 | /usr/local/go/src/net/http/server.go:3290 +0x4b4 2025-03-07 23:33:28 plugin_daemon-1 | 2025-03-07 23:33:28 plugin_daemon-1 | [GIN] 2025/03/07 - 15:33:28 | 200 | 4m0s | 172.18.0.7 | POST "/plugin/1a1c08ae-28c7-4f4d-ad2f-8eebe762465f/dispatch/model/validate_model_credentials" 2025-03-07 23:33:28 api-1 | 2025-03-07 15:33:28.785 ERROR [Dummy-15] [app.py:875] - Exception on /console/api/workspaces/current/model-providers/langgenius/localai/localai/models [POST] 2025-03-07 23:33:28 api-1 | Traceback (most recent call last): 2025-03-07 23:33:28 api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request 2025-03-07 23:33:28 api-1 | rv = self.dispatch_request() 2025-03-07 23:33:28 api-1 | ^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-07 23:33:28 api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request 2025-03-07 23:33:28 api-1 | return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return] 2025-03-07 23:33:28 api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-07 23:33:28 api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 489, in wrapper 2025-03-07 23:33:28 api-1 | resp = resource(*args, **kwargs) 2025-03-07 23:33:28 api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-07 23:33:28 api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask/views.py", line 110, in view 2025-03-07 23:33:28 api-1 | return current_app.ensure_sync(self.dispatch_request)(**kwargs) # type: ignore[no-any-return] 2025-03-07 23:33:28 api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-07 23:33:28 api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 604, in dispatch_request 2025-03-07 23:33:28 api-1 | resp = meth(*args, **kwargs) 2025-03-07 23:33:28 api-1 | ^^^^^^^^^^^^^^^^^^^^^ 2025-03-07 23:33:28 api-1 | File "/app/api/controllers/console/wraps.py", line 147, in decorated 2025-03-07 23:33:28 api-1 | return view(*args, **kwargs) 2025-03-07 23:33:28 api-1 | ^^^^^^^^^^^^^^^^^^^^^ 2025-03-07 23:33:28 api-1 | File "/app/api/libs/login.py", line 94, in decorated_view 2025-03-07 23:33:28 api-1 | return current_app.ensure_sync(func)(*args, **kwargs) 2025-03-07 23:33:28 api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-07 23:33:28 api-1 | File "/app/api/controllers/console/wraps.py", line 27, in decorated 2025-03-07 23:33:28 api-1 | return view(*args, **kwargs) 2025-03-07 23:33:28 api-1 | ^^^^^^^^^^^^^^^^^^^^^ 2025-03-07 23:33:28 api-1 | File "/app/api/controllers/console/workspace/models.py", line 154, in post 2025-03-07 23:33:28 api-1 | model_provider_service.save_model_credentials( 2025-03-07 23:33:28 api-1 | File "/app/api/services/model_provider_service.py", line 237, in save_model_credentials 2025-03-07 23:33:28 api-1 | provider_configuration.add_or_update_custom_model_credentials( 2025-03-07 23:33:28 api-1 | File "/app/api/core/entities/provider_configuration.py", line 406, in add_or_update_custom_model_credentials 2025-03-07 23:33:28 api-1 | provider_model_record, credentials = self.custom_model_credentials_validate(model_type, model, credentials) 2025-03-07 23:33:28 api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-07 23:33:28 api-1 | File "/app/api/core/entities/provider_configuration.py", line 386, in custom_model_credentials_validate 2025-03-07 23:33:28 api-1 | credentials = model_provider_factory.model_credentials_validate( 2025-03-07 23:33:28 api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-07 23:33:28 api-1 | File "/app/api/core/model_runtime/model_providers/model_provider_factory.py", line 190, in model_credentials_validate 2025-03-07 23:33:28 api-1 | self.plugin_model_manager.validate_model_credentials( 2025-03-07 23:33:28 api-1 | File "/app/api/core/plugin/manager/model.py", line 137, in validate_model_credentials 2025-03-07 23:33:28 api-1 | for resp in response: 2025-03-07 23:33:28 api-1 | ^^^^^^^^ 2025-03-07 23:33:28 api-1 | File "/app/api/core/plugin/manager/base.py", line 189, in _request_with_plugin_daemon_response_stream 2025-03-07 23:33:28 api-1 | self._handle_plugin_daemon_error(error.error_type, error.message) 2025-03-07 23:33:28 api-1 | File "/app/api/core/plugin/manager/base.py", line 223, in _handle_plugin_daemon_error 2025-03-07 23:33:28 api-1 | raise PluginDaemonInternalServerError(description=message) 2025-03-07 23:33:28 api-1 | core.plugin.manager.exc.PluginDaemonInternalServerError: PluginDaemonInternalServerError: killed by timeout 2025-03-07 23:33:30 plugin_daemon-1 | [GIN] 2025/03/07 - 15:33:30 | 200 | 382.992µs | 172.18.0.7 | GET "/plugin/1a1c08ae-28c7-4f4d-ad2f-8eebe762465f/management/install/tasks?page=1&page_size=100" 2025-03-07 23:33:30 nginx-1 | 172.18.0.1 - - [07/Mar/2025:15:33:30 +0000] "GET /console/api/workspaces/current/plugin/tasks?page=1&page_size=100 HTTP/1.1" 200 606 "http://localhost/app/8460bc31-d871-4205-b5ff-713dd1a5692c/configuration" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36" "-" 2025-03-07 23:33:35 plugin_daemon-1 | [GIN] 2025/03/07 - 15:33:35 | 200 | 265.34µs | 172.18.0.7 | GET "/plugin/1a1c08ae-28c7-4f4d-ad2f-8eebe762465f/management/install/tasks?page=1&page_size=100" 2025-03-07 23:33:35 nginx-1 | 172.18.0.1 - - [07/Mar/2025:15:33:35 +0000] "GET /console/api/workspaces/current/plugin/tasks?page=1&page_size=100 HTTP/1.1" 200 606 "http://localhost/app/8460bc31-d871-4205-b5ff-713dd1a5692c/configuration" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36" "-" 2025-03-07 23:33:40 plugin_daemon-1 | [GIN] 2025/03/07 - 15:33:40 | 200 | 314.397µs | 172.18.0.7 | GET "/plugin/1a1c08ae-28c7-4f4d-ad2f-8eebe762465f/management/install/tasks?page=1&page_size=100" 2025-03-07 23:33:40 nginx-1 | 172.18.0.1 - - [07/Mar/2025:15:33:40 +0000] "GET /console/api/workspaces/current/plugin/tasks?page=1&page_size=100 HTTP/1.1" 200 606 "http://localhost/app/8460bc31-d871-4205-b5ff-713dd1a5692c/configuration" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36" "-" 2025-03-07 23:33:45 plugin_daemon-1 | [GIN] 2025/03/07 - 15:33:45 | 200 | 311.677µs | 172.18.0.7 | GET "/plugin/1a1c08ae-28c7-4f4d-ad2f-8eebe762465f/management/install/tasks?page=1&page_size=100" 2025-03-07 23:33:45 nginx-1 | 172.18.0.1 - - [07/Mar/2025:15:33:45 +0000] "GET /console/api/workspaces/current/plugin/tasks?page=1&page_size=100 HTTP/1.1" 200 606 "http://localhost/app/8460bc31-d871-4205-b5ff-713dd1a5692c/configuration" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36" "-" 2025-03-07 23:33:48 sandbox-1 | [GIN] 2025/03/07 - 15:33:48 | 200 | 15.811µs | ::1 | GET "/health" 2025-03-07 23:33:50 plugin_daemon-1 | [GIN] 2025/03/07 - 15:33:50 | 200 | 407.369µs | 172.18.0.7 | GET "/plugin/1a1c08ae-28c7-4f4d-ad2f-8eebe762465f/management/install/tasks?page=1&page_size=100" 2025-03-07 23:33:50 nginx-1 | 172.18.0.1 - - [07/Mar/2025:15:33:50 +0000] "GET /console/api/workspaces/current/plugin/tasks?page=1&page_size=100 HTTP/1.1" 200 606 "http://localhost/app/8460bc31-d871-4205-b5ff-713dd1a5692c/configuration" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36" "-" 2025-03-07 23:33:55 plugin_daemon-1 | [GIN] 2025/03/07 - 15:33:55 | 200 | 380.602µs | 172.18.0.7 | GET "/plugin/1a1c08ae-28c7-4f4d-ad2f-8eebe762465f/management/install/tasks?page=1&page_size=100" 2025-03-07 23:33:55 nginx-1 | 172.18.0.1 - - [07/Mar/2025:15:33:55 +0000] "GET /console/api/workspaces/current/plugin/tasks?page=1&page_size=100 HTTP/1.1" 200 606 "http://localhost/app/8460bc31-d871-4205-b5ff-713dd1a5692c/configuration" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36" "-" 2025-03-07 23:34:00 plugin_daemon-1 | [GIN] 2025/03/07 - 15:34:00 | 200 | 442.436µs | 172.18.0.7 | GET "/plugin/1a1c08ae-28c7-4f4d-ad2f-8eebe762465f/management/install/tasks?page=1&page_size=100" 2025-03-07 23:34:00 nginx-1 | 172.18.0.1 - - [07/Mar/2025:15:34:00 +0000] "GET /console/api/workspaces/current/plugin/tasks?page=1&page_size=100 HTTP/1.1" 200 606 "http://localhost/app/8460bc31-d871-4205-b5ff-713dd1a5692c/configuration" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36" "-" 2025-03-07 23:34:05 plugin_daemon-1 | [GIN] 2025/03/07 - 15:34:05 | 200 | 300.62µs | 172.18.0.7 | GET "/plugin/1a1c08ae-28c7-4f4d-ad2f-8eebe762465f/management/install/tasks?page=1&page_size=100" 2025-03-07 23:34:05 nginx-1 | 172.18.0.1 - - [07/Mar/2025:15:34:05 +0000] "GET /console/api/workspaces/current/plugin/tasks?page=1&page_size=100 HTTP/1.1" 200 606 "http://localhost/app/8460bc31-d871-4205-b5ff-713dd1a5692c/configuration" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36" "-" 2025-03-07 23:34:10 plugin_daemon-1 | [GIN] 2025/03/07 - 15:34:10 | 200 | 366.109µs | 172.18.0.7 | GET "/plugin/1a1c08ae-28c7-4f4d-ad2f-8eebe762465f/management/install/tasks?page=1&page_size=100" 2025-03-07 23:34:10 nginx-1 | 172.18.0.1 - - [07/Mar/2025:15:34:10 +0000] "GET /console/api/workspaces/current/plugin/tasks?page=1&page_size=100 HTTP/1.1" 200 606 "http://localhost/app/8460bc31-d871-4205-b5ff-713dd1a5692c/configuration" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36" "-" 2025-03-07 23:34:15 plugin_daemon-1 | [GIN] 2025/03/07 - 15:34:15 | 200 | 360.24µs | 172.18.0.7 | GET "/plugin/1a1c08ae-28c7-4f4d-ad2f-8eebe762465f/management/install/tasks?page=1&page_size=100" 2025-03-07 23:34:15 nginx-1 | 172.18.0.1 - - [07/Mar/2025:15:34:15 +0000] "GET /console/api/workspaces/current/plugin/tasks?page=1&page_size=100 HTTP/1.1" 200 606 "http://localhost/app/8460bc31-d871-4205-b5ff-713dd1a5692c/configuration" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36" "-" 2025-03-07 23:34:18 sandbox-1 | [GIN] 2025/03/07 - 15:34:18 | 200 | 13.424µs | ::1 | GET "/health" 2025-03-07 23:34:20 plugin_daemon-1 | [GIN] 2025/03/07 - 15:34:20 | 200 | 334.471µs | 172.18.0.7 | GET "/plugin/1a1c08ae-28c7-4f4d-ad2f-8eebe762465f/management/install/tasks?page=1&page_size=100" 2025-03-07 23:34:20 nginx-1 | 172.18.0.1 - - [07/Mar/2025:15:34:20 +0000] "GET /console/api/workspaces/current/plugin/tasks?page=1&page_size=100 HTTP/1.1" 200 606 "http://localhost/app/8460bc31-d871-4205-b5ff-713dd1a5692c/configuration" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36" "-" 2025-03-07 23:34:25 plugin_daemon-1 | [GIN] 2025/03/07 - 15:34:25 | 200 | 285.419µs | 172.18.0.7 | GET "/plugin/1a1c08ae-28c7-4f4d-ad2f-8eebe762465f/management/install/tasks?page=1&page_size=100" 2025-03-07 23:34:25 nginx-1 | 172.18.0.1 - - [07/Mar/2025:15:34:25 +0000] "GET /console/api/workspaces/current/plugin/tasks?page=1&page_size=100 HTTP/1.1" 200 606 "http://localhost/app/8460bc31-d871-4205-b5ff-713dd1a5692c/configuration" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36" "-" 2025-03-07 23:34:30 plugin_daemon-1 | [GIN] 2025/03/07 - 15:34:30 | 200 | 296.407µs | 172.18.0.7 | GET "/plugin/1a1c08ae-28c7-4f4d-ad2f-8eebe762465f/management/install/tasks?page=1&page_size=100" 2025-03-07 23:34:30 nginx-1 | 172.18.0.1 - - [07/Mar/2025:15:34:30 +0000] "GET /console/api/workspaces/current/plugin/tasks?page=1&page_size=100 HTTP/1.1" 200 606 "http://localhost/app/8460bc31-d871-4205-b5ff-713dd1a5692c/configuration" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36" "-" 2025-03-07 23:34:35 plugin_daemon-1 | [GIN] 2025/03/07 - 15:34:35 | 200 | 317.432µs | 172.18.0.7 | GET "/plugin/1a1c08ae-28c7-4f4d-ad2f-8eebe762465f/management/install/tasks?page=1&page_size=100" 2025-03-07 23:34:35 nginx-1 | 172.18.0.1 - - [07/Mar/2025:15:34:35 +0000] "GET /console/api/workspaces/current/plugin/tasks?page=1&page_size=100 HTTP/1.1" 200 606 "http://localhost/app/8460bc31-d871-4205-b5ff-713dd1a5692c/configuration" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36" "-" 2025-03-07 23:34:37 plugin_daemon-1 | 2025/03/07 15:34:37 factory.go:28: [ERROR]PluginDaemonInternalServerError: killed by timeout 2025-03-07 23:34:37 plugin_daemon-1 | goroutine 904 [running]: 2025-03-07 23:34:37 plugin_daemon-1 | runtime/debug.Stack() 2025-03-07 23:34:37 plugin_daemon-1 | /usr/local/go/src/runtime/debug/stack.go:24 +0x5e 2025-03-07 23:34:37 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/types/exception.InternalServerError({0x180b640, 0xc000685e80}) 2025-03-07 23:34:37 plugin_daemon-1 | /app/internal/types/exception/factory.go:27 +0x27 2025-03-07 23:34:37 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/service.baseSSEService[...](0xc0001ad0a0, 0x15f6c0d, 0xf0?) 2025-03-07 23:34:37 plugin_daemon-1 | /app/internal/service/base_sse.go:81 +0x4e6 2025-03-07 23:34:37 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/service.ValidateModelCredentials(0xc000292640, 0xc0001b7400, 0xf0) 2025-03-07 23:34:37 plugin_daemon-1 | /app/internal/service/invoke_model.go:237 +0x198 2025-03-07 23:34:37 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.ValidateModelCredentials.func18.1({{{0xc0003189ad, 0x24}, {0xc000a5b930, 0x7}}, {{0x0, 0x0}}, {0xc000312ae0, 0x59}, 0x0, 0x0, ...}) 2025-03-07 23:34:37 plugin_daemon-1 | /app/internal/server/controllers/model.go:111 +0x91 2025-03-07 23:34:37 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...].func1() 2025-03-07 23:34:37 plugin_daemon-1 | /app/internal/server/controllers/base.go:53 +0xb5 2025-03-07 23:34:37 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindRequest[...](0xc0001b7400, 0xc0001ad328) 2025-03-07 23:34:37 plugin_daemon-1 | /app/internal/server/controllers/base.go:31 +0x276 2025-03-07 23:34:37 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...](0x1603a20?, 0xa?) 2025-03-07 23:34:37 plugin_daemon-1 | /app/internal/server/controllers/base.go:37 +0x45 2025-03-07 23:34:37 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.ValidateModelCredentials.func18(0xc0001b7400) 2025-03-07 23:34:37 plugin_daemon-1 | /app/internal/server/controllers/model.go:108 +0x74 2025-03-07 23:34:37 plugin_daemon-1 | github.com/gin-gonic/gin.(*Context).Next(0xc0001b7400) 2025-03-07 23:34:37 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x2b 2025-03-07 23:34:37 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).InitClusterID.func3(0xc0001b7400) 2025-03-07 23:34:37 plugin_daemon-1 | /app/internal/server/middleware.go:170 +0x54 2025-03-07 23:34:37 plugin_daemon-1 | github.com/gin-gonic/gin.(*Context).Next(0xc0001b7400) 2025-03-07 23:34:37 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x2b 2025-03-07 23:34:37 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).RedirectPluginInvoke.func2(0xc0001b7400) 2025-03-07 23:34:37 plugin_daemon-1 | /app/internal/server/middleware.go:97 +0x74 2025-03-07 23:34:37 plugin_daemon-1 | github.com/gin-gonic/gin.(*Context).Next(0xc0001b7400) 2025-03-07 23:34:37 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x2b 2025-03-07 23:34:37 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).FetchPluginInstallation.func1(0xc0001b7400) 2025-03-07 23:34:37 plugin_daemon-1 | /app/internal/server/middleware.go:66 +0x2f2 2025-03-07 23:34:37 plugin_daemon-1 | github.com/gin-gonic/gin.(*Context).Next(0xc0001b7400) 2025-03-07 23:34:37 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x2b 2025-03-07 23:34:37 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginGroup.CheckingKey.func1(0xc0001b7400) 2025-03-07 23:34:37 plugin_daemon-1 | /app/internal/server/middleware.go:24 +0x95 2025-03-07 23:34:37 plugin_daemon-1 | github.com/gin-gonic/gin.(*Context).Next(...) 2025-03-07 23:34:37 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 2025-03-07 23:34:37 plugin_daemon-1 | github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1(0xc0001b7400) 2025-03-07 23:34:37 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102 +0x7a 2025-03-07 23:34:37 plugin_daemon-1 | github.com/gin-gonic/gin.(*Context).Next(...) 2025-03-07 23:34:37 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 2025-03-07 23:34:37 plugin_daemon-1 | github.com/gin-gonic/gin.LoggerWithConfig.func1(0xc0001b7400) 2025-03-07 23:34:37 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249 +0xe5 2025-03-07 23:34:37 plugin_daemon-1 | github.com/gin-gonic/gin.(*Context).Next(...) 2025-03-07 23:34:37 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 2025-03-07 23:34:37 plugin_daemon-1 | github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc000536680, 0xc0001b7400) 2025-03-07 23:34:37 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 +0x892 2025-03-07 23:34:37 plugin_daemon-1 | github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc000536680, {0x181dac0, 0xc00072cd20}, 0xc000678900) 2025-03-07 23:34:37 plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 +0x1b2 2025-03-07 23:34:37 plugin_daemon-1 | net/http.serverHandler.ServeHTTP({0x1813868?}, {0x181dac0?, 0xc00072cd20?}, 0x6?) 2025-03-07 23:34:37 plugin_daemon-1 | /usr/local/go/src/net/http/server.go:3142 +0x8e 2025-03-07 23:34:37 plugin_daemon-1 | net/http.(*conn).serve(0xc000538750, {0x1820270, 0xc00055c450}) 2025-03-07 23:34:37 plugin_daemon-1 | /usr/local/go/src/net/http/server.go:2044 +0x5e8 2025-03-07 23:34:37 plugin_daemon-1 | created by net/http.(*Server).Serve in goroutine 67 2025-03-07 23:34:37 plugin_daemon-1 | /usr/local/go/src/net/http/server.go:3290 +0x4b4 2025-03-07 23:34:37 plugin_daemon-1 | 2025-03-07 23:34:37 plugin_daemon-1 | [GIN] 2025/03/07 - 15:34:37 | 200 | 4m0s | 172.18.0.7 | POST "/plugin/1a1c08ae-28c7-4f4d-ad2f-8eebe762465f/dispatch/model/validate_model_credentials" 2025-03-07 23:34:37 api-1 | 2025-03-07 15:34:37.602 ERROR [Dummy-16] [app.py:875] - Exception on /console/api/workspaces/current/model-providers/langgenius/localai/localai/models [POST] 2025-03-07 23:34:37 api-1 | Traceback (most recent call last): 2025-03-07 23:34:37 api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request 2025-03-07 23:34:37 api-1 | rv = self.dispatch_request() 2025-03-07 23:34:37 api-1 | ^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-07 23:34:37 api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request 2025-03-07 23:34:37 api-1 | return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return] 2025-03-07 23:34:37 api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-07 23:34:37 api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 489, in wrapper 2025-03-07 23:34:37 api-1 | resp = resource(*args, **kwargs) 2025-03-07 23:34:37 api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-07 23:34:37 api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask/views.py", line 110, in view 2025-03-07 23:34:37 api-1 | return current_app.ensure_sync(self.dispatch_request)(**kwargs) # type: ignore[no-any-return] 2025-03-07 23:34:37 api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-07 23:34:37 api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 604, in dispatch_request 2025-03-07 23:34:37 api-1 | resp = meth(*args, **kwargs) 2025-03-07 23:34:37 api-1 | ^^^^^^^^^^^^^^^^^^^^^ 2025-03-07 23:34:37 api-1 | File "/app/api/controllers/console/wraps.py", line 147, in decorated 2025-03-07 23:34:37 api-1 | return view(*args, **kwargs) 2025-03-07 23:34:37 api-1 | ^^^^^^^^^^^^^^^^^^^^^ 2025-03-07 23:34:37 api-1 | File "/app/api/libs/login.py", line 94, in decorated_view 2025-03-07 23:34:37 api-1 | return current_app.ensure_sync(func)(*args, **kwargs) 2025-03-07 23:34:37 api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-07 23:34:37 api-1 | File "/app/api/controllers/console/wraps.py", line 27, in decorated 2025-03-07 23:34:37 api-1 | return view(*args, **kwargs) 2025-03-07 23:34:37 api-1 | ^^^^^^^^^^^^^^^^^^^^^ 2025-03-07 23:34:37 api-1 | File "/app/api/controllers/console/workspace/models.py", line 154, in post 2025-03-07 23:34:37 api-1 | model_provider_service.save_model_credentials( 2025-03-07 23:34:37 api-1 | File "/app/api/services/model_provider_service.py", line 237, in save_model_credentials 2025-03-07 23:34:37 api-1 | provider_configuration.add_or_update_custom_model_credentials( 2025-03-07 23:34:37 api-1 | File "/app/api/core/entities/provider_configuration.py", line 406, in add_or_update_custom_model_credentials 2025-03-07 23:34:37 api-1 | provider_model_record, credentials = self.custom_model_credentials_validate(model_type, model, credentials) 2025-03-07 23:34:37 api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-07 23:34:37 api-1 | File "/app/api/core/entities/provider_configuration.py", line 386, in custom_model_credentials_validate 2025-03-07 23:34:37 api-1 | credentials = model_provider_factory.model_credentials_validate( 2025-03-07 23:34:37 api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-07 23:34:37 api-1 | File "/app/api/core/model_runtime/model_providers/model_provider_factory.py", line 190, in model_credentials_validate 2025-03-07 23:34:37 api-1 | self.plugin_model_manager.validate_model_credentials( 2025-03-07 23:34:37 api-1 | File "/app/api/core/plugin/manager/model.py", line 137, in validate_model_credentials 2025-03-07 23:34:37 api-1 | for resp in response: 2025-03-07 23:34:37 api-1 | ^^^^^^^^ 2025-03-07 23:34:37 api-1 | File "/app/api/core/plugin/manager/base.py", line 189, in _request_with_plugin_daemon_response_stream 2025-03-07 23:34:37 api-1 | self._handle_plugin_daemon_error(error.error_type, error.message) 2025-03-07 23:34:37 api-1 | File "/app/api/core/plugin/manager/base.py", line 223, in _handle_plugin_daemon_error 2025-03-07 23:34:37 api-1 | raise PluginDaemonInternalServerError(description=message) 2025-03-07 23:34:37 api-1 | core.plugin.manager.exc.PluginDaemonInternalServerError: PluginDaemonInternalServerError: killed by timeout ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 18:39:46 -05:00
yindo closed this issue 2026-02-21 18:39:46 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#9853