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
  • 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. Support
  3. Apps Stuck Updating - Cleaning up old install - even after stopping/restarting task

Apps Stuck Updating - Cleaning up old install - even after stopping/restarting task

Scheduled Pinned Locked Moved Solved Support
dockerupdates
124 Posts 10 Posters 54.8k Views 10 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.
  • humptydumptyH humptydumpty

    @girish @jdaviescoates my home server v7.3.2 (Ubuntu 22.04.1 LTS) works just fine. I installed Searx and uninstalled it without an issue. I can probably try upgrading my Contabo server tonight. All I need to do is run the following command, right?

    sudo do-release-upgrade
    
    girishG Offline
    girishG Offline
    girish
    Staff
    wrote on last edited by
    #57

    @humptydumpty This guide https://docs.cloudron.io/guides/upgrade-ubuntu-22/

    1 Reply Last reply
    1
    • girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #58

      In the meantime, I have managed to resurrect our netcup account to see if this is reproducible there,

      1 Reply Last reply
      1
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #59

        So far, this is not reproducible on a netcup server. I left it overnight to make many updates and it seems to be doing fine.

        subvenS 1 Reply Last reply
        0
        • girishG girish

          So far, this is not reproducible on a netcup server. I left it overnight to make many updates and it seems to be doing fine.

          subvenS Offline
          subvenS Offline
          subven
          wrote on last edited by
          #60

          @girish said in Apps Stuck Updating - Cleaning up old install - even after stopping/restarting task:

          So far, this is not reproducible on a netcup server. I left it overnight to make many updates and it seems to be doing fine.

          Can confirm. Not reproducable on Netcup RS or VPS servers.

          jdaviescoatesJ 1 Reply Last reply
          1
          • subvenS subven

            @girish said in Apps Stuck Updating - Cleaning up old install - even after stopping/restarting task:

            So far, this is not reproducible on a netcup server. I left it overnight to make many updates and it seems to be doing fine.

            Can confirm. Not reproducable on Netcup RS or VPS servers.

            jdaviescoatesJ Offline
            jdaviescoatesJ Offline
            jdaviescoates
            wrote on last edited by
            #61

            @subven said in Apps Stuck Updating - Cleaning up old install - even after stopping/restarting task:

            @girish said in Apps Stuck Updating - Cleaning up old install - even after stopping/restarting task:

            So far, this is not reproducible on a netcup server. I left it overnight to make many updates and it seems to be doing fine.

            Can confirm. Not reproducable on Netcup RS or VPS servers.

            I wonder why so many (well, at least 3, me @avatar1024 @imc67 ) of us Netcup customers are hitting this issue.

            I'm on a Netcup VPS 3000 G10.

            I use Cloudron with Gandi & Hetzner

            1 Reply Last reply
            0
            • avatar1024A Offline
              avatar1024A Offline
              avatar1024
              wrote on last edited by avatar1024
              #62

              Just to add some info:

              All my three instances are on Netcup:
              Two are RS on Cloudron 7.2.5 Ubuntu 20.04
              One is a VPS on Cloudron 7.3.2 Ubuntu 22.04

              All are using a herzner storage box for backup mounted as SSHFS (not CIFS).

              I only hit this issue on one instance on Cloudron 7.2.5. Rebooting the server solves it for a bit (I can update all apps manually and it works fine) but then the issue comes back at some point.

              Everything in the update process works fine but it gets stuck on "Cleaning up old install". When I then cancel the task, go to the repair tab and click Restart task, the app just restart to a working state (not updated) but the update does not restart.

              So what's weird is that it works completely fine on another instance that's exactly the same: same provider, same root server, same Cloudron/Ubuntu version.

              Happy to give SSH access if useful.

              1 Reply Last reply
              2
              • humptydumptyH Offline
                humptydumptyH Offline
                humptydumpty
                wrote on last edited by humptydumpty
                #63

                @girish Updating the server was going smooth until I tried to recreate the addon containers. It's still adding new dots so I assume it's okay but has been running for over 6 1/2 hours! Is this normal?

                Disk size is 420GB total w/ around 65GB used.

                06b43c71-92c5-4c65-8d87-3da2c7ec71d9-image.png

                girishG 1 Reply Last reply
                0
                • humptydumptyH humptydumpty

                  @girish Updating the server was going smooth until I tried to recreate the addon containers. It's still adding new dots so I assume it's okay but has been running for over 6 1/2 hours! Is this normal?

                  Disk size is 420GB total w/ around 65GB used.

                  06b43c71-92c5-4c65-8d87-3da2c7ec71d9-image.png

                  girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #64

                  @humptydumpty that should definitely not take so long. I assume you mean the running of /home/yellowtent/box/scripts/recreate-containers ? If you go Services view, are things running already?

                  humptydumptyH 2 Replies Last reply
                  0
                  • girishG girish

                    @humptydumpty that should definitely not take so long. I assume you mean the running of /home/yellowtent/box/scripts/recreate-containers ? If you go Services view, are things running already?

                    humptydumptyH Offline
                    humptydumptyH Offline
                    humptydumpty
                    wrote on last edited by humptydumpty
                    #65

                    @girish dashboard and all apps aren't loading .. said cloudron is offline in red then.. unable to connect error page.

                    1 Reply Last reply
                    0
                    • girishG girish

                      @humptydumpty that should definitely not take so long. I assume you mean the running of /home/yellowtent/box/scripts/recreate-containers ? If you go Services view, are things running already?

                      humptydumptyH Offline
                      humptydumptyH Offline
                      humptydumpty
                      wrote on last edited by
                      #66

                      @girish I logged in in another putty window and ran

                      systemctl status box & systemctl status collectd -- both are active and running (green).

                      7b7dfee6-2196-4edd-87ed-3501589a4576-image.png

                      girishG 1 Reply Last reply
                      0
                      • humptydumptyH humptydumpty

                        @girish I logged in in another putty window and ran

                        systemctl status box & systemctl status collectd -- both are active and running (green).

                        7b7dfee6-2196-4edd-87ed-3501589a4576-image.png

                        girishG Offline
                        girishG Offline
                        girish
                        Staff
                        wrote on last edited by
                        #67

                        @humptydumpty yeah, I think what has happenned is that the docker is getting stuck again and thus addon containers are not getting created properly. Can you give me SSH access and drop a mail to support@ ? I can try to see if recreating the docker images solves anything.

                        humptydumptyH 1 Reply Last reply
                        2
                        • girishG girish

                          @humptydumpty yeah, I think what has happenned is that the docker is getting stuck again and thus addon containers are not getting created properly. Can you give me SSH access and drop a mail to support@ ? I can try to see if recreating the docker images solves anything.

                          humptydumptyH Offline
                          humptydumptyH Offline
                          humptydumpty
                          wrote on last edited by humptydumpty
                          #68

                          @girish email sent .. btw should I close the addon container putty window?

                          girishG 1 Reply Last reply
                          0
                          • humptydumptyH humptydumpty

                            @girish email sent .. btw should I close the addon container putty window?

                            girishG Offline
                            girishG Offline
                            girish
                            Staff
                            wrote on last edited by
                            #69

                            @humptydumpty thanks, just looking into this now. Indeed:

                            2022-11-22T05:48:22.494Z box:shell removeAllContainers exec: docker ps -qa --filter 'label=isCloudronManaged' | xargs --no-run-if-empty docker stop
                            

                            docker is not responding 😞 So, I will recreate the docker images completely . I did this now on @jdaviescoates ' server a while ago to see if it helps as well.

                            jdaviescoatesJ 1 Reply Last reply
                            2
                            • girishG Offline
                              girishG Offline
                              girish
                              Staff
                              wrote on last edited by
                              #70

                              Further, I am unable to remove the docker directory even after stopping and disabling docker...

                              root@vmi557975:/# sudo systemctl stop docker
                              Warning: Stopping docker.service, but it can still be activated by:
                                docker.socket
                              root@vmi557975:/# rm -rf /var/lib/docker
                              rm: cannot remove '/var/lib/docker/overlay2/ff0c38183c43e7bcaaf9b564d44f762e0b22f4bd77592a1f0ddae1507dff138d/merged': Device or resource busy
                              rm: cannot remove '/var/lib/docker/overlay2/d19d5ab400f594ee0a9ce613fbd44ebdd98d72cfa7b0ef7afd1705189272636e/merged': Device or resource busy
                              rm: cannot remove '/var/lib/docker/overlay2/d8c1b7219fb875bed31be5c935420240e86a29ae38e42f06c547d8d20534e1c0/merged': Device or resource busy
                              root@vmi557975:/# ps aux | grep docker
                              root     1330267  0.0  0.0   9068  2260 pts/0    S+   13:58   0:00 grep --color=auto docker
                              

                              Some dangling container is causing problems:

                              root@vmi557975:/# ps aux | grep container
                              root      304611  0.0  0.0 710832  8624 ?        Sl   Nov20   0:24 /usr/bin/containerd-shim-runc-v2 -namespace moby -id adf60365e7ebeed38c53723ed75725ed398a434fb7aaec805a910edcaa5ae901 -address /run/containerd/containerd.sock
                              root     1196183  0.0  0.0 710768  8464 ?        Sl   05:24   0:04 /usr/bin/containerd-shim-runc-v2 -namespace moby -id d4b36c14c6c2850853bd62513ff6203135f75047a8640001accadcf62ef496b1 -address /run/containerd/containerd.sock
                              root     1330278  0.0  0.0   9068  2200 pts/0    R+   13:59   0:00 grep --color=auto container
                              

                              I guess this is why it's hanging, it's unable to remove images.

                              humptydumptyH 1 Reply Last reply
                              1
                              • girishG girish

                                Further, I am unable to remove the docker directory even after stopping and disabling docker...

                                root@vmi557975:/# sudo systemctl stop docker
                                Warning: Stopping docker.service, but it can still be activated by:
                                  docker.socket
                                root@vmi557975:/# rm -rf /var/lib/docker
                                rm: cannot remove '/var/lib/docker/overlay2/ff0c38183c43e7bcaaf9b564d44f762e0b22f4bd77592a1f0ddae1507dff138d/merged': Device or resource busy
                                rm: cannot remove '/var/lib/docker/overlay2/d19d5ab400f594ee0a9ce613fbd44ebdd98d72cfa7b0ef7afd1705189272636e/merged': Device or resource busy
                                rm: cannot remove '/var/lib/docker/overlay2/d8c1b7219fb875bed31be5c935420240e86a29ae38e42f06c547d8d20534e1c0/merged': Device or resource busy
                                root@vmi557975:/# ps aux | grep docker
                                root     1330267  0.0  0.0   9068  2260 pts/0    S+   13:58   0:00 grep --color=auto docker
                                

                                Some dangling container is causing problems:

                                root@vmi557975:/# ps aux | grep container
                                root      304611  0.0  0.0 710832  8624 ?        Sl   Nov20   0:24 /usr/bin/containerd-shim-runc-v2 -namespace moby -id adf60365e7ebeed38c53723ed75725ed398a434fb7aaec805a910edcaa5ae901 -address /run/containerd/containerd.sock
                                root     1196183  0.0  0.0 710768  8464 ?        Sl   05:24   0:04 /usr/bin/containerd-shim-runc-v2 -namespace moby -id d4b36c14c6c2850853bd62513ff6203135f75047a8640001accadcf62ef496b1 -address /run/containerd/containerd.sock
                                root     1330278  0.0  0.0   9068  2200 pts/0    R+   13:59   0:00 grep --color=auto container
                                

                                I guess this is why it's hanging, it's unable to remove images.

                                humptydumptyH Offline
                                humptydumptyH Offline
                                humptydumpty
                                wrote on last edited by humptydumpty
                                #71

                                @girish what are my options to get the server back up? snapshot restore? dashboard is up! apps are in "configuring - queued" state.

                                5de4e6eb-34d1-4a7f-a741-e6e3dd6db386-image.png

                                girishG 1 Reply Last reply
                                0
                                • humptydumptyH humptydumpty

                                  @girish what are my options to get the server back up? snapshot restore? dashboard is up! apps are in "configuring - queued" state.

                                  5de4e6eb-34d1-4a7f-a741-e6e3dd6db386-image.png

                                  girishG Offline
                                  girishG Offline
                                  girish
                                  Staff
                                  wrote on last edited by
                                  #72

                                  @humptydumpty yes, I just removed the entire /var/lib/docker and re-creating all the apps (had to reboot to even remove it since it was locked by various processes).

                                  humptydumptyH 2 Replies Last reply
                                  1
                                  • girishG girish

                                    @humptydumpty yes, I just removed the entire /var/lib/docker and re-creating all the apps (had to reboot to even remove it since it was locked by various processes).

                                    humptydumptyH Offline
                                    humptydumptyH Offline
                                    humptydumpty
                                    wrote on last edited by humptydumpty
                                    #73

                                    @girish they're "configuring" now. thanks!

                                    6ad418b2-8576-4ce0-9f8e-6ed72c82a7a2-image.png

                                    1 Reply Last reply
                                    0
                                    • girishG girish

                                      @humptydumpty yes, I just removed the entire /var/lib/docker and re-creating all the apps (had to reboot to even remove it since it was locked by various processes).

                                      humptydumptyH Offline
                                      humptydumptyH Offline
                                      humptydumpty
                                      wrote on last edited by
                                      #74

                                      @girish excluding the time to install ubuntu which was around 10 mins at most, do you think i missed any incoming mail during the addon container recreation time?

                                      girishG 1 Reply Last reply
                                      0
                                      • humptydumptyH humptydumpty

                                        @girish excluding the time to install ubuntu which was around 10 mins at most, do you think i missed any incoming mail during the addon container recreation time?

                                        girishG Offline
                                        girishG Offline
                                        girish
                                        Staff
                                        wrote on last edited by
                                        #75

                                        @humptydumpty practically, all email servers will retry sending email if they caught you in the downtime.

                                        1 Reply Last reply
                                        2
                                        • girishG girish

                                          @humptydumpty thanks, just looking into this now. Indeed:

                                          2022-11-22T05:48:22.494Z box:shell removeAllContainers exec: docker ps -qa --filter 'label=isCloudronManaged' | xargs --no-run-if-empty docker stop
                                          

                                          docker is not responding 😞 So, I will recreate the docker images completely . I did this now on @jdaviescoates ' server a while ago to see if it helps as well.

                                          jdaviescoatesJ Offline
                                          jdaviescoatesJ Offline
                                          jdaviescoates
                                          wrote on last edited by jdaviescoates
                                          #76

                                          @girish said in Apps Stuck Updating - Cleaning up old install - even after stopping/restarting task:

                                          I did this now on @jdaviescoates ' server a while ago to see if it helps as well.

                                          Well, something is different. I see in your email that an n8n update successfully worked after the changes you made, but I just tried updating the outstanding WordPress update...

                                          Now just seemingly stuck here:

                                          13de7f37-afdf-403e-a5ec-e9e16a4dc3dd-image.png

                                          So I tried clicking Restart App, which didn't work, so I tried Retry Task, Retry app restart, which did work but of course the app still isn't updated, but back where it was before I tried to update.

                                          So, tried to update again, exact same thing. Just stuck on "Updating".

                                          Sigh. I'm beginning to regret my server move (not only because of this, but also because I've been hitting email issues too - in part because my new IP was/ is blacklisted, but also because email keeps timing out which never used to happen before either) 😢

                                          Adding log:

                                          All I could see when it first got stuck on "Updating" was this:

                                          Nov 22 14:02:09 [POST] /backup
                                          Nov 22 14:02:09 backing up
                                          Nov 22 14:02:09 13:M 22 Nov 2022 14:02:09.480 * DB saved on disk
                                          

                                          I use Cloudron with Gandi & Hetzner

                                          girishG jdaviescoatesJ 2 Replies Last reply
                                          0
                                          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