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. Upgrade Netcup to Ubuntu 22.04

Upgrade Netcup to Ubuntu 22.04

Scheduled Pinned Locked Moved Solved Support
upgradenetcup
14 Posts 7 Posters 2.8k Views 7 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.
    • erikscholzE Offline
      erikscholzE Offline
      erikscholz
      wrote on last edited by girish
      #1

      Hi guys. I am running Cloudron on a Netcup VPS on Ubuntu 18.04. What's the best approach regarding upgrading the OS? I could think of those options:

      1. Wait until there is a cloudron image with Ubuntu 22.04 and using Cloudron Backup to reinstall Cloudron.
      2. Upgrade Ubuntu 18.04 and hope for the best. Use a Netcup snapshot if things go bad.
      3. Do nothing: 18.04 ist just fine and upgrading to 22.04 has no real advantages in terms of performance and security.

      Happy to hear your thoughts. I would somehow enjoy to try option 2. But I have a feeling it might fail hard as I only have minor to zero Linux skills. πŸ™‚

      Cheers
      Erik

      nichu42N girishG 2 Replies Last reply
      2
      • girishG girish moved this topic from Discuss on
      • erikscholzE erikscholz

        Hi guys. I am running Cloudron on a Netcup VPS on Ubuntu 18.04. What's the best approach regarding upgrading the OS? I could think of those options:

        1. Wait until there is a cloudron image with Ubuntu 22.04 and using Cloudron Backup to reinstall Cloudron.
        2. Upgrade Ubuntu 18.04 and hope for the best. Use a Netcup snapshot if things go bad.
        3. Do nothing: 18.04 ist just fine and upgrading to 22.04 has no real advantages in terms of performance and security.

        Happy to hear your thoughts. I would somehow enjoy to try option 2. But I have a feeling it might fail hard as I only have minor to zero Linux skills. πŸ™‚

        Cheers
        Erik

        nichu42N Offline
        nichu42N Offline
        nichu42
        wrote on last edited by
        #2

        @erikscholz I would go with option #2 and actually recently upgraded from 20 to 22.
        Did you check out
        https://docs.cloudron.io/guides/upgrade-ubuntu-20/
        and
        https://docs.cloudron.io/guides/upgrade-ubuntu-22/
        ?

        Matrix: @nichu42:blueplanet.social

        erikscholzE 1 Reply Last reply
        1
        • jdaviescoatesJ Offline
          jdaviescoatesJ Offline
          jdaviescoates
          wrote on last edited by jdaviescoates
          #3

          Personally, I'd go with option 1 then there is no risk of the update not going according to plan (and also, Cloudron already supports 22.04)

          53d2b9f1-8d24-4e69-bd19-0bb190d0fa05-image.png

          Edit: but see also these @staff posts which suggest try 2 and if you have any issues just revert to 1:

          @BrutalBirdie said in Best way to update from Ubuntu 18.04 to 20.04?:

          @jdaviescoates
          I did both πŸ˜„

          The upgrade to Ubuntu 20 might be faster, depends on what you have to restore. (2TB of Movies?) 😬

          I would do a backup, start with the upgrade to 20 and if you don't like something, you can always just do a clean sweep and restore from backup 🀷

          @girish said in Best way to update from Ubuntu 18.04 to 20.04?:

          Ubuntu 20 upgrade has worked via dist-upgrade works fairly well. Only thing is one has to baby sit the upgrade and keep pressing 'yes'.

          I would do what @BrutalBirdie said, make a backup and then try to upgrade ubuntu. If it doesn't work, restore from backup into new ubuntu.

          I use Cloudron with Gandi & Hetzner

          1 Reply Last reply
          1
          • erikscholzE erikscholz

            Hi guys. I am running Cloudron on a Netcup VPS on Ubuntu 18.04. What's the best approach regarding upgrading the OS? I could think of those options:

            1. Wait until there is a cloudron image with Ubuntu 22.04 and using Cloudron Backup to reinstall Cloudron.
            2. Upgrade Ubuntu 18.04 and hope for the best. Use a Netcup snapshot if things go bad.
            3. Do nothing: 18.04 ist just fine and upgrading to 22.04 has no real advantages in terms of performance and security.

            Happy to hear your thoughts. I would somehow enjoy to try option 2. But I have a feeling it might fail hard as I only have minor to zero Linux skills. πŸ™‚

            Cheers
            Erik

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

            @erikscholz said in Upgrade Netcup to Ubuntu 22.04:

            1. Upgrade Ubuntu 18.04 and hope for the best. Use a Netcup snapshot if things go bad.

            2 is probably the quickest. But on a few VPS I have seen some packages not updating properly (something to do with their mirrors). So, if ubuntu upgrade does not work, try option 1.

            J erikscholzE 2 Replies Last reply
            1
            • nichu42N nichu42

              @erikscholz I would go with option #2 and actually recently upgraded from 20 to 22.
              Did you check out
              https://docs.cloudron.io/guides/upgrade-ubuntu-20/
              and
              https://docs.cloudron.io/guides/upgrade-ubuntu-22/
              ?

              erikscholzE Offline
              erikscholzE Offline
              erikscholz
              wrote on last edited by
              #5

              @nichu42
              Thank you for the links. I'll try to upgrade manually. Wish me luck.

              nichu42N 1 Reply Last reply
              2
              • erikscholzE erikscholz

                @nichu42
                Thank you for the links. I'll try to upgrade manually. Wish me luck.

                nichu42N Offline
                nichu42N Offline
                nichu42
                wrote on last edited by
                #6

                @erikscholz Snapshots are your friend. 😁 Good luck!

                Matrix: @nichu42:blueplanet.social

                1 Reply Last reply
                0
                • girishG girish

                  @erikscholz said in Upgrade Netcup to Ubuntu 22.04:

                  1. Upgrade Ubuntu 18.04 and hope for the best. Use a Netcup snapshot if things go bad.

                  2 is probably the quickest. But on a few VPS I have seen some packages not updating properly (something to do with their mirrors). So, if ubuntu upgrade does not work, try option 1.

                  J Offline
                  J Offline
                  jayonrails
                  translator
                  wrote on last edited by
                  #7

                  @girish I have checked the Cloudron docs and seen the following:

                  β€žUpgrade fails with Full text search feature
                  There is a bug in Cloudron 7.2 where in the mail server does not start in Ubuntu 22 when the Full text search feature is turned on. Please wait till Cloudron 7.3 to upgrade.β€œ

                  Source: Upgrading to Ubuntu 22.04 (Jammy Jellyfish)

                  I think this note is obsolete and the docs can be updated?

                  Best
                  Jay

                  1 Reply Last reply
                  0
                  • girishG girish

                    @erikscholz said in Upgrade Netcup to Ubuntu 22.04:

                    1. Upgrade Ubuntu 18.04 and hope for the best. Use a Netcup snapshot if things go bad.

                    2 is probably the quickest. But on a few VPS I have seen some packages not updating properly (something to do with their mirrors). So, if ubuntu upgrade does not work, try option 1.

                    erikscholzE Offline
                    erikscholzE Offline
                    erikscholz
                    wrote on last edited by erikscholz
                    #8

                    @girish
                    Hi Girish. Upgrading from 18.04 to 20.04 went pretty well. Now I am kind of stuck at the end of the upgrade from 20.04 to 22.04. It's the step "/home/yellowtent/box/scripts/recreate-containers". I started it around 3 hours ago. It has not finished yet as you can see in the attached screenshot. I just have 6 apps running: 2 Ghost instances, Surfer, Umami and Chatwoot. Any idea what the issue could be?

                    Screenshot 2023-02-05 at 17.25.19.png

                    girishG 1 Reply Last reply
                    0
                    • erikscholzE erikscholz

                      @girish
                      Hi Girish. Upgrading from 18.04 to 20.04 went pretty well. Now I am kind of stuck at the end of the upgrade from 20.04 to 22.04. It's the step "/home/yellowtent/box/scripts/recreate-containers". I started it around 3 hours ago. It has not finished yet as you can see in the attached screenshot. I just have 6 apps running: 2 Ghost instances, Surfer, Umami and Chatwoot. Any idea what the issue could be?

                      Screenshot 2023-02-05 at 17.25.19.png

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

                      @erikscholz can you try rebooting the server? Sometimes that fixes the docker getting hung.

                      erikscholzE 1 Reply Last reply
                      1
                      • girishG girish

                        @erikscholz can you try rebooting the server? Sometimes that fixes the docker getting hung.

                        erikscholzE Offline
                        erikscholzE Offline
                        erikscholz
                        wrote on last edited by
                        #10

                        @girish
                        The reboot fixed the issue. Seemed the containers were updated even though the status bar was still progressing. Thanks!

                        1 Reply Last reply
                        3
                        • girishG girish marked this topic as a question on
                        • girishG girish has marked this topic as solved on
                        • jeauJ Offline
                          jeauJ Offline
                          jeau
                          App Dev
                          wrote on last edited by
                          #11

                          I had the same problem and rebooted, but how can I be sure that containers have been updated?

                          girishG 1 Reply Last reply
                          0
                          • jeauJ jeau

                            I had the same problem and rebooted, but how can I be sure that containers have been updated?

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

                            @jeau If the apps are running and the services are all green (in services view), it's all good.

                            1 Reply Last reply
                            1
                            • jeauJ Offline
                              jeauJ Offline
                              jeau
                              App Dev
                              wrote on last edited by
                              #13

                              @girish Thank's, everything works πŸ‘

                              however, I had a problem with an in-house application Cantaloupe app (IIIF server). It didn't restart with this message in the logs:

                              cat: /sys/fs/cgroup/memory/memory.memsw.limit_in_bytes: No such file or directory
                              

                              This application is based on the instructions given in the Cloudron documentation: Packaging app - Cheat Sheet. Specifically, the part that indicates that memory usage must be restricted for a java application with the following code:

                              LIMIT=$(($(cat /sys/fs/cgroup/memory/memory.memsw.limit_in_bytes)/2**20))
                              export JAVA_OPTS="-XX:MaxRAM=${LIMIT}M"
                              

                              To solve my problem quickly, I redeployed this application by hard-coding a value to the LIMIT variable. But it's a hack πŸ˜•

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

                                This then means, that the system is using cgroups v2 now. I have updated the main docs section at https://docs.cloudron.io/packaging/cheat-sheet/#memory-limit for a start to make an app compatible with cgroup v1 and v2 (I guess in your case its sufficient to only support v2 now.)

                                1 Reply Last reply
                                3
                                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