IO Error After Upgrade #3121

Closed
opened 2026-02-21 17:54:04 -05:00 by yindo · 0 comments
Owner

Originally created by @thiner on GitHub (May 10, 2024).

Originally assigned to: @takatost on GitHub.

Self Checks

  • This is only for bug report, if you would like to ask a quesion, 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).
  • Pleas do not modify this template :) and fill in all the required fields.

Dify version

0.6.7

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

I deployed Dify in K8s. Mount the 'api/storage/privatekeys' by PVC. I upgrade the Dify docker image to 0.6.7.

✔️ Expected Behavior

Dify should work, all existing work flow, knowledge base, model providers remain as-is.

Actual Behavior

Couldn't load knowledge base, model providers, the error log shows libs.rsa.PrivkeyNotFoundError: Private key not found, tenant_id:.... By attaching into the image console, an IO error pops up while ls /app/api/storage/privatekeys. Seems the folder "privatekeys" is corrupted.
This error actually happens every time when I upgrade the docker image version. One observation might relevant to this issue is that the tennant_id was regenerated in every upgrades.

Originally created by @thiner on GitHub (May 10, 2024). Originally assigned to: @takatost on GitHub. ### Self Checks - [X] This is only for bug report, if you would like to ask a quesion, 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] Pleas do not modify this template :) and fill in all the required fields. ### Dify version 0.6.7 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce I deployed Dify in K8s. Mount the 'api/storage/privatekeys' by PVC. I upgrade the Dify docker image to `0.6.7`. ### ✔️ Expected Behavior Dify should work, all existing work flow, knowledge base, model providers remain as-is. ### ❌ Actual Behavior Couldn't load knowledge base, model providers, the error log shows `libs.rsa.PrivkeyNotFoundError: Private key not found, tenant_id:...`. By attaching into the image console, an IO error pops up while `ls /app/api/storage/privatekeys`. Seems the folder "privatekeys" is corrupted. This error actually happens every time when I upgrade the docker image version. One observation might relevant to this issue is that the `tennant_id` was regenerated in every upgrades.
yindo closed this issue 2026-02-21 17:54:04 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#3121