Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Dolibarr
  3. [critical] install.lock removed after cloudron reboot

[critical] install.lock removed after cloudron reboot

Scheduled Pinned Locked Moved Dolibarr
21 Posts 6 Posters 3.2k Views 6 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Crush33
    wrote on last edited by Crush33
    #12

    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...

    1 Reply Last reply
    0
    • jamesJ Offline
      jamesJ Offline
      james
      Staff
      wrote on last edited by
      #13

      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.

      1 Reply Last reply
      1
      • C Offline
        C Offline
        Crush33
        wrote on last edited by
        #14

        hello,

        got same behavior tonight, after ubuntu reboot for security updates (clicked from notification panel, red button "Reboot", all my 26x Dolibarr instances restarted without putting the install.lock file back in place.

        I recreate all of them at one using this in shell on cloudron :

        #!/bin/bash
        
        BASE_DIR="/home/yellowtent/appsdata"
        
        for appdir in "$BASE_DIR"/*; do
            if [ -d "$appdir/data/dolibarr" ]; then
                LOCKFILE="$appdir/data/dolibarr/install.lock"
                if [ ! -f "$LOCKFILE" ]; then
                    echo "Create $LOCKFILE"
                    touch "$LOCKFILE"
                else
                    echo "$LOCKFILE already exist"
                fi
            else
                echo "no dolibarr in $appdir"
            fi
        done
        

        dunno what I should do to see why it doesn't work appropriately 😞

        thanks for any help !

        1 Reply Last reply
        0
        • robiR Offline
          robiR Offline
          robi
          wrote on last edited by
          #15

          Maybe the upgrade is failing, check logs?

          The code could also be adjusted to copy vs move the file so it stays available. But, it's probably moved for a reason I am not aware of.

          Conscious tech

          1 Reply Last reply
          0
          • J Online
            J Online
            joseph
            Staff
            wrote on last edited by joseph
            #16

            @Crush33 Can you give us access to your instance (possibly a cloned instance of your existing dolibarr?) . If so, can you write to me on support@cloudron.io and I can try to take a look. There is possible some bug in the package causing this.

            1 Reply Last reply
            0
            • sebastienserreS Offline
              sebastienserreS Offline
              sebastienserre
              wrote on last edited by
              #17

              Hello,
              Is a solution has been found because I'm experiencing the same issue.
              Video => https://www.loom.com/share/a526c2ccf8ff46108d791ae6e4d862e8
              Logs => https://file.thivinfo.com/Cloudron/82a18dde-001d-4c51-a69b-5ac33376e6b5 (1).log

              He/Him - Native language: French

              1 Reply Last reply
              0
              • sebastienserreS Offline
                sebastienserreS Offline
                sebastienserre
                wrote on last edited by
                #18

                Fixed by setting my own cron job https://forum.cloudron.io/topic/14965/which-user-for-cron-task/4?_=1773687776018

                He/Him - Native language: French

                1 Reply Last reply
                1
                • sebastienserreS Offline
                  sebastienserreS Offline
                  sebastienserre
                  wrote last edited by
                  #19

                  Hello

                  I thought this issue has been fixed, but we always have the issue. (which is a security one)
                  I do not know why the Cloudron Dolibarr app runs the cron as root and not as www-data user.

                  He/Him - Native language: French

                  1 Reply Last reply
                  0
                  • jamesJ Offline
                    jamesJ Offline
                    james
                    Staff
                    wrote last edited by
                    #20

                    Hello @sebastienserre
                    I was not able to reproduce this with a fresh instance of Dolibarr.
                    Maybe this is due to your other issue you have posted with the custom cron job?

                    1 Reply Last reply
                    0
                    • T Offline
                      T Offline
                      tobiasb
                      wrote last edited by
                      #21

                      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:355
                      

                      A shell script with set -e stops 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
                      
                      1 Reply Last reply
                      2

                      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
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Bookmarks
                      • Search