# Ubuntu release upgrades

**URL:** https://meta.discourse.org/t/ubuntu-release-upgrades/241009
**Category:** Support
**Created:** [October 5, 2022, 11:18am UTC](https://meta.discourse.org/t/ubuntu-release-upgrades/241009 "2022-10-05T11:18:30Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![fuse](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fuse/32/221005_2.png) [@fuse](https://meta.discourse.org/u/fuse)
#### Post date: [October 5, 2022, 11:18am UTC](https://meta.discourse.org/t/ubuntu-release-upgrades/241009/1 "2022-10-05T11:18:30Z")

</div>

I’ve seen the docs on challenges with starting fresh with Ubuntu 20.04 LTS, and 22.04 LTS.

Has anyone done an upgrade in place of 18.04 LTS to 20.04 or 22.04?

I’m not in a rush per se, just figuring I’ll need to move to a newer release sometime between now and April.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [October 5, 2022, 12:13pm UTC](https://meta.discourse.org/t/ubuntu-release-upgrades/241009/2 "2022-10-05T12:13:53Z")

</div>

> [@fuse](#):
>
> I’ve seen the docs on challenges with starting fresh with Ubuntu 20.04 LTS, and 22.04 LTS.

What challenges? I don’t believe that I’ve changed my scripts and there’s not a problem. I’ll try to double check that 22.04 is working later today.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [October 5, 2022, 12:55pm UTC](https://meta.discourse.org/t/ubuntu-release-upgrades/241009/3 "2022-10-05T12:55:37Z")

</div>

22.04 works fine, I had cause to test that yesterday.

---

<div class="post-metadata">

### Author: ![fuse](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fuse/32/221005_2.png) [@fuse](https://meta.discourse.org/u/fuse)
#### Post date: [October 5, 2022, 4:40pm UTC](https://meta.discourse.org/t/ubuntu-release-upgrades/241009/4 "2022-10-05T16:40:04Z")

</div>

Thanks!

To be clear, I was debating Ubuntu via CLI to a higher version (either 20.04 LTS or 22.04 LTS) and there are some documents here indicating issues with SSL versions, as well as other components (ruby on rails maybe?).

Net/net I am not looking to create problems where none exist. I also don’t want to tank my discourse install if there are operating system dependencies.

Thanks for the insight.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [October 5, 2022, 6:38pm UTC](https://meta.discourse.org/t/ubuntu-release-upgrades/241009/5 "2022-10-05T18:38:37Z")

</div>

You still haven’t said just what “some documents” are, but perhaps you’re referring to something about running a development environment?

If you’re running a [standard install](https://meta.discourse.org/t/142537?silent=true) on docker, then you shouldn’t have an problems.

---

<div class="post-metadata">

### Author: ![fuse](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fuse/32/221005_2.png) [@fuse](https://meta.discourse.org/u/fuse)
#### Post date: [October 5, 2022, 7:47pm UTC](https://meta.discourse.org/t/ubuntu-release-upgrades/241009/6 "2022-10-05T19:47:24Z")

</div>

The links I found here and read include:

> [@Issues Rebuilding After Upgrade to Ubuntu 22.04](https://meta.discourse.org/t/issues-rebuilding-after-upgrade-to-ubuntu-22-04/225955):
>
> After banging my head for many hours, it’s time to ask for help. Debug Log: [https://privatebin.net/?b56249efe41b5599#8nt7yMQU2Hft4HysXSoZkxXQTYdR9MFv91qC9sbBgen](https://privatebin.net/?b56249efe41b5599#8nt7yMQU2Hft4HysXSoZkxXQTYdR9MFv91qC9sbBgen)

> [@Error after upgrading to Ubuntu 22.04.1 LTS](https://meta.discourse.org/t/error-after-upgrading-to-ubuntu-22-04-1-lts/236022):
>
> Just updated to Ubuntu 22.04.1 LTS. Then did: cd /var/discourse sudo git pull sudo ./launcher rebuild app It worked for some minutes then failed with an error (see below). If I now do this again: sudo ./launcher rebuild app I immediately get the same error again: $ sudo ./launcher rebuild app x86\_64 arch detected. docker: Error response from daemon: cgroups: cgroup mountpoint does not exist: unknown. ERRO[0000] error waiting for container: context canceled Your Docker installation is not …

> [@Notes about Installing Discourse on Ubuntu 20.04](https://meta.discourse.org/t/notes-about-installing-discourse-on-ubuntu-20-04/226363):
>
> I’m having trouble with the bundle install step. This error keeps coming up. (...) Installing sassc-rails 2.1.2 Installing discourse-ember-rails 0.18.6 Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: /home/archie/gems/gems/openssl-2.2.1/ext/openssl /usr/bin/ruby3.0 -I /usr/lib/ruby/vendor\_ruby -r ./siteconf20220430-16096-soaves.rb extconf.rb checking for t\_open() in -lnsl... no checking for socket() in -lsocket... no checking for openssl/ssl.h... yes c…

I did also see the notes about installing for development. I set that aside as not relevant.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [October 5, 2022, 8:43pm UTC](https://meta.discourse.org/t/ubuntu-release-upgrades/241009/7 "2022-10-05T20:43:10Z")

</div>

> [@Issues Rebuilding After Upgrade to Ubuntu 22.04](https://meta.discourse.org/t/issues-rebuilding-after-upgrade-to-ubuntu-22-04/225955/1):
>
> After banging my head for many hours

Not a problem with a clean install of 22.04.1 LTS:

> [@Issues Rebuilding After Upgrade to Ubuntu 22.04](https://meta.discourse.org/t/issues-rebuilding-after-upgrade-to-ubuntu-22-04/225955/10):
>
> I ended up just rebuilding the droplet with a clean copy of Ubuntu 22.04, reinstalling Discourse manually (the standard way), and then just importing the backup. It was quick and easy and I wish I’d just done that from the start.

> [@Error after upgrading to Ubuntu 22.04.1 LTS](https://meta.discourse.org/t/error-after-upgrading-to-ubuntu-22-04-1-lts/236022/1):
>
> Just updated to Ubuntu 22.04.1 LTS. T

They did an upgrade of the OS rather than a clean install.

> [@Notes about Installing Discourse on Ubuntu 20.04](https://meta.discourse.org/t/notes-about-installing-discourse-on-ubuntu-20-04/226363/1):
>
> I’m having trouble with the bundle install step.

That’s a development install.

It looks like my not trusting running an OS update and doing a clean install isn’t quite as silly as I thought.

The other advantage of the clean install is tha tyou can fail back to the working version just by changing your DNS (or static ip, which is what I’d recommend since it’s much faster than waiting for DNS to update in most cases).

---

<div class="post-metadata">

### Author: ![fuse](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fuse/32/221005_2.png) [@fuse](https://meta.discourse.org/u/fuse)
#### Post date: [October 5, 2022, 9:18pm UTC](https://meta.discourse.org/t/ubuntu-release-upgrades/241009/8 "2022-10-05T21:18:28Z")

</div>

We might be unintentionally talking past each other. 😃

My original question was looking to do a CLI update from 18.04 to 20.04 or 22.04 directly as an option, and if there are impacts.

I understand the approach of a clean install or spin a new EC2 instance, and give a go on a backup and restore of discourse.

There’s a risk and effort trade off.

If I update in place, there is a risk my discourse environment won’t run post OS update. Then I will need to spend time figuring out what broke, and may need help from smart folks here to recover.

If I build a new environment, its guaranteed not to impact my community until cut over time. This feels like significantly more effort is required.

The happy path would be the OS upgrade just works, and discourse restarts with no issues.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [October 5, 2022, 9:30pm UTC](https://meta.discourse.org/t/ubuntu-release-upgrades/241009/9 "2022-10-05T21:30:29Z")

</div>

> [@fuse](#):
>
> We might be unintentionally talking past each other. 😃

Oops. Sorry.

> [@fuse](#):
>
> If I update in place, there is a risk my discourse environment won’t run post OS update. Then I will need to spend time figuring out what broke, and may need help from smart folks here to recover.

Some of the posts you linked suggest that it’s very likely you’ll have such trouble.

> [@fuse](#):
>
> This feels like significantly more effort is required.

There is a topic about how to move to a new server that I can no longer find. You mostly just rsync over your /var/discourse directory, install docker, and rebuild. You can save a bit of time not copying **all** of /var/discourse, but copying that will take much less time than waiting for an OS upgrade to fail. 🙂

I like to go for the sure thing. At think point, I’ve almost spent as much time on this topic as the upgrade would have taken. 🙂

Good luck, which ever path you choose!

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [October 5, 2022, 9:41pm UTC](https://meta.discourse.org/t/ubuntu-release-upgrades/241009/10 "2022-10-05T21:41:57Z")

</div>

> [@fuse](#):
>
> The happy path would be the OS upgrade just works, and discourse restarts with no issues.

It’s all down to your appetite for risk and how much downtime you can suffer. Spinning up a fresh VPS, setting your instance to read-only and installing docker is going to be the smallest window for downtime. The OS upgrade is guaranteed downtime, fixing the issues will prolong that.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [October 6, 2022, 12:02am UTC](https://meta.discourse.org/t/ubuntu-release-upgrades/241009/11 "2022-10-06T00:02:37Z")

</div>

Or maybe there’s another way to play it!

[https://9to5linux.com/canonical-launches-free-ubuntu-pro-subscriptions-for-everyone](https://9to5linux.com/canonical-launches-free-ubuntu-pro-subscriptions-for-everyone)
