1.0.1 ollama add model fail #10450

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

Originally created by @wang1784594241 on GitHub (Mar 11, 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.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image

✔️ Expected Behavior

add success

Actual Behavior

{"message": "Internal Server Error", "code": "unknown"}
2025-03-12 10:12:09 2025-03-12 02:12:09.152 ERROR [Dummy-39] [app.py:875] - Exception on /console/api/workspaces/current/model-providers/langgenius/ollama/ollama/models [POST] 2025-03-12 10:12:09 Traceback (most recent call last): 2025-03-12 10:12:09 File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request 2025-03-12 10:12:09 rv = self.dispatch_request() 2025-03-12 10:12:09 ^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-12 10:12:09 File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request 2025-03-12 10:12:09 return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return] 2025-03-12 10:12:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-12 10:12:09 File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 489, in wrapper 2025-03-12 10:12:09 resp = resource(*args, **kwargs) 2025-03-12 10:12:09 ^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-12 10:12:09 File "/app/api/.venv/lib/python3.12/site-packages/flask/views.py", line 110, in view 2025-03-12 10:12:09 return current_app.ensure_sync(self.dispatch_request)(**kwargs) # type: ignore[no-any-return] 2025-03-12 10:12:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-12 10:12:09 File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 604, in dispatch_request 2025-03-12 10:12:09 resp = meth(*args, **kwargs) 2025-03-12 10:12:09 ^^^^^^^^^^^^^^^^^^^^^ 2025-03-12 10:12:09 File "/app/api/controllers/console/wraps.py", line 187, in decorated 2025-03-12 10:12:09 return view(*args, **kwargs) 2025-03-12 10:12:09 ^^^^^^^^^^^^^^^^^^^^^ 2025-03-12 10:12:09 File "/app/api/libs/login.py", line 94, in decorated_view 2025-03-12 10:12:09 return current_app.ensure_sync(func)(*args, **kwargs) 2025-03-12 10:12:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-12 10:12:09 File "/app/api/controllers/console/wraps.py", line 30, in decorated 2025-03-12 10:12:09 return view(*args, **kwargs) 2025-03-12 10:12:09 ^^^^^^^^^^^^^^^^^^^^^ 2025-03-12 10:12:09 File "/app/api/controllers/console/workspace/models.py", line 154, in post 2025-03-12 10:12:09 model_provider_service.save_model_credentials( 2025-03-12 10:12:09 File "/app/api/services/model_provider_service.py", line 237, in save_model_credentials 2025-03-12 10:12:09 provider_configuration.add_or_update_custom_model_credentials( 2025-03-12 10:12:09 File "/app/api/core/entities/provider_configuration.py", line 422, in add_or_update_custom_model_credentials 2025-03-12 10:12:09 provider_model_record, credentials = self.custom_model_credentials_validate(model_type, model, credentials) 2025-03-12 10:12:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-12 10:12:09 File "/app/api/core/entities/provider_configuration.py", line 402, in custom_model_credentials_validate 2025-03-12 10:12:09 credentials = model_provider_factory.model_credentials_validate( 2025-03-12 10:12:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-12 10:12:09 File "/app/api/core/model_runtime/model_providers/model_provider_factory.py", line 191, in model_credentials_validate 2025-03-12 10:12:09 self.plugin_model_manager.validate_model_credentials( 2025-03-12 10:12:09 File "/app/api/core/plugin/manager/model.py", line 137, in validate_model_credentials 2025-03-12 10:12:09 for resp in response: 2025-03-12 10:12:09 ^^^^^^^^ 2025-03-12 10:12:09 File "/app/api/core/plugin/manager/base.py", line 189, in _request_with_plugin_daemon_response_stream 2025-03-12 10:12:09 self._handle_plugin_daemon_error(error.error_type, error.message) 2025-03-12 10:12:09 File "/app/api/core/plugin/manager/base.py", line 223, in _handle_plugin_daemon_error 2025-03-12 10:12:09 raise PluginDaemonInternalServerError(description=message) 2025-03-12 10:12:09 core.plugin.manager.exc.PluginDaemonInternalServerError: PluginDaemonInternalServerError: no available node, plugin not found

Originally created by @wang1784594241 on GitHub (Mar 11, 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.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce <img width="470" alt="Image" src="https://github.com/user-attachments/assets/ca5e2704-10c9-491b-bf26-5a7d00b6d1f2" /> ### ✔️ Expected Behavior add success ### ❌ Actual Behavior `{"message": "Internal Server Error", "code": "unknown"}` `2025-03-12 10:12:09 2025-03-12 02:12:09.152 ERROR [Dummy-39] [app.py:875] - Exception on /console/api/workspaces/current/model-providers/langgenius/ollama/ollama/models [POST] 2025-03-12 10:12:09 Traceback (most recent call last): 2025-03-12 10:12:09 File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request 2025-03-12 10:12:09 rv = self.dispatch_request() 2025-03-12 10:12:09 ^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-12 10:12:09 File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request 2025-03-12 10:12:09 return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return] 2025-03-12 10:12:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-12 10:12:09 File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 489, in wrapper 2025-03-12 10:12:09 resp = resource(*args, **kwargs) 2025-03-12 10:12:09 ^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-12 10:12:09 File "/app/api/.venv/lib/python3.12/site-packages/flask/views.py", line 110, in view 2025-03-12 10:12:09 return current_app.ensure_sync(self.dispatch_request)(**kwargs) # type: ignore[no-any-return] 2025-03-12 10:12:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-12 10:12:09 File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 604, in dispatch_request 2025-03-12 10:12:09 resp = meth(*args, **kwargs) 2025-03-12 10:12:09 ^^^^^^^^^^^^^^^^^^^^^ 2025-03-12 10:12:09 File "/app/api/controllers/console/wraps.py", line 187, in decorated 2025-03-12 10:12:09 return view(*args, **kwargs) 2025-03-12 10:12:09 ^^^^^^^^^^^^^^^^^^^^^ 2025-03-12 10:12:09 File "/app/api/libs/login.py", line 94, in decorated_view 2025-03-12 10:12:09 return current_app.ensure_sync(func)(*args, **kwargs) 2025-03-12 10:12:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-12 10:12:09 File "/app/api/controllers/console/wraps.py", line 30, in decorated 2025-03-12 10:12:09 return view(*args, **kwargs) 2025-03-12 10:12:09 ^^^^^^^^^^^^^^^^^^^^^ 2025-03-12 10:12:09 File "/app/api/controllers/console/workspace/models.py", line 154, in post 2025-03-12 10:12:09 model_provider_service.save_model_credentials( 2025-03-12 10:12:09 File "/app/api/services/model_provider_service.py", line 237, in save_model_credentials 2025-03-12 10:12:09 provider_configuration.add_or_update_custom_model_credentials( 2025-03-12 10:12:09 File "/app/api/core/entities/provider_configuration.py", line 422, in add_or_update_custom_model_credentials 2025-03-12 10:12:09 provider_model_record, credentials = self.custom_model_credentials_validate(model_type, model, credentials) 2025-03-12 10:12:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-12 10:12:09 File "/app/api/core/entities/provider_configuration.py", line 402, in custom_model_credentials_validate 2025-03-12 10:12:09 credentials = model_provider_factory.model_credentials_validate( 2025-03-12 10:12:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-12 10:12:09 File "/app/api/core/model_runtime/model_providers/model_provider_factory.py", line 191, in model_credentials_validate 2025-03-12 10:12:09 self.plugin_model_manager.validate_model_credentials( 2025-03-12 10:12:09 File "/app/api/core/plugin/manager/model.py", line 137, in validate_model_credentials 2025-03-12 10:12:09 for resp in response: 2025-03-12 10:12:09 ^^^^^^^^ 2025-03-12 10:12:09 File "/app/api/core/plugin/manager/base.py", line 189, in _request_with_plugin_daemon_response_stream 2025-03-12 10:12:09 self._handle_plugin_daemon_error(error.error_type, error.message) 2025-03-12 10:12:09 File "/app/api/core/plugin/manager/base.py", line 223, in _handle_plugin_daemon_error 2025-03-12 10:12:09 raise PluginDaemonInternalServerError(description=message) 2025-03-12 10:12:09 core.plugin.manager.exc.PluginDaemonInternalServerError: PluginDaemonInternalServerError: no available node, plugin not found `
yindo closed this issue 2026-02-21 18:47:03 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#10450