Cloudron is removing contents from the /tmp folder in the container.
I have been using Cloudron to host my Django API and I notice that it works fine for 5 - 6 hours and then goes to the status of Not Responding.
Upon further digging, I found out the reason for this is the missing
/tmp/test/django/views/templates/technical_500.htmlfile. I have installed Django in
/tmp/testand Django needs this file to function properly.
This file is present when I start the application but disappears after 5 - 6 hours leading to the status of Not Responding.
I tried running the same docker container on my local system and found out that the API is running for days without any problem so there is no problem with Django application or version.
Does Cloudron clear the /tmp folder regularly? If yes then is there an option to stop it?
If not then how can I install my pip packages at some other location other than
/tmp. For some reason all the folders except
/tmpare read only.
@sarthak-narayan This is expected. Only 3 locations are writable
- /app/data - anything you put here will also be part of the backup
- /run - anything you put here is considered runtime data and will not be cleaned up automatically. this data is not part of backup
- /tmp - anything you put here is temporary data and is automatically removed. this is also not part of backup
so, please move your files as you see fit above. More info at https://docs.cloudron.io/packaging/cheat-sheet/#filesystem