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.6k 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.
  • jdaviescoatesJ Online
    jdaviescoatesJ Online
    jdaviescoates
    wrote on last edited by jdaviescoates
    #41

    @girish I'm sorry to report that it doesn't seem outdated Docker was the issue because I noticed there were still outstanding updates to run and so clicked on one and the exact same thing has happened:

    fef35d30-cd72-459d-a391-f4ec93cf1dab-image.png

    I've left it exactly as is if you want to go and have another poke around my server to see what you can discover...

    I use Cloudron with Gandi & Hetzner

    jdaviescoatesJ 1 Reply Last reply
    0
    • girishG girish

      @jdaviescoates I updated the docker on your server already . That's why, please let us know if you hit the issue again (which then means that docker upgrade didn't fix the issue).

      But regardless, I will keep the docker update as part of 7.3.3 unless something else breaks. So, you won't have troubles after updating as well.

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

      @girish I'm using Contabo's NVMe Storage Extension ( it's different than their Object storage) that doubles my storage. Do you think that has anything to do with it?

      When I got it, I had to do the standard Ubuntu partition expansion commands to get it set up. What type of storage would this be? CIFS?

      jdaviescoatesJ 1 Reply Last reply
      0
      • humptydumptyH humptydumpty

        @girish I'm using Contabo's NVMe Storage Extension ( it's different than their Object storage) that doubles my storage. Do you think that has anything to do with it?

        When I got it, I had to do the standard Ubuntu partition expansion commands to get it set up. What type of storage would this be? CIFS?

        jdaviescoatesJ Online
        jdaviescoatesJ Online
        jdaviescoates
        wrote on last edited by
        #43

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

        Do you think that has anything to do with it?

        I don't think so because lots of us who aren't using Contabo at all are experiencing the same thing.

        I use Cloudron with Gandi & Hetzner

        humptydumptyH 1 Reply Last reply
        0
        • jdaviescoatesJ jdaviescoates

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

          Do you think that has anything to do with it?

          I don't think so because lots of us who aren't using Contabo at all are experiencing the same thing.

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

          @jdaviescoates You mentioned you're using storage box and I'm using some sort of storage expansion. Also, Girish mentioned it's a "known" Contabo issue. I'm interested to know if other Contabo users are also using storage expansion. Maybe that's the common factor/issue here?

          jdaviescoatesJ 1 Reply Last reply
          0
          • jdaviescoatesJ jdaviescoates

            @girish I'm sorry to report that it doesn't seem outdated Docker was the issue because I noticed there were still outstanding updates to run and so clicked on one and the exact same thing has happened:

            fef35d30-cd72-459d-a391-f4ec93cf1dab-image.png

            I've left it exactly as is if you want to go and have another poke around my server to see what you can discover...

            jdaviescoatesJ Online
            jdaviescoatesJ Online
            jdaviescoates
            wrote on last edited by
            #45

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

            @girish I'm sorry to report that it doesn't seem outdated Docker was the issue because I noticed there were still outstanding updates to run and so clicked on one and the exact same thing has happened:

            fef35d30-cd72-459d-a391-f4ec93cf1dab-image.png

            I've left it exactly as is if you want to go and have another poke around my server to see what you can discover...

            Did you login to my server again and poke around with this? Because I note that that update has now completed (and I didn't intervene myself).

            So, I figured I'd hit update on another app to see what happens, but same thing:

            f540aaaf-a51a-4840-be4d-421b7febcedb-image.png

            I use Cloudron with Gandi & Hetzner

            girishG 1 Reply Last reply
            0
            • jdaviescoatesJ jdaviescoates

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

              @girish I'm sorry to report that it doesn't seem outdated Docker was the issue because I noticed there were still outstanding updates to run and so clicked on one and the exact same thing has happened:

              fef35d30-cd72-459d-a391-f4ec93cf1dab-image.png

              I've left it exactly as is if you want to go and have another poke around my server to see what you can discover...

              Did you login to my server again and poke around with this? Because I note that that update has now completed (and I didn't intervene myself).

              So, I figured I'd hit update on another app to see what happens, but same thing:

              f540aaaf-a51a-4840-be4d-421b7febcedb-image.png

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

              @jdaviescoates yes, sorry, I am investigating on the server. I am able to reproduce this quite reliably, though I have no clue yet what is causing the issue.

              jdaviescoatesJ 1 Reply Last reply
              1
              • humptydumptyH humptydumpty

                @jdaviescoates You mentioned you're using storage box and I'm using some sort of storage expansion. Also, Girish mentioned it's a "known" Contabo issue. I'm interested to know if other Contabo users are also using storage expansion. Maybe that's the common factor/issue here?

                jdaviescoatesJ Online
                jdaviescoatesJ Online
                jdaviescoates
                wrote on last edited by
                #47

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

                Maybe that's the common factor/issue here?

                That was an initial theory of @girish too, but e.g. @fbartels has also hit this issue and he isn't using external storage at all afaiu

                I use Cloudron with Gandi & Hetzner

                humptydumptyH 1 Reply Last reply
                0
                • jdaviescoatesJ jdaviescoates

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

                  Maybe that's the common factor/issue here?

                  That was an initial theory of @girish too, but e.g. @fbartels has also hit this issue and he isn't using external storage at all afaiu

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

                  @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 1 Reply Last reply
                  1
                  • girishG girish

                    @jdaviescoates yes, sorry, I am investigating on the server. I am able to reproduce this quite reliably, though I have no clue yet what is causing the issue.

                    jdaviescoatesJ Online
                    jdaviescoatesJ Online
                    jdaviescoates
                    wrote on last edited by
                    #49

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

                    I am able to reproduce this quite reliably, though I have no clue yet what is causing the issue.

                    Fingers and toes crossed you'll be able to work it out!

                    I use Cloudron with Gandi & Hetzner

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