Skip to content

Update 1.17.0 model is not usable #41294

Closed

Description

@xtiqny

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • 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, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.17.0

Cloud or Self Hosted

Self Hosted (Source), Self Hosted (Docker)

Steps to reproduce

After installing the Dify 1.17.0 version, the model plugins in the integration management are unusable. The models cannot be loaded and the default models cannot be configured.

✔️ Expected Behavior

Model plugin, model loaded normally

Image

❌ Actual Behavior

After installing the Dify 1.17.0 version, the model plugins in the integration management are unusable. The models cannot be loaded and the default models cannot be configured.

Activity

  1. dosubot commented on Aug 26, 2026

    @dosubot

    @xtiqny This is most likely a plugin daemon version mismatch. The Dify 1.17.0 API calls category-specific plugin daemon endpoints (e.g. management/model/list, management/models/bindings) that don't exist in older daemon images. When the daemon returns 404 for those routes, the model provider page fails to load entirely. This same issue was reported and confirmed for 1.16.1 in #40683.

    The correct plugin daemon image for 1.17.0 is langgenius/dify-plugin-daemon:0.6.10-local [1]. This was bumped from 0.6.3-local specifically because the API now requires daemon endpoints that older images don't support.

    Steps to fix (Docker deployment):

    1. Check your current daemon version:

      docker compose images plugin_daemon
    2. If it's not 0.6.10-local, update your docker-compose.yaml:

      image: langgenius/dify-plugin-daemon:0.6.10-local

      Then pull and restart:

      docker compose pull plugin_daemon
      docker compose up -d plugin_daemon
    3. If the daemon is already at 0.6.10-local, clear stale Redis plugin state — this resolves "no available node, plugin runtime not found" errors [2]:

      docker compose down
      docker compose up redis -d
      docker compose exec redis redis-cli FLUSHALL
      docker compose up -d

      Then wait ~60 seconds for all plugins to finish initializing before opening the model provider page.

    4. Also verify that PLUGIN_DAEMON_KEY and PLUGIN_DIFY_INNER_API_KEY match between the api and plugin_daemon containers — mismatched keys can produce similar symptoms [3]:

      docker compose exec api env | grep -E "PLUGIN_DAEMON_KEY|PLUGIN_DIFY_INNER_API"
      docker compose exec plugin_daemon env | grep -E "PLUGIN_DAEMON_KEY|PLUGIN_DIFY_INNER_API"

    For source installs, make sure you're running the plugin daemon binary that matches the 1.17.0 release rather than a previously installed version.

    Could you share the output of docker compose images plugin_daemon and any relevant errors from docker compose logs api 2>&1 | grep -i "plugin\|404\|error" | tail -30? That would help confirm the exact cause.

    To reply, just mention @dosu.


    Docs are dead. Just use Dosu.

    Leave Feedback Ask Dosu about dify

  2. whoareme12322 commented on Aug 26, 2026

    @whoareme12322
    :~/dify-1.17/docker# docker compose images plugin_daemon
    CONTAINER                REPOSITORY                      TAG                 PLATFORM            IMAGE ID            SIZE                CREATED
    docker-plugin_daemon-1   langgenius/dify-plugin-daemon   0.6.10-local        linux/amd64         7b5516cf685e        1.59GB              292 years ago
    :~/dify-1.17/docker# docker compose logs api 2>&1 | grep -i "plugin\|404\|error" | tail -30
    
    api-1  |   File "/app/api/.venv/lib/python3.12/site-packages/flask_restx/api.py", line 404, in wrapper
    api-1  | ValueError: 'text-generation' is not a valid ModelType
    api-1  | 2026-08-26 07:43:57.089 ERROR [Dummy-43] [external_api.py:94] f500757020f552ca86fa513e70943dc5 - value_error in request handler
    api-1  |   File "/app/api/.venv/lib/python3.12/site-packages/flask_restx/api.py", line 404, in wrapper
    api-1  | ValueError: 'text-generation' is not a valid ModelType
    api-1  | 2026-08-26 07:43:57.095 ERROR [Dummy-44] [external_api.py:94] 96b9dd50933e5837bc90b77085b4ae85 - value_error in request handler
    api-1  |   File "/app/api/.venv/lib/python3.12/site-packages/flask_restx/api.py", line 404, in wrapper
    api-1  | ValueError: 'text-generation' is not a valid ModelType
    api-1  | 2026-08-26 07:43:57.100 ERROR [Dummy-45] [external_api.py:94] 256e2d024cdd562498948ba0b4bd88c6 - value_error in request handler
    api-1  |   File "/app/api/.venv/lib/python3.12/site-packages/flask_restx/api.py", line 404, in wrapper
    api-1  | ValueError: 'text-generation' is not a valid ModelType
    api-1  | 2026-08-26 07:43:57.103 ERROR [Dummy-46] [external_api.py:94] 11593eda171957f1bcb94b605666b3b1 - value_error in request handler
    api-1  |   File "/app/api/.venv/lib/python3.12/site-packages/flask_restx/api.py", line 404, in wrapper
    api-1  | ValueError: 'text-generation' is not a valid ModelType
    api-1  | 2026-08-26 07:43:57.106 ERROR [Dummy-47] [external_api.py:94] b8eec317f01b5963892f8cc7d5ca936c - value_error in request handler
    api-1  |   File "/app/api/.venv/lib/python3.12/site-packages/flask_restx/api.py", line 404, in wrapper
    api-1  | ValueError: 'text-generation' is not a valid ModelType
    api-1  | 2026-08-26 07:44:01.702 ERROR [Dummy-48] [external_api.py:94] 2a5bc0c31c23576ab9ab54a839610aee - value_error in request handler
    api-1  |   File "/app/api/.venv/lib/python3.12/site-packages/flask_restx/api.py", line 404, in wrapper
    api-1  | ValueError: 'text-generation' is not a valid ModelType
    api-1  | 2026-08-26 07:44:01.833 INFO [Dummy-49] [_client.py:1025] 6f3f9199f5665662b53127eea6124099 - HTTP Request: GET http://plugin_daemon:5002/plugin/4bd6aec3-e81e-4f13-bb1f-8319fa6819eb/management/models/bindings "HTTP/1.1 200 OK"
    api-1  | 2026-08-26 07:44:02.849 ERROR [Dummy-51] [external_api.py:94] d81c28bc187156189190cb4983a83243 - value_error in request handler
    api-1  |   File "/app/api/.venv/lib/python3.12/site-packages/flask_restx/api.py", line 404, in wrapper
    api-1  | ValueError: 'text-generation' is not a valid ModelType
    api-1  | 2026-08-26 07:44:04.898 ERROR [Dummy-52] [external_api.py:94] 660ea2c97a9c5788be4d98578754b491 - value_error in request handler
    api-1  |   File "/app/api/.venv/lib/python3.12/site-packages/flask_restx/api.py", line 404, in wrapper
    api-1  | ValueError: 'text-generation' is not a valid ModelType
    api-1  | 2026-08-26 07:44:08.944 ERROR [Dummy-53] [external_api.py:94] 61165f512c5b5276a2cdec6cf90dace7 - value_error in request handler
    api-1  |   File "/app/api/.venv/lib/python3.12/site-packages/flask_restx/api.py", line 404, in wrapper
    api-1  | ValueError: 'text-generation' is not a valid ModelType
    
    

    @dosu

  3. xtiqny commented on Aug 26, 2026

    @xtiqny
    Author

    The model with the previous configuration was stored in the database with the old enumeration value "text-generation". When version 1.17.0 was released, it removed this enumeration value but did not automatically migrate the old data. As a result, it crashed when read.

  4. dosubot commented on Aug 26, 2026

    @dosubot
  5. added a commit that references this issue on Aug 26, 2026
    c14b559
  6. wuyingfeng1998 commented on Aug 26, 2026

    @wuyingfeng1998
  7. zhangyuqiz commented on Aug 26, 2026

    @zhangyuqiz
  8. self-assigned this
    on Aug 26, 2026
  9. laipz8200 commented on Aug 26, 2026

    @laipz8200
    Member

    This issue was caused by an upstream enum value change. We will provide automated migration tools as soon as possible.

  10. self-assigned this
    on Aug 26, 2026
  11. added
    1.17.0
    on Aug 27, 2026
  12. added this to the 1.17.0 feedback milestone on Aug 27, 2026
  13. QuantumGhost commented on Sep 1, 2026

    @QuantumGhost
    Member

    Sorry for the disruption this caused.

    The model-type canonicalization was intentional, but the missing upgrade instruction was my mistake. Legacy model types had already caused several compatibility issues, including #34365, #34471, and #36426. Supporting both legacy and canonical values is not just a matter of accepting an enum alias: it also affects ORM query binding, uniqueness conflicts, credential references, and load-balancing configurations. The one-time migration introduced in #36520 was intended to converge existing data safely and reduce this long-term maintenance burden.

    However, I failed to include the migration step in the v1.15.0 and v1.16.x release notes. As a result, installations that carried legacy values forward could fail after upgrading to v1.17.0. I’m sorry for the inconvenience and confusion this caused.

    We have now amended the release notes for v1.15.0, v1.16.0, v1.16.1, and v1.17.0. If your deployment was upgraded from a version earlier than v1.15.0 and the migration has not been applied, please back up your database and follow the updated instructions:

    https://github.com/langgenius/dify/releases/tag/1.17.0#model-type-migration

    This migration is separate from flask db upgrade. The command runs in dry-run mode by default; review its output before rerunning it with --apply.

  14. added
    🐞 bug
    on Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

1.17.0🐞 bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions