באיזו תגית docker עלי להשתמש כדי לבצע שדרוג ל-3.5.0.beta7 מ-2.9.0.beta5

סיכום מבוסס בינה מלאכותית

A user, techs, is attempting to upgrade their Discourse instance from version 2.9.0.beta5 to 3.5.0.beta7 using Docker, but encounters a kernel version error (3.10.0-1160.119.1.el7.x86_64) during the rebuild process. They are seeking the correct Docker tag to use for the desired version.

The issue stems from running Discourse on CentOS /Red Hat 7 (techs), which has reached end-of-life, requiring a kernel version of at least 4.4.0 Falco. Several users, including pfaffman and Ed_S, strongly recommend migrating to a more modern OS like Ubuntu or Debian, or a CentOS successor like AlmaLinux Ed_S, and restoring from a backup to avoid database upgrade complexities pfaffman.

While techs acknowledges the outdated OS, they are primarily looking for the specific Docker tag for the upgrade, but the consensus is that upgrading the OS is the more reliable solution. pfaffman suggests Docker 28 or 26 may also be required.

היי חברים,

  1. הדיסקוס רץ ב-docker.

  2. הנה ההודעה שאנו רואים
    אנחנו כרגע על 2.9.0.beta5 אבל הגרסה הנוכחית (שמוצגת כקריטית לשדרוג אליה) היא 3.5.0.beta7.

  3. אם אני מריץ
    ./launcher rebuild app

אני מקבל

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

זה בגלל שהלאנצ’ר מאחזר את הבנייה האחרונה. איזה תגית (tag) עלי להשתמש עבור 3.5.0.beta7?

אני מניח שכאשר תהיה לי את התגית הנכונה אוכל לשדרג עם הפקודה הבאה

./launcher rebuild app --run-image 'discourse/base:
kd

ניסיתי לחפש את המידע הזה, אבל לא מצאתי כלום.

תודה מראש.

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.

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.

תודה על התשובה.

אנחנו מבינים זאת לחלוטין, אבל אם המעבר לאובונטו היה כל כך קל, היינו עושים זאת.
האם יש לנו את המידע איפשהו לגבי תגיות הדוקר וגרסאות הדיסקרוס לביצוע שדרוג?

תודה,

עליך להריץ ליבה חדשה יותר, בדרך זו או אחרת, לפני שתוכל להריץ גרסה חדשה הרבה יותר של Discourse.

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.

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.