I can't upgrade from 4.8.7 to 5.4.10

Hi,
My company has been using its own rocket.chat server (self hosted) since the COVID lockdown. I wanted to profit by the holidays to upgrade it since it was still in its 3.something COVID flavor.

I managed to upgrade up to 4.8.7, and then upgrade mongodb to 5.0 as mentionned on the upgrade path.
So far so good, every thing seems to be working.

But I can’t go any further. Whenever I try to install rocket.chat 5.4.10 I always have the same issue (somehting about “replicaSetNoPrimary”). Back to 4.8.7 solves the issue… but this not what i want/need.

I tried chatGPT without anymore luck… can someone help me and prove that man is still superior to IA ?
Thanks,
Yann

Ok, we can’t help much without knowing a lot more about your setup.

Read this (preferably the whole page)

Note nothing below 6.10.x is supported.

Your clue will likely be

replicaSetNoPrimary

Try searching the interwebs for that.

As we nothing more about your setup there is nothing else to say right now.

Yup. It is largely useless unless you really understand what it can/can’t do, and it should not be relied on.

Hi,
thanks for your answer.

I’ll try to be as specific as possible.
The setup is a vps running a buster debian distribution. It was a Chester debian, but I started by upgrading it.
On this debian, mongodb and rocketchat are manually installed from mongodb.org and rocket.chat. No snap, no docker, only wget, apt and systemd good old instructions.
Following the provided update path (https://docs.rocket.chat/docs/updating-rocketchat), I switched the mongo engine from mmap to wiredtiger, and managed to upgrade rocket.chat to 3.18.7 and then 4.8.7. Then I upgraded mongodb from 4.0 to 4.2, 4.4 and eventually 5.0.
I don’t know what else to say about the “working” server.

I know that such old versions of rocket.chat are not supported anymore, and this is why I’d like to upgrade to an up to date version.
But I’m stuck… and this is why I came here, so maybe someone had a piece of solution.

In the meantime, I found that some people had similar issues when trying to upgrade from 4.8 to 5.0: the “localhost” default name for mongodb seem to be one potential trouble maker. I’ll dig into this.

Thanks anyway,
Yann

You haven’t provided any server or db settings to tell more…

You should probably be aware that the supported install type today is docker or snaps (yuck yuck yuck!)

Personally, for historical reasons, I run local mongo + dockered host mode rocket.

Has worked seamlessly for a long time now.

Suggest you check the mongo url is correct & oplogs are enabled.

If you need more help post some more info.

Hi,

while trying to figure out what specific settings I might provide, I happened to understand that my systemd environment for rocketchat was incorrect. As a matter of fact I had no rocketchat.service and therefore, the environment file that I configured was absolutely not taken into account.
I have now a working 5.4.10 rocketchat server. Next step is 6.13.1 I guess.

Thanks and have a wonderfull last day of 2024!
Yann

Always read the docs and keep up to date.

Things change all the time (yup I’m no fan of rapid releases etc, but it is what it is)

You might want to try say 6.0.x or 6.5.x as stepping stones. Both were big updates.

It may work from 5.4.x , but probably untested.

Backup completely before each update…

Some admin note I made here.

Happy New Year!