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

    @jdaviescoates Oh, I see.

    I just want to add that uninstalling apps gets stuck too. I installed Searx earlier and didn't like it and now I can't get rid of it (until tonight when I can restart the server).

    It's stuck at " Uninstalling - Deleting image ".

    Edit: Ending the task and retrying the uninstall actually deleted it without restarting the server.

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

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

    It's stuck at " Uninstalling - Deleting image ".

    Yup, that's exactly where I have narrowed it down to. Something deep in dockerode a node module we use. Because docker itself is responding fine.

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

      I narrowed it down to image delete API call not getting a response. I wrote a simple example and that works 😞 So, some strange issue in the docker-modem module. Unfortunately, there's a lot of code there to investigate.

      I do still wonder why this happens just now...!

      'use strict';
      
      const http = require('http');
      
      const opts = {
        path: '/images/cloudron/org.moodle.cloudronapp:20220912-100537-1689a722e?force=false&noprune=false',
        method: 'DELETE',
        headers: {},
        key: undefined,
        cert: undefined,
        ca: undefined,
        socketPath: '/var/run/docker.sock'
      };
      
      const req = http.request(opts, function () { });
      req.on('response', function (res) {
          console.log('got a response');
          res.on('data', function () { console.log('data'); });
          res.on('end', function () { console.log('ended'); });
      });
      req.on('error', function (error) {
          console.log(error);
      });
      
      req.end();
      
      jdaviescoatesJ 1 Reply Last reply
      3
      • girishG girish

        I narrowed it down to image delete API call not getting a response. I wrote a simple example and that works 😞 So, some strange issue in the docker-modem module. Unfortunately, there's a lot of code there to investigate.

        I do still wonder why this happens just now...!

        'use strict';
        
        const http = require('http');
        
        const opts = {
          path: '/images/cloudron/org.moodle.cloudronapp:20220912-100537-1689a722e?force=false&noprune=false',
          method: 'DELETE',
          headers: {},
          key: undefined,
          cert: undefined,
          ca: undefined,
          socketPath: '/var/run/docker.sock'
        };
        
        const req = http.request(opts, function () { });
        req.on('response', function (res) {
            console.log('got a response');
            res.on('data', function () { console.log('data'); });
            res.on('end', function () { console.log('ended'); });
        });
        req.on('error', function (error) {
            console.log(error);
        });
        
        req.end();
        
        jdaviescoatesJ Offline
        jdaviescoatesJ Offline
        jdaviescoates
        wrote on last edited by
        #52

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

        I do still wonder why this happens just now...!

        something deprecated upstream? 🤷

        I use Cloudron with Gandi & Hetzner

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

          It turns out it is docker issue after all. If I replace the module with calling docker CLI, it just hangs as well 😕 It seems the command itself succeeds (i.e images gets deleted) but the command does not return. This happens across many commands, docker just hangs. No error in their logs.

          Restarting docker fixes the issue. So, not sure where we go from here.

          1 Reply Last reply
          1
          • jdaviescoatesJ jdaviescoates

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

            I do still wonder why this happens just now...!

            something deprecated upstream? 🤷

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

            @jdaviescoates I wonder if upgrading to Ubuntu 22 helps. Do you want to try that? Since you are on 7.3, it should be safe to upgrade.

            jdaviescoatesJ humptydumptyH 2 Replies Last reply
            0
            • girishG girish

              @jdaviescoates I wonder if upgrading to Ubuntu 22 helps. Do you want to try that? Since you are on 7.3, it should be safe to upgrade.

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

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

              I wonder if upgrading to Ubuntu 22 helps.

              Spin up a VPS and test?

              I use Cloudron with Gandi & Hetzner

              1 Reply Last reply
              0
              • girishG girish

                @jdaviescoates I wonder if upgrading to Ubuntu 22 helps. Do you want to try that? Since you are on 7.3, it should be safe to upgrade.

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

                @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 1 Reply Last reply
                1
                • 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 Online
                            avatar1024A Online
                            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
                                          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