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 55.0k 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.
  • girishG girish

    @avatar1024 this is not unmanaged WP related. We have been investigating this a lot last few days but it appears to happen very often in netcup servers at least.

    The main issue is that runc is getting stuck (you can also do ps auxf on the server):

    root       84188  0.0  0.0 712448  9880 ?        Sl   11:09   0:01 /usr/bin/containerd-shim-runc-v2 -namespace moby -id afb25df337753f9944749bdba5bcb577ae58630d4529da3293ea3730c3164be4 -address /run/containerd/c
    root       84200  0.0  0.0 1230148 10704 ?       Sl   11:09   0:00  \_ runc --root /var/run/docker/runtime-runc/moby --log /run/containerd/io.containerd.runtime.v2.task/moby/afb25df337753f9944749bdba5bcb577ae586
    root       84210  0.0  0.0 1083864 10968 ?       Ssl  11:09   0:00      \_ runc init
    

    Those runc init above is just hanging there waiting for something (you can strace and see it's waiting on some futex). It's unclear what the issue is so far.

    robiR Offline
    robiR Offline
    robi
    wrote on last edited by
    #105

    @girish I wonder if sysbox would have the same issue.

    Conscious tech

    1 Reply Last reply
    0
    • avatar1024A avatar1024

      @p44 Have you tried to reboot your server and then do the update?

      @p44 out of interest, do you have a WP unmanaged app installed on your instance?

      P Offline
      P Offline
      p44
      translator
      wrote on last edited by
      #106

      @avatar1024 Yes I did reboot but nothing. No have any WP unmanaged on instance. Only two LAMP applications.

      1 Reply Last reply
      0
      • girishG girish

        @avatar1024 this is not unmanaged WP related. We have been investigating this a lot last few days but it appears to happen very often in netcup servers at least.

        The main issue is that runc is getting stuck (you can also do ps auxf on the server):

        root       84188  0.0  0.0 712448  9880 ?        Sl   11:09   0:01 /usr/bin/containerd-shim-runc-v2 -namespace moby -id afb25df337753f9944749bdba5bcb577ae58630d4529da3293ea3730c3164be4 -address /run/containerd/c
        root       84200  0.0  0.0 1230148 10704 ?       Sl   11:09   0:00  \_ runc --root /var/run/docker/runtime-runc/moby --log /run/containerd/io.containerd.runtime.v2.task/moby/afb25df337753f9944749bdba5bcb577ae586
        root       84210  0.0  0.0 1083864 10968 ?       Ssl  11:09   0:00      \_ runc init
        

        Those runc init above is just hanging there waiting for something (you can strace and see it's waiting on some futex). It's unclear what the issue is so far.

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

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

        happen very often in netcup servers

        I know you (or @nebulon) have an account at Netcups Forum. Maybe ask them for help?

        P 1 Reply Last reply
        0
        • subvenS subven

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

          happen very often in netcup servers

          I know you (or @nebulon) have an account at Netcups Forum. Maybe ask them for help?

          P Offline
          P Offline
          p44
          translator
          wrote on last edited by
          #108

          @subven I think is not Netcup related issue.

          1 Reply Last reply
          0
          • nebulonN Offline
            nebulonN Offline
            nebulon
            Staff
            wrote on last edited by
            #109

            So we had an instance which seems to not hit this issue anymore by making sure the kvm version is updated. On netcup this apparently means to shutdown and boot the instance through their control panel. A simple reboot/restart will not solve it. Maybe anyone here facing this and being on netcup could attempt this so we get more info.

            jdaviescoatesJ 1 Reply Last reply
            1
            • nebulonN nebulon

              So we had an instance which seems to not hit this issue anymore by making sure the kvm version is updated. On netcup this apparently means to shutdown and boot the instance through their control panel. A simple reboot/restart will not solve it. Maybe anyone here facing this and being on netcup could attempt this so we get more info.

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

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

              Maybe anyone here facing this and being on netcup could attempt this so we get more info.

              I just did that (a power cycle via their scp server control panel), let's see if it resolves the issue for me...

              I use Cloudron with Gandi & Hetzner

              1 Reply Last reply
              1
              • martinkbsM Offline
                martinkbsM Offline
                martinkbs
                wrote on last edited by
                #111

                The same problem occurs on my Hetzner and Contabo servers.

                1 Reply Last reply
                2
                • avatar1024A avatar1024

                  I also have a WordPress dev app on the cloudron that gets stuck and don't have it on the other instances. The only other app I have on it and not on the other ones is mattermost

                  PS: the instance I restarted earlier today and that was working now hangs again on updates. Restarted again and now working fine...for some time...

                  avatar1024A Offline
                  avatar1024A Offline
                  avatar1024
                  wrote on last edited by
                  #112

                  Weird, got three Netcup instances and only ever hit the issue one. Plus other people seem to be hitting it with other providers.

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

                  PS: the instance I restarted earlier today and that was working now hangs again on updates. Restarted again and now working fine...for some time...

                  Good news is that ever since the last reboot my instance stopped hanging (it's been 4 days). The only thing I did compared to the other time I rebooted is that I updated all apps manually to their latest version and so had no more update to do (the last app was WP unmanaged). Ever since updates have been working fine.

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

                  Maybe anyone here facing this and being on netcup could attempt this so we get more info.

                  I had actually already done this from Netcup SCP the first time I hit the issue but it hadn't solved for me.

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

                    Ok, so one thing which I have noticed is common is that the kernel is 5.4.0-132-generic (output of uname -nar and Ubuntu 20.04.5 (lsb_release -a). Can others please confirm what kernel and ubuntu they are on?

                    humptydumptyH avatar1024A 2 Replies Last reply
                    0
                    • girishG girish

                      Ok, so one thing which I have noticed is common is that the kernel is 5.4.0-132-generic (output of uname -nar and Ubuntu 20.04.5 (lsb_release -a). Can others please confirm what kernel and ubuntu they are on?

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

                      @girish is there a way to check what I was running prior to upgrading to22.04?

                      girishG 1 Reply Last reply
                      0
                      • girishG girish

                        Ok, so one thing which I have noticed is common is that the kernel is 5.4.0-132-generic (output of uname -nar and Ubuntu 20.04.5 (lsb_release -a). Can others please confirm what kernel and ubuntu they are on?

                        avatar1024A Offline
                        avatar1024A Offline
                        avatar1024
                        wrote on last edited by
                        #115

                        @girish
                        All three instances are on kernel 5.4.0-132-generic
                        Two instances (including the one that used to hang) are on Ubuntu 20.04.3
                        One instance is on 20.04.4

                        1 Reply Last reply
                        1
                        • humptydumptyH humptydumpty

                          @girish is there a way to check what I was running prior to upgrading to22.04?

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

                          @humptydumpty no, I think not. Are you still facing this issue? What's your current kernel and ubuntu release?

                          subvenS humptydumptyH 2 Replies Last reply
                          1
                          • girishG girish

                            @humptydumpty no, I think not. Are you still facing this issue? What's your current kernel and ubuntu release?

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

                            @girish Netcup RS 4000 G9 Ubuntu 20.04.2 Kernel 5.4.0-131-generic - no issue.

                            1 Reply Last reply
                            0
                            • girishG girish

                              @humptydumpty no, I think not. Are you still facing this issue? What's your current kernel and ubuntu release?

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

                              @girish 100% fine since upgrading to 22.04 with the fixes you did when you SSH'd in.

                              Linux vmi5XXXX5.contaboserver.net 5.15.0-53-generic #59-Ubuntu SMP Mon Oct 17 18:53:30 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
                              
                              No LSB modules are available.
                              Distributor ID: Ubuntu
                              Description:    Ubuntu 22.04.1 LTS
                              Release:        22.04
                              Codename:       jammy
                              
                              1 Reply Last reply
                              0
                              • girishG Offline
                                girishG Offline
                                girish
                                Staff
                                wrote on last edited by girish
                                #119

                                So, the issue was just reproduced on our DigitalOcean demo cloudron. That is also running ubuntu 20 and 5.4.0-132-generic

                                humptydumptyH 1 Reply Last reply
                                2
                                • girishG girish

                                  So, the issue was just reproduced on our DigitalOcean demo cloudron. That is also running ubuntu 20 and 5.4.0-132-generic

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

                                  @girish I'm in the clear but for others, what would be the best way to upgrade to 22.04 without running into docker hangs like I did?

                                  1 Reply Last reply
                                  0
                                  • martinkbsM Offline
                                    martinkbsM Offline
                                    martinkbs
                                    wrote on last edited by
                                    #121

                                    In my case, the servers have the following configurations:

                                    Contabo
                                    Ubuntu 20.04.3 LTS
                                    5.4.0-132-generic

                                    Hetzner
                                    Ubuntu 20.04.2 LTS
                                    5.4.0-132-generic

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

                                      Alright, this seems to be a kernel issue. Other programs are experiencing similar:

                                      • https://github.com/prometheus/node_exporter/issues/2500
                                      • https://bugs.launchpad.net/ubuntu/+source/containerd/+bug/1996678 (it's getting reverted at https://lists.ubuntu.com/archives/kernel-team/2022-November/135043.html)
                                      • https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1990190
                                      • https://www.mail-archive.com/kernel-packages@lists.launchpad.net/msg492057.html
                                      • https://github.com/opencontainers/runc/issues/3641

                                      GOMAXPROCS=1 apparently alleviates the issue. So, I will try this one.

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

                                        Reported to runc at https://github.com/opencontainers/runc/issues/3641#issuecomment-1328344025

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

                                          See https://forum.cloudron.io/topic/8101/fix-for-kernel-bug-in-ubuntu-20-04-causing-various-issues for a solution.

                                          1 Reply Last reply
                                          3
                                          • girishG girish has marked this topic as solved on
                                          • girishG girish referenced this topic on
                                          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