11 / 11
Jun 2021

Hi All,
We are encountering a serious problem with RochetChat crashing at startup after the automatic update.
The error is


Mongo.db is working,
the lock file has been deleted
all modules are fully functional
Does anyone have any indications?
Gabriele

  • created

    Jun '21
  • last reply

    Jun '21
  • 10

    replies

  • 2.7k

    views

  • 4

    users

  • 6

    links

Hi Gabriele.

What automatic update?


What Apache is this that is sending this message?

image
Ist that your reverse proxy for EGroupware?

If so: What says your apache-error-log?

Stefan

Two customers also reporting that, do you have an error-message from the starting Rocket.Chat container:

error: "Can't find migration version 225"

What version are you using, what’s the output of:

grep image /etc/egroupware-rocketchat/docker-compose.override.yml

Ralf

Just tried the todays new version 3.14.5 which works ok for me and stayed on migration 222, like 3.14.4 before.

Is it possible you tried to downgrade from rocketchat/rocket.chat:latest to :3.14.x?

Downgrades are not supported by Rocket.Chat and lead to a crash / exit when starting the container!

If that’s the case, you can only go back to latest.

Please note our newer packages use no longer rocketchat/rocket.chat:latest but mirror their releases in our repository on quay.io2 and use now quay.io/egroupware/rocket.chat:stable, which we only assign after some testing.

If you want to move to quay.io/egroupware/rocket.chat:stable, you can use our script:
/etc/egroupware-rocketchat/move2stable.sh
Which compares the versions and only does the move, if it would not attempt a downgrade.

Ralf

Hi All
the error we are dealing with is
error: “Can’t find migration version 225”,
reason: undefined,
details: undefined,
errorType: 'Meteor.Error
These are the used modulistica
image: rocketchat/rocket.chat:latest
image: mongo:4.0
image: mongo:4.0
Our it guru is looking for http://move2stable.sh1
Any advice ?
Gabriele

That means rocketchat accidently pushed 3.14.5 as latest :frowning:

Don’t know if they already fixed it or not.
You can try to pull again:

cd /etc/egroupware-rocketchat
docker-compose pull
docker-compose up -d
docker logs -f rocketchat # use Ctrl-C to stop tail after RC is started

If that still gives you the same error, Rocket.Chat has not yet fixed it and you can only fix the tag manually:

cd /etc/egroupware-rocketchat
sed 's/rocket.chat:latest/rocket.chat:3.15.0/' -i docker-compose.override.yml
docker-compose pull
docker-compose up -d
docker logs -f rocketchat # use Ctrl-C to stop tail after RC is started

And don’t forget to go back to stable latest tag, or better our quay.io/egroupware/rocket.chat:stable, to continue receiving updates.

Ralf

Hi All,
Our IT guru has applied the instructions in the post and in about 20 container compilations has always encountered this error on the database:


therefore he assumed that the DB engine should be downgraded from 4.4 to 4.0
Dumped the data from the db in use and running some scripts built to restore data in a new database created from scratch running the engine old version (the 4.0) everything started to work again.
Thanks to Giuseppe (our precious IT Guru) and all the contributors to this post whose help is really precious.
So … the problem seems to have been completely solved.

Thanks again.
Gabriele

Rocket.Chat so far only supports MongoDB 4.0 and that’s what’s in our docker-compose.yml:

The other error from MongoDB init container is normal and unavoidable AFAIK, when using Watchtower. It simply means the previous running init container is no longer the latest mongo:4.0 version. This error can by safely ignored (in scripts I use: echo "y" | docker-compose up -d).

Please mark my first suggestion, simply pulling again, as solution.

Ralf

Use my script: /etc/egroupware-rocketchat/move2stable.sh

It checks if it’s save and only then migrates you to stable tag.

Ralf