Ubuntu 16.04 LTS - upgrade or migrate?

(Stephen) #1

I’ve finally found a moment to breathe between my various other projects, which means I’ve a few idle cycles to think about our Discourse environments and how, when or if we should approach the Ubuntu 16.04 LTS upgrade.

Ubuntu 14.04 is supported through until late 2019, so there’s no huge rush to accomplish this, but I like to check in on such topics and at least be aware of the potential risks and benefits. From what I can see elsewhere 16.04 is officially supported for fresh installations, but has anyone weighed up upgrading the OS versus migrating the Discourse install to a clean box?

From what I can gather, hosts such as DO will leave 16.04 machines on an older kernel that may not be upgradable for some time, are there any other gotchas?

Has anyone successfully upgraded their machines from 14.04->16.04? What state was Discourse in post-install?


I did an upgrade on two droplets on DO for a client. I had a bit of an issue with Docker that I had to reinstall on one droplet (I didn’t do the install and I had trouble with Docker on this droplet before that) but other than that, it went well on both. No trouble with the database or anything else. If you do a backup or even better a snapshot, you don’t have to worry.

The duration was about 15 minutes. The forum is still running the first minutes, but not for the rest.

If I remember correctly, you may have to do a

cd /var/discourse
./launcher restart app

After the upgrade, but I’m not sure.

(Steven Greco) #3

I upgraded from 14.04->16.04 on a DO droplet. All went well except I had to add the new repository for Xenial for Docker and update it. Did a restart app as @Steven said and I was up and running again.

All your third party apt repositoires will be disabled when you upgrade as you need to point them to new Xenial ones if needed.

(Mittineague) #4

On my Windows 10 localhost set-up I installed VMware Player.
I created a VM using the ubuntu-16.04-desktop-amd64.iso image.
I then installed Discourse following discourse/INSTALL-cloud.md at master · discourse/discourse · GitHub but skipping the “cloud server” stuff.

The “Discourse Advanced Developer Install Guide” has

To get your Ubuntu 16.04 LTS install up and running to develop Discourse and Discourse plugins follow the commands below.

So based on that and my not having had any noticeable problems using Ubuntu 16.04 LTS on my localhost, I think either version would work OK.

Just the same, to be safe I think it would be wise to try 16.04 in a staging set-up before making the switch on a live site.

(James Mc Mahon) #5

FWIW, I’ve clean installed docker+discourse on clean 16.04 LTS without any glitches.


The only minor issue I’ve had on 16.04 (clean or upgraded) is that when I reboot the droplet (only on droplets who have a swap), the forum takes ~5 minutes to come back instead of 1 min on 14.04.

It’s more a Ubuntu issue tho.

(@SenpaiMass) #7

Is it necessary to upgrade to 16.04 LTS or i could stay with v14.04 itself?