[critical] install.lock removed after cloudron reboot
-
This can happen in this step:
=> PREV_DOLIBARR_VERSION=`php /app/code/htdocs/install/get-version.php`Log:
2026-02-07T13:35:00Z ==> Starting Dolibarr 2026-02-07T13:35:03Z #0 /app/code/htdocs/core/class/conf.class.php(561): DoliDBMysqli->query() 2026-02-07T13:35:03Z #1 /app/code/htdocs/install/get-version.php(28): Conf->setValues() 2026-02-07T13:35:03Z #2 {main} 2026-02-07T13:35:03Z PHP Fatal error: Uncaught Error: Call to a member function query() on false in /app/code/htdocs/core/db/mysqli.class.php:355A shell script with
set -estops when If an error occurs. The script does not have an error handling in such cases, therefore the lock file is still in /tmp.With error handling
trap 'echo "Houston we have problem"; [[ -f /tmp/install.lock ]] && mv /tmp/install.lock /app/data/dolibarr/install.lock; exit 1' ERR
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login