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 | 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
13 Posts 3 Posters 599 Views 3 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
    #1

    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

    1 Reply Last reply
    0
    • J Offline
      J Offline
      joseph
      Staff
      wrote on last edited by
      #2

      Do you see anything in the logs? From what I can see in the packaging code, the install.lock is temporarily moved and then migrations are run and then it is moved back. Maybe the migration run is failing ?

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

        where should I check exactly to see what happend ?

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

          The app log itself.
          You can also download the logs and provide this file here.

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

            forum says i can't upload file here 😞

            Error
            You do not have enough privileges for this action.

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

              You can use https://paste.cloudron.io/ to paste the whole file in there and provide the URL here.

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

                before reboot : https://paste.cloudron.io/cigojugite.yaml
                after reboot : https://paste.cloudron.io/ilulajihon.yaml

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

                  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.

                  1 Reply Last reply
                  0
                  • jamesJ Offline
                    jamesJ Offline
                    james
                    Staff
                    wrote 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 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 Offline
                        J Offline
                        joseph
                        Staff
                        wrote 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 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 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
                            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