dify - 💡(How to fix) Fix dify upgrade [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
langgenius/dify#36109Fetched 2026-05-14 03:46:43
View on GitHub
Comments
2
Participants
2
Timeline
4
Reactions
1
Timeline (top)
commented ×2closed ×1labeled ×1

Error Message

[2026-05-11 09:25:23 +0000] [1] [ERROR] Control server error: [Errno 13] Permission denied: '/home/dify'

Root Cause

many people said upgrade dify have to (uv sync, uv run flask db upgrade),but i exec api -pod , do uv run flask db upgrade have nothing,because api-pod is running done this beahtivor

Fix Action

Fix / Workaround

question 1: upgrade dify ,my api-pod is new-tag and pod status is running ,api-log have this root@dfwy1:~# kubectl logs -n dify-ys -f --tail=1000 pods/api-0 Defaulted container "api" out of: api, init-permissions (init) Running migrations Warning! You didn't set docs_url, redoc_url or openapi_url. API Documentation will be skipped. Preparing database migration... Starting database migration. INFO [alembic.runtime.migration] Context impl PostgresqlImpl. INFO [alembic.runtime.migration] Will assume transactional DDL. INFO [alembic.runtime.migration] Running upgrade fce013ca180e -> e288952f2994, add partial indexes on conversations for app_id with created_at and updated_at INFO [alembic.runtime.migration] Running upgrade e288952f2994 -> 0ec65df55790, add indexes for human_input_forms query patterns INFO [alembic.runtime.migration] Running upgrade 0ec65df55790 -> 6b5f9f8b1a2c, add user_id and switch workflow_draft_variables unique key to user scope INFO [alembic.runtime.migration] Running upgrade 6b5f9f8b1a2c -> 8574b23a38fd, add qdrant_endpoint to tidb_auth_bindings INFO [alembic.runtime.migration] Running upgrade 8574b23a38fd -> 227822d22895, Add workflow comments table Database migration successful! [2026-05-11 09:25:23 +0000] [1] [INFO] Starting gunicorn 25.3.0 [2026-05-11 09:25:23 +0000] [1] [INFO] Listening at: http://0.0.0.0:5001/ (1) [2026-05-11 09:25:23 +0000] [1] [INFO] Using worker: gevent [2026-05-11 09:25:23 +0000] [22] [INFO] Booting worker with pid: 22 [2026-05-11 09:25:23 +0000] [1] [ERROR] Control server error: [Errno 13] Permission denied: '/home/dify' gRPC patched with gevent.

RAW_BUFFERClick to expand / collapse

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.13.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

question 1: upgrade dify ,my api-pod is new-tag and pod status is running ,api-log have this root@dfwy1:~# kubectl logs -n dify-ys -f --tail=1000 pods/api-0 Defaulted container "api" out of: api, init-permissions (init) Running migrations Warning! You didn't set docs_url, redoc_url or openapi_url. API Documentation will be skipped. Preparing database migration... Starting database migration. INFO [alembic.runtime.migration] Context impl PostgresqlImpl. INFO [alembic.runtime.migration] Will assume transactional DDL. INFO [alembic.runtime.migration] Running upgrade fce013ca180e -> e288952f2994, add partial indexes on conversations for app_id with created_at and updated_at INFO [alembic.runtime.migration] Running upgrade e288952f2994 -> 0ec65df55790, add indexes for human_input_forms query patterns INFO [alembic.runtime.migration] Running upgrade 0ec65df55790 -> 6b5f9f8b1a2c, add user_id and switch workflow_draft_variables unique key to user scope INFO [alembic.runtime.migration] Running upgrade 6b5f9f8b1a2c -> 8574b23a38fd, add qdrant_endpoint to tidb_auth_bindings INFO [alembic.runtime.migration] Running upgrade 8574b23a38fd -> 227822d22895, Add workflow comments table Database migration successful! [2026-05-11 09:25:23 +0000] [1] [INFO] Starting gunicorn 25.3.0 [2026-05-11 09:25:23 +0000] [1] [INFO] Listening at: http://0.0.0.0:5001/ (1) [2026-05-11 09:25:23 +0000] [1] [INFO] Using worker: gevent [2026-05-11 09:25:23 +0000] [22] [INFO] Booting worker with pid: 22 [2026-05-11 09:25:23 +0000] [1] [ERROR] Control server error: [Errno 13] Permission denied: '/home/dify' gRPC patched with gevent.

✔️ Expected Behavior

many people said upgrade dify have to (uv sync, uv run flask db upgrade),but i exec api -pod , do uv run flask db upgrade have nothing,because api-pod is running done this beahtivor

❌ Actual Behavior

1

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING