External sqlite #176
MalteMagnussen
started this conversation in
Ideas
Replies: 1 comment 4 replies
-
The database file has to be stored in a persistent volume, you can refer to the example in the documentation: https://gokapi.readthedocs.io/en/stable/setup.html#id3 Would that work in your case? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As far as I understand, meta-data about the files is stored in a sqlite in
data/gokapi.sqlite
.That is meta-data such as:
If Gokapi is deployed in Kubernetes, it loses all this data whenever the Pod is restarted.
Pods are considered to be relatively ephemeral.
So whenever the Pod is gone, any files uploaded via that Pod are also "gone". They're no longer tracked by Gokapi.
We created a S3 lifecycle policy to ensure that files are deleted after 30 days no matter what.
But if the Pod is restarted, then the link also "dies" to the files, and you get a page like this:
So based on all these assumptions, I assume that all this could be fixed by allowing the app to point to an external sqlite, instead of the internal auto-created one.
To sum up, we would like these things to persist across restarts, as it would generate issues for customers if we put files in gokapi, that they then can't access an hour later, because we lose persistence, if the pod restarts.
Beta Was this translation helpful? Give feedback.
All reactions