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
18 Posts 5 Posters 2.5k Views 5 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.
  • jamesJ Offline
    jamesJ Offline
    james
    Staff
    wrote on last edited by
    #9

    Hello @Crush33

    Sadly I was not able to reproduce this behavior.

    @Crush33 are you using any volumes for the Dolibarr app?

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

      hello james
      I have a reboot pending on server with multiple dolibarr inside.
      I don't use any volumes.
      What should I look at before and after reboot to be sure to catch the right information for debugging ?
      Thanks !

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

        I too am wondering what the pasted links here have to do with lock files? What do you mean by "all my install.lock files disappear" ? How are you re-creating them?

        1 Reply Last reply
        0
        • 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 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

                      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