mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
After upgrading to v1.8.0, Ollama model settings cannot be edited #602
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gakugaku on GitHub (Aug 29, 2025).
Self Checks
Dify version
1.8.0
Plugin version
0.0.7
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
API_KEY1).Credential with id xxxxx not found.Note
✔️ Error log
No related logs were recorded during the error in the following containers
docker container logs aitool_develop-dify-api-1docker container logs aitool_develop-dify-web-1docker container logs aitool_develop-dify-db-1@dosubot[bot] commented on GitHub (Aug 29, 2025):
This issue is caused by breaking changes in Dify v1.8.0's credential management. The upgrade introduced new tables (
provider_credentials,provider_model_credentials) and migration scripts that move credential data and assign new credential IDs. If the migration was incomplete or references are broken, migrated Ollama models may reference credential IDs that no longer exist, resulting in the "Credential with id xxxxx not found" error and missing form fields like Base URL, context size, and max tokens. Newly created models work because their credentials are correctly registered in the new tables.To fix this, you’ll need to manually inspect your database and ensure that each migrated Ollama model’s
credential_idin theprovider_modelstable matches a valid entry inprovider_model_credentials. If not, you can create a new credential entry and update the reference. Also, make sure all required fields are present in the credential record. This will restore the edit functionality for migrated models. For details on the migration scripts and schema changes, see PR #24451 and PR #24545.If you need a step-by-step SQL outline for this fix, let me know your database type and I can help draft it.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
