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
  • Brite
  • 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 - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Upgrading from Ubuntu 20.04 to 22.04 and get errors..

Upgrading from Ubuntu 20.04 to 22.04 and get errors..

Scheduled Pinned Locked Moved Solved Support
ubuntuupgrades
12 Posts 6 Posters 518 Views 6 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.
  • jamesJ Offline
    jamesJ Offline
    james
    Staff
    wrote on last edited by
    #3

    Hello @swheeler78
    I think I've seen something like this before.
    Since on Cloudron servers /etc/nginx/ does not "exist" as a real folder but is a symlink to /etc/nginx -> /home/yellowtent/platformdata/nginx I've seen it happen that for some reason the symlink gets removed and a real /etc/nginx/ folder gets created.
    You can simply start the box.service once and stop it again, then /etc/nginx should be a symlink again and the dpkg --configure -a should work.

    1 Reply Last reply
    1
    • SansGuidonS SansGuidon

      My 2 cents, I never upgraded the same VM with Cloudron running on it, I just bootstraped a new VM with a fresh upgraded Ubuntu and migrated Cloudron to it ^^ , which allows me to test safely.

      Reason: too many topics about problematic Ubuntu upgrades that break things or Cloudron

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

      @SansGuidon said in Upgrading from Ubuntu 20.04 to 22.04 and get errors..:

      My 2 cents, I never upgraded the same VM with Cloudron running on it, I just bootstraped a new VM with a fresh upgraded Ubuntu and migrated Cloudron to it ^^ , which allows me to test safely.

      Reason: too many topics about problematic Ubuntu upgrades that break things or Cloudron

      Yeah, that's mostly what I've always done too. Not sure what I'll do next now that I'm on a dedicated server though...

      I use Cloudron with Gandi & Hetzner

      1 Reply Last reply
      0
      • jamesJ Offline
        jamesJ Offline
        james
        Staff
        wrote on last edited by
        #5

        Hello @SansGuidon and @jdaviescoates
        That is indeed the most reliable / safest approach.
        I have upgraded many Cloudron Ubuntu's with the provided guides and rarely ran into issues.
        But when something comes up, like this case, a somewhat deeper understanding of Cloudron is valuable to resolve it.


        @jdaviescoates If you upgrade your Ubuntu version on your dedicated server with the provided guides, would you be willing to document your process in a forum topic?
        If anything is unclear, questionable or breaks having this documented process of yours would be a great help to further improve the guides.

        jdaviescoatesJ 1 Reply Last reply
        2
        • jamesJ james

          Hello @SansGuidon and @jdaviescoates
          That is indeed the most reliable / safest approach.
          I have upgraded many Cloudron Ubuntu's with the provided guides and rarely ran into issues.
          But when something comes up, like this case, a somewhat deeper understanding of Cloudron is valuable to resolve it.


          @jdaviescoates If you upgrade your Ubuntu version on your dedicated server with the provided guides, would you be willing to document your process in a forum topic?
          If anything is unclear, questionable or breaks having this documented process of yours would be a great help to further improve the guides.

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

          @james should that day come, sure!

          I use Cloudron with Gandi & Hetzner

          1 Reply Last reply
          2
          • swheeler78S Offline
            swheeler78S Offline
            swheeler78
            wrote on last edited by
            #7

            Forgive me for my lack of knowledge but how do I start the box.service. Also, I've already spun up another VM and I'll be migrating to it. I'm assuming it's as simple as installing a fresh copy of ubuntu and then installing Cloudron and once logged it doing a restore.

            J 1 Reply Last reply
            0
            • jamesJ Offline
              jamesJ Offline
              james
              Staff
              wrote on last edited by
              #8

              Hello @swheeler78
              You can restart the box.service with:

              systemctl restart box.service
              
              1 Reply Last reply
              0
              • swheeler78S swheeler78

                Forgive me for my lack of knowledge but how do I start the box.service. Also, I've already spun up another VM and I'll be migrating to it. I'm assuming it's as simple as installing a fresh copy of ubuntu and then installing Cloudron and once logged it doing a restore.

                J Offline
                J Offline
                joseph
                Staff
                wrote on last edited by
                #9

                @swheeler78 https://docs.cloudron.io/backups/#restore-cloudron has the workflow .

                1 Reply Last reply
                1
                • swheeler78S Offline
                  swheeler78S Offline
                  swheeler78
                  wrote on last edited by
                  #10

                  Thank you.

                  1 Reply Last reply
                  0
                  • girishG girish has marked this topic as solved on
                  • M Offline
                    M Offline
                    manuel
                    wrote last edited by
                    #11

                    Hello @girish i am also going to migrate from ubuntu 20.04 to 22.04. i am reading your guide and it looks very clear. thanks! there only 2 things i don't understand , it's on the post updgrade section. there are a couple of steps i am not sure i get how to do
                    are these the full commands ?

                    *Install missing packages: /home/yellowtent/box/scripts/init-ubuntu.sh

                    *Fix package configuration: /home/yellowtent/box/setup/start.sh

                    Ubuntu 22 uses cgroups v2 by default. Recreate all Docker containers to recognize this change: /home/yellowtent/box/scripts/recreate-containers. This script is part of Cloudron 7.3. For earlier versions, download it here.

                    1 Reply Last reply
                    0
                    • jamesJ Offline
                      jamesJ Offline
                      james
                      Staff
                      wrote last edited by james
                      #12

                      Hello @manuel

                      Yes these are command that you can copy-paste into your terminal.
                      I will update the guides to make it more clear.

                      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