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. Services and all apps down due to cgroups error

Services and all apps down due to cgroups error

Scheduled Pinned Locked Moved Solved Support
cgroupsdocker
16 Posts 4 Posters 134 Views 4 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.
  • infogulchI Offline
    infogulchI Offline
    infogulch
    wrote last edited by joseph
    #1

    I'm getting an error in a bunch of my services and all apps.

    When I try to restart a service it shows an error message in the web ui like this:

    (HTTP code 500) server error - Cannot restart container mysql: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error setting cgroup config for procHooks process: cannot set memory limit: container could not join or create cgroup: unknown

    08ec8f16-615a-4a5d-b660-8bff61895869-image.png

    After restarting to apply the latest ubuntu security updates it still has the same error.

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

      Did you upgrade ubuntu in the middle? What led to this?

      1 Reply Last reply
      0
      • infogulchI Offline
        infogulchI Offline
        infogulch
        wrote last edited by
        #3

        Besides rebooting for security updates I haven't made any recent changes to the server.

        1 Reply Last reply
        0
        • infogulchI Offline
          infogulchI Offline
          infogulch
          wrote last edited by
          #4

          I can't attach logs due to a forum permission error.

          1 Reply Last reply
          1
          • infogulchI Offline
            infogulchI Offline
            infogulch
            wrote last edited by infogulch
            #5

            The following pattern occurs often: the server becomes completely unresponsive, I check the cloud dashboard and the server is using 100% CPU for something (I've never figured out what), so I reboot it and it goes back to normal. This cycle has repeated for over a year; I recall that I reported it before, but it's still an issue. Here's what it looked like in May:

            image.png

            I did this again on July 4th, but this time it looks like it didn't come back ok:

            d28e5fbe-ef3d-45d5-8db1-b1d476860832-image.png

            I have plenty of disk left, > 50GB

            jdaviescoatesJ 1 Reply Last reply
            0
            • infogulchI infogulch

              The following pattern occurs often: the server becomes completely unresponsive, I check the cloud dashboard and the server is using 100% CPU for something (I've never figured out what), so I reboot it and it goes back to normal. This cycle has repeated for over a year; I recall that I reported it before, but it's still an issue. Here's what it looked like in May:

              image.png

              I did this again on July 4th, but this time it looks like it didn't come back ok:

              d28e5fbe-ef3d-45d5-8db1-b1d476860832-image.png

              I have plenty of disk left, > 50GB

              jdaviescoatesJ Online
              jdaviescoatesJ Online
              jdaviescoates
              wrote last edited by
              #6

              @infogulch out of interest, which VPS provider?

              I use Cloudron with Gandi & Hetzner

              1 Reply Last reply
              0
              • infogulchI Offline
                infogulchI Offline
                infogulch
                wrote last edited by
                #7

                Linode since before they were purchased by Akamai

                1 Reply Last reply
                2
                • nebulonN Offline
                  nebulonN Offline
                  nebulon
                  Staff
                  wrote last edited by
                  #8

                  Something in the underlying system is off if containers cannot be rebuilt due to cgroup issues. Maybe docker got updated unexpectedly? I think we would have to take a closer look at the server to avoid too much back and forth. Please enable remote ssh support for us https://docs.cloudron.io/support/#remote-support
                  and send another mail to support@cloudron.io with your dashboard domain. We can take a look at it tomorrow. If you need to get up and running faster, you may also consider to restore to a new server to be on known ground https://docs.cloudron.io/backups/#restore-cloudron

                  1 Reply Last reply
                  1
                  • infogulchI Offline
                    infogulchI Offline
                    infogulch
                    wrote last edited by
                    #9

                    Enabled and dashboard url sent. I can wait if that will help find a root cause, if it's no longer helpful let me know and we can do a restore.

                    1 Reply Last reply
                    1
                    • nebulonN Offline
                      nebulonN Offline
                      nebulon
                      Staff
                      wrote last edited by
                      #10

                      We were able to inspect the server today morning and after some debugging it turns out the system was booting a kernel which doesn't have memory cgroups enabled. In fact that kernel wasn't even installed on the system but apparently linode provides a way to boot the system with other kernels. This seems what caused the issues that the containers couldn't start anymore.

                      1 Reply Last reply
                      3
                      • infogulchI Offline
                        infogulchI Offline
                        infogulch
                        wrote last edited by
                        #11

                        Wow that's crazy. Yeah, it looks like the kernel was set to "latest" so maybe it was autoupdating? I'm switching back down to 5.4.10 which is the oldest allowed...

                        image.png

                        1 Reply Last reply
                        0
                        • infogulchI Offline
                          infogulchI Offline
                          infogulch
                          wrote last edited by
                          #12

                          Maybe it would be worth putting the kernel version in the info section?

                          image.png

                          1 Reply Last reply
                          1
                          • infogulchI Offline
                            infogulchI Offline
                            infogulch
                            wrote last edited by infogulch
                            #13

                            Everything seems to be back up and running now. Thank you!

                            Any advice which latest kernel version I should be using? There are many options...

                            Edit: Oh maybe I should upgrade 20.04 as a first step...

                            https://docs.cloudron.io/guides/upgrade-ubuntu-22/
                            https://docs.cloudron.io/guides/upgrade-ubuntu-24/

                            1 Reply Last reply
                            1
                            • J joseph has marked this topic as solved
                            • J Offline
                              J Offline
                              joseph
                              Staff
                              wrote last edited by
                              #14

                              I think the kernel is defined by ubuntu upstream . Found a list here - https://askubuntu.com/questions/517136/list-of-ubuntu-versions-with-corresponding-linux-kernel-version and another at https://en.wikipedia.org/wiki/Ubuntu_version_history#Table_of_versions

                              1 Reply Last reply
                              2
                              • infogulchI Offline
                                infogulchI Offline
                                infogulch
                                wrote last edited by
                                #15

                                Thank you that is helpful.

                                So maybe the correct option is to use the "Direct Disk" option that boots the kernel installed on the disk to allow the OS updates to manage the kernel version. This should head off any future issues and I won't have to coordinate when I upgrade to 22.04 and 24.04.

                                See: https://techdocs.akamai.com/cloud-computing/docs/manage-the-kernel-on-a-compute-instance#view-and-modify-the-kernel-in-cloud-manager

                                1 Reply Last reply
                                0
                                • infogulchI Offline
                                  infogulchI Offline
                                  infogulch
                                  wrote last edited by
                                  #16

                                  Ok if I switch it to "Direct disk" it fails to boot but "GRUB (Legacy)" kernel option seems to boot fine. 🤷

                                  1 Reply 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