Trilium Notes deployed to Google Cloud Run as Docker image resets after short period of inactivity #1814
-
DescriptionI recently deployed Trilian Next to the Google Cloud Run, as a Docker image, so I can use it from anywhere. Anyone guess what might have caused the data loss? I am using “Cloud Run” service. Docker image used: Container configuration: Volume configuration: It runs on URL: This is my first Docker deployment to cloud. I have little experience with any Google Cloud services. TriliumNext Version0.92.7 What operating system are you using?Other Linux What is your setup?Local (no sync) Operating System VersionGoogle Cloud Run Error logsNo response |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
I'm asking for help also here: |
Beta Was this translation helpful? Give feedback.
-
Hi, I can't help you directly since I've never used Google Cloud. However, the issue you are having seems to be related to a wrong volume mount. You mentioned:
Is this mount path inside the Docker container? If so, then it is incorrect. |
Beta Was this translation helpful? Give feedback.
-
Yeah I'm not sure if this actually related to Trilium. This seems to be a deployment configuration issue / error. Try running it in Docker locally. If it works via Docker locally, then your deployment via Google Cloud is the issue... |
Beta Was this translation helpful? Give feedback.
-
If my memory is correct, "Cloud Run" is more like a function running service which doesn't support save data persistently somewhere. It' actually not the case for running Trilium server, you need to set up a VM which can have a persistent storage connected. |
Beta Was this translation helpful? Give feedback.
-
It's all working. Trilian Docker image can definitively run as Google Run service. I'm a bit puzzled how could Trilian even start with such misconfiguration. Anyway, you can check if your Trilian persisted files in the Google Cloud Storage for yourself. |
Beta Was this translation helpful? Give feedback.
Hi,
I can't help you directly since I've never used Google Cloud.
However, the issue you are having seems to be related to a wrong volume mount.
You mentioned:
Is this mount path inside the Docker container? If so, then it is incorrect.
After setting up Trilium you can check the data directory by going to the help section.