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] [solved] install.lock removed after cloudron reboot

[critical] [solved] install.lock removed after cloudron reboot

Scheduled Pinned Locked Moved Dolibarr
24 Posts 6 Posters 3.9k 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.
  • 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 Offline
      J Offline
      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 on 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 on 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
              1
              • T Offline
                T Offline
                tobiasb
                wrote on 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
                3
                • J Offline
                  J Offline
                  joseph
                  Staff
                  wrote last edited by
                  #22

                  @tobiasb thanks for reporting, will investigate

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

                    Hello,
                    I've just updated my Dolibarr Package to 1.13.3 and restart.
                    I confirm the install.lock is kept.

                    Thank for the update.

                    He/Him - Native language: French

                    1 Reply Last reply
                    2
                    • C Offline
                      C Offline
                      Crush33
                      wrote last edited by
                      #24

                      OP here
                      it's good for me too !!! thanks a lot 🙂

                      1 Reply Last reply
                      0

                      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