media/documents/archive/ folder not persisted #545
Replies: 1 comment 1 reply
-
Oh well. First of all, we'll be able to fix this up. Let's go through this step by step. Some explanation on what the archive is.
There's also a reason I don't just store the archived file and discard the original:
Originals and archive versions are stored in the respective folders. Your issue is that no volume is mounted at the archive location. The official docker-compose files mount the entire media folder as a volume to have everything persisted. Therefore, everytime you restarted paperless the archived versions would disappear, but paperless still expects them to be there, since it has information about them stored in the database. This is also the reason the migration fails. It requires archived files to be present, but they are not. Paperless also uses a lock file in the root of the media folder to coordinate concurrent modifications to the media folder. First of all, modify your setup so that the entire media folder is mounted as a volume. You'll have to move files from the originals and thumbail volume around. The alternative approach would be to just mount the archive folder as a volume as well, but then you might run into trouble when running operations from two different containers both modifying files in the media directory. A rare occurence, but it might happen. Second, paperless remembers that it has created archived versions for your documents in the past. For each document, it remembers the checksum of the archived file, if present. Two alternative approaches:
I can make some detailed instructions for both, depending on what you want to do. |
Beta Was this translation helpful? Give feedback.
-
Paperless-NG v1.1.1 gives this error, 1.1.0 starts without warnings or so (similar to #534 maybe)
The it starts over again
Paperless-ng docker container starting...
Apparently the problem is the archive folder, could that be? I have mapped the following folders:
But the document is reported missing at
/usr/src/paperless/media/documents/archive/
- so I guess I have to map that too to have it persisted? What is in there? The original files? Never tinkered with those. Any idea on how to fix the system, as I'd reckon thatall the originals are missing as they have not been mapped...
Beta Was this translation helpful? Give feedback.
All reactions