add Ollama model no response #503

Closed
opened 2026-02-16 10:19:35 -05:00 by yindo · 4 comments
Owner

Originally created by @Watson-kubernetes on GitHub (Jul 31, 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 Dify issues & Dify Official Plugins, 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

main

Plugin version

i hava no idea the version of Ollama

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

I deployed the dify in docker-compose ,and i also deployed Ollama in docker. but i can not add model address by "http://192.168.153.109:11434/";
i do not think this is a network problem ,because i can get the Ollama resonse in nginx contain that is the docker-compose service. and i can also get the response in chrome . The web show me "修改成功" but there is not any model in web

Image Image Image Image

✔️ Error log

No response

Originally created by @Watson-kubernetes on GitHub (Jul 31, 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 [Dify issues](https://github.com/langgenius/dify/issues) & [Dify Official Plugins](https://github.com/langgenius/dify-official-plugins/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 main ### Plugin version i hava no idea the version of Ollama ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce I deployed the dify in docker-compose ,and i also deployed Ollama in docker. but i can not add model address by "http://192.168.153.109:11434/"; i do not think this is a network problem ,because i can get the Ollama resonse in nginx contain that is the docker-compose service. and i can also get the response in chrome . The web show me "修改成功" but there is not any model in web <img width="851" height="388" alt="Image" src="https://github.com/user-attachments/assets/ac2a2ce7-13b9-48c8-af2e-a014492dd68e" /> <img width="577" height="159" alt="Image" src="https://github.com/user-attachments/assets/2f9f5691-e263-4610-88d0-e794acf37f18" /> <img width="1165" height="233" alt="Image" src="https://github.com/user-attachments/assets/80e93711-cb9f-4e95-9c0e-438e99fcf1fe" /> <img width="1380" height="299" alt="Image" src="https://github.com/user-attachments/assets/94ae768d-faf2-4ef3-83d3-61a69e4f800e" /> ### ✔️ Error log _No response_
yindo added the bug label 2026-02-16 10:19:35 -05:00
yindo closed this issue 2026-02-16 10:19:35 -05:00
Author
Owner

@Watson-kubernetes commented on GitHub (Jul 31, 2025):

2025-07-31 15:00:18.372 ERROR [Dummy-3] [app.py:875] - Exception on /console/api/workspaces/current/model-providers/langgenius/ollama/ollama/models [POST]
Traceback (most recent call last):
File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 489, in wrapper
resp = resource(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/api/.venv/lib/python3.12/site-packages/flask/views.py", line 110, in view
return current_app.ensure_sync(self.dispatch_request)(**kwargs) # type: ignore[no-any-return]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 604, in dispatch_request
resp = meth(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/app/api/controllers/console/wraps.py", line 210, in decorated
return view(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/app/api/libs/login.py", line 61, in decorated_view
return current_app.ensure_sync(func)(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/api/controllers/console/wraps.py", line 31, in decorated
return view(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/app/api/controllers/console/workspace/models.py", line 155, in post
model_provider_service.save_model_credentials(
File "/app/api/services/model_provider_service.py", line 237, in save_model_credentials
provider_configuration.add_or_update_custom_model_credentials(
File "/app/api/core/entities/provider_configuration.py", line 422, in add_or_update_custom_model_credentials
provider_model_record, credentials = self.custom_model_credentials_validate(model_type, model, credentials)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/api/core/entities/provider_configuration.py", line 402, in custom_model_credentials_validate
credentials = model_provider_factory.model_credentials_validate(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/api/core/model_runtime/model_providers/model_provider_factory.py", line 191, in model_credentials_validate
self.plugin_model_manager.validate_model_credentials(
File "/app/api/core/plugin/impl/model.py", line 137, in validate_model_credentials
for resp in response:
^^^^^^^^
File "/app/api/core/plugin/impl/base.py", line 211, in _request_with_plugin_daemon_response_stream
self._handle_plugin_daemon_error(error.error_type, error.message)
File "/app/api/core/plugin/impl/base.py", line 247, in _handle_plugin_daemon_error
raise PluginDaemonInternalServerError(description=message)

@Watson-kubernetes commented on GitHub (Jul 31, 2025): 2025-07-31 15:00:18.372 ERROR [Dummy-3] [app.py:875] - Exception on /console/api/workspaces/current/model-providers/langgenius/ollama/ollama/models [POST] Traceback (most recent call last): File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request rv = self.dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 489, in wrapper resp = resource(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/flask/views.py", line 110, in view return current_app.ensure_sync(self.dispatch_request)(**kwargs) # type: ignore[no-any-return] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 604, in dispatch_request resp = meth(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/app/api/controllers/console/wraps.py", line 210, in decorated return view(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/app/api/libs/login.py", line 61, in decorated_view return current_app.ensure_sync(func)(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/controllers/console/wraps.py", line 31, in decorated return view(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/app/api/controllers/console/workspace/models.py", line 155, in post model_provider_service.save_model_credentials( File "/app/api/services/model_provider_service.py", line 237, in save_model_credentials provider_configuration.add_or_update_custom_model_credentials( File "/app/api/core/entities/provider_configuration.py", line 422, in add_or_update_custom_model_credentials provider_model_record, credentials = self.custom_model_credentials_validate(model_type, model, credentials) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/core/entities/provider_configuration.py", line 402, in custom_model_credentials_validate credentials = model_provider_factory.model_credentials_validate( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/core/model_runtime/model_providers/model_provider_factory.py", line 191, in model_credentials_validate self.plugin_model_manager.validate_model_credentials( File "/app/api/core/plugin/impl/model.py", line 137, in validate_model_credentials for resp in response: ^^^^^^^^ File "/app/api/core/plugin/impl/base.py", line 211, in _request_with_plugin_daemon_response_stream self._handle_plugin_daemon_error(error.error_type, error.message) File "/app/api/core/plugin/impl/base.py", line 247, in _handle_plugin_daemon_error raise PluginDaemonInternalServerError(description=message)
Author
Owner

@dosubot[bot] commented on GitHub (Aug 19, 2025):

Hi, @Watson-kubernetes. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.

Issue Summary:

  • You deployed Dify and Ollama in Docker and attempted to add the Ollama model via a local address.
  • The UI indicates a successful connection, but no models appear in the Dify web UI.
  • You confirmed that network connectivity is not the problem.
  • Logs show a PluginDaemonInternalServerError during model credential validation, pointing to an internal server error in the plugin daemon.
  • The issue remains unresolved with no further updates or troubleshooting steps provided.

Next Steps:

  • Please let me know if this issue is still relevant with the latest version of dify-official-plugins by commenting here to keep the discussion open.
  • If I do not hear back within 5 days, I will automatically close this issue.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Aug 19, 2025): Hi, @Watson-kubernetes. I'm [Dosu](https://dosu.dev), and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale. **Issue Summary:** - You deployed Dify and Ollama in Docker and attempted to add the Ollama model via a local address. - The UI indicates a successful connection, but no models appear in the Dify web UI. - You confirmed that network connectivity is not the problem. - Logs show a PluginDaemonInternalServerError during model credential validation, pointing to an internal server error in the plugin daemon. - The issue remains unresolved with no further updates or troubleshooting steps provided. **Next Steps:** - Please let me know if this issue is still relevant with the latest version of dify-official-plugins by commenting here to keep the discussion open. - If I do not hear back within 5 days, I will automatically close this issue. Thank you for your understanding and contribution!
Author
Owner

@Watson-kubernetes commented on GitHub (Aug 24, 2025):

I can get the Ollama when I restarted the docker service,

@Watson-kubernetes commented on GitHub (Aug 24, 2025): I can get the Ollama when I restarted the docker service,
Author
Owner

@dosubot[bot] commented on GitHub (Aug 24, 2025):

Thank you, Watson-kubernetes, for closing this issue and helping keep the repository organized!

@dosubot[bot] commented on GitHub (Aug 24, 2025): Thank you, Watson-kubernetes, for closing this issue and helping keep the repository organized!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#503