[critical] install.lock removed after cloudron reboot
-
hi
just noticed this, after a reboot of cloudron (v8.3.2 (Ubuntu 24.04.1 LTS) all my install.lock files disappear of all my dolibarr instances
Even if permission on file is www-data or root...Have to manually recreate them each time.
Someone could reproduce ?
Thanks
-
before reboot : https://paste.cloudron.io/cigojugite.yaml
after reboot : https://paste.cloudron.io/ilulajihon.yaml -
Hello @Crush33
Please apologize the delayed response.In your provided logs I could not find anything related to the startup of the app and the
install.lock
file.
Do you have the full app log from the dashboard of the day this happened?
Especially the startup part is important.The Dolibarr app runs a
setup()
function on startup that check if the file/app/data/dolibarr/install.lock
exists, moves it to/tmp/install.lock
and after running the upgrade hooks it should move back the/tmp/install.lock
to/app/data/dolibarr/install.lock
.There might have been a failure when running the upgrade hooks or the app crashed or OOM resulting in
/tmp/install.lock
not being moved back to/app/data/dolibarr/install.lock
?
I will try to force such a scenario and see if I can reproduce this behavior. -
hello joseph
cloudron ask me to reboot whole OS for ubuntu security update
when I do, file /app/data/dolibarr/install.lock is missing after that reboot (which is critical for security reason).I recreate them by hand (touch install.lock from ssh in OS, maybe I shouldn't to that...?).
On a later update ubuntu, they vanish again.
If I manually reboot (i.e command "reboot" in shell), they're gone too after the reboot.I dunno where to look at to see exactly what's happening. Is it container side ? or OS side ?
Provided above logs are from container side and there is nothing about the lock file... -
Hello @Crush33
The Cloudron Dolibarr app does move the/app/data/dolibarr/install.lock
file on each startup of the app temporary inside the docker container to/tmp/install.lock
to run upgrade steps.
After the upgrade steps are completed, the/tmp/install.lock
is moved back to/app/data/dolibarr/install.lock
.Maybe you have seen this behavior at the exact moment the app started.
But, the file should be moved back into place after the app is fully started.