What docker tag should I use to perform an upgrade to 3.5.0.beta7 from 2.9.0.beta5

Hi guys,

  1. The discourse is running in a docker.

  2. Here is the message that we see
    We’re currently on 2.9.0.beta5 but the current release (shown as critical to upgrade to) is 3.5.0.beta7.

  3. If I run
    ./launcher rebuild app

I am getting

x86_64 arch detected.
ERROR: Kernel version 3.10.0-1160.119.1.el7.x86_64 not supported, please upgrade to at least 4.4.0

This is because the launcher is retrieving the latest build. What tag should I use for 3.5.0.beta7?

I assume when I will have the correct tag I can upgrade with the following command

./launcher rebuild app --run-image ‘discourse/base:’

I tried to look for the this info., but I could fnd anything.

Thank you beforehand.

What OS are you trying to run Discourse on? It may be time to update to something a bit more modern than EOL RHEL 7.

2 Likes

Hello,

It’s Centos 7:

]# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)

uname -a

Linux msm5257.mjhst.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

It reached end of life over a year ago. What to know about CentOS Linux EOL

I recommend that you get a new vm with a new os and make a backup on the old machine and restore it to the new one. That will save a step of upgrading the database.

Unless you love Centos for a particular reason, I would go with Ubuntu, which most people here use, or Debian, which the discourse docker container is now based on.

1 Like

Thank you for the answer.

We completely understand this, but if switching to Ubuntu were that easy, we would do it.
Do we have the information somewhere about the docker tags and discourse versions to perform an upgrade?

Thank you,

You do need to be running a newer kernel, one way or another, before you can run a very much newer Discourse.

3 Likes

I think you need Docker 28? But maybe 26 would be good enough.

It looks like there is no way to upgrade Centos 7, so you’re going to need to move to a new VM, or if this is your own server, you’ll need to install a new OS to upgrade it. Once you’re installing an OS, it’s not much easier or harder to install any different Linux.

If you don’t want to upgrade your OS, then don’t upgrade Discourse.

1 Like

I see that there are open source successors to Centos, and AlmaLinux
appears to be a strong contender - CERN chose it, and they know what they are doing. It’s RedHat flavour so your sysadmin skills will transfer.

I’m not confident that you can solve your problem by cherry-picking a Docker. Processes which run within Docker use the same kernel as all others, and I think the kernel version - the actual version, not the patchlevel - will need to be newer than the one you have.

I second the idea that the best approach is to provision a new server with a new OS and restore a Discourse backup.

1 Like