[GH-ISSUE #419] Kibernetes compatibility - download documents when local folder vanishes #324

Closed
opened 2026-02-25 21:31:41 +03:00 by kerem · 2 comments
Owner

Originally created by @ciur on GitHub (Sep 19, 2021).
Original GitHub issue: https://github.com/ciur/papermerge/issues/419

Originally assigned to: @ciur on GitHub.

This change improves Kubernetes (k8s) compatibility.

One of the main concepts in k8s is the idea of ephemeral pod - which can be destroyed/recreated at any moment.
In such case - entire media folder will vanish.
As result of "vanished media folder" - application should be capable of bringing back i.e. download from cloud storage all "vanished" files:

  • page hocr files
  • document file (i.e. original document)

Notice that page previews won't be downloaded - they will be locally regenerated (but before that, original document must be downloaded).

Originally created by @ciur on GitHub (Sep 19, 2021). Original GitHub issue: https://github.com/ciur/papermerge/issues/419 Originally assigned to: @ciur on GitHub. This change improves Kubernetes (k8s) compatibility. One of the main concepts in k8s is the idea of ephemeral pod - which can be destroyed/recreated at any moment. In such case - entire media folder will vanish. As result of "vanished media folder" - application should be capable of bringing back i.e. download from cloud storage all "vanished" files: - page hocr files - document file (i.e. original document) Notice that page previews won't be downloaded - they will be locally regenerated (but before that, original document must be downloaded).
kerem 2026-02-25 21:31:41 +03:00
Author
Owner

@ciur commented on GitHub (Sep 19, 2021):

Fixes available in 2.0.x branch:
fix in default django project

<!-- gh-comment-id:922423742 --> @ciur commented on GitHub (Sep 19, 2021): Fixes available in 2.0.x branch: [fix in default django project](https://github.com/ciur/papermerge/commit/4740f519e6cda9bd715a402e55ed57af80a228f3)
Author
Owner

@ciur commented on GitHub (Sep 19, 2021):

In Kubernetes deployment you'll need to use papermerge-s3 package as persistent storage.

<!-- gh-comment-id:922427942 --> @ciur commented on GitHub (Sep 19, 2021): In Kubernetes deployment you'll need to use [papermerge-s3](https://github.com/papermerge/s3) package as persistent storage.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/papermerge#324
No description provided.