End of Life for Ubuntu 14.04 Trusty and Discourse 1.9.0.beta10?

(fearlessfrog) #1

I raised this in the how-to topic linked to the upgrade page, but it’s probably better off here.

Essentially I’m trying to work out if I need to update to Ubuntu 16 to run the latest stable build of Discourse now? A good topic for doing that looks like this one:

This looks like it is due to the latest docker-ce version for 14.04 being below what is required to run the latest Discourse stable image. Not sure, so any help appreciated.

How do I manually update Discourse and Docker image to latest?
Docker version 1.10.3 not supported
(Jeff Atwood) #2

Unlikely, just install a newer version of Docker and you should be OK.

(fearlessfrog) #3

Thanks for the response.

Ok, so essentially my docker-ce update info was old, as in the better way to update Docker is just via this?

curl -fsSL get.docker.com -o get-docker.sh
sh get-docker.sh

…and then let it get on with it?

(fearlessfrog) #4

Ok, all good. Here’s what I did incase it helps others who had an older docker.

wget -qO- https://get.docker.com/ | sh

This will update docker, or rather do the commands of adding the key and repository to the latest binaries for your system. Note: it will try to scare you with this:

Warning: the "docker" command appears to already exist on this system.

As I already had a snapshot, I went for it and it seems ok. I rerun the update for Discourse like this:

./launcher rebuild app

After that I was lower on disk apparently (after all those dist and apt updates I guess):

Status: Downloaded newer image for discourse/base:2.0.20171008
You have less than 5GB of free space on the disk where /var/lib/docker is located. You will need more space to continue

I cleared up some space with this:

 apt-get autoremove

After that (it’ll take a while) then a launcher rebuild app completed and we’ll all good.

Unable to launcher rebuild
Sidekiq is consuming too much memory, restarting
(Sunny T) #5

This is a bit of a noob question, but what what do you type in after getting this message?

# Executing docker install script, commit: 490beaa
Warning: the "docker" command appears to already exist on this system.

If you already have Docker installed, this script can cause trouble, which is
why we're displaying this warning and provide the opportunity to cancel the

If you installed the current Docker package using this script and are using it
again to update Docker, you can safely ignore this message.

You may press Ctrl+C now to abort this script.
+ sleep 20
+ sh -c apt-get update -qq >/dev/null

Just copy/paste the “sh -c apt-get update -qq >/dev/null” part?

(Joshua Rosenfeld) #6

I could be mistaken, but you shouldn’t have to type anything. It looks like it will sleep for 20 seconds, then run the apt-get command. The script is simply giving you time to stop it from proceeding.

(Sunny T) #7

Ah, you’re right. Didn’t think it was doing anything. Thanks!