Upgrading from 4.2 to 4.4 on Ubuntu 20.04 help

Hello,

We are planning on upgrading mongo to 4.4 from 4.2. When upgrading using the documentation we would encounter an error.
The following signatures were invalid: EXPKEYSIG 656408E390CFB1F5 MongoDB 4.4 Release Signing Key <packaging@mongodb.com>

With this we have decided to upgrade using other methods. I’ve checked on two methods which is to download the tgz file from the release archives then install it. and Another is to use mongodump and mongorestore. Which of the two options would work best?

Thanks,
Jeric

1 Like

Was the key fetched per the install instructions?

curl -fsSL https://www.mongodb.org/static/pgp/server-4.4.asc | \
   sudo gpg -o /usr/share/keyrings/mongodb-server-4.4.gpg \
   --dearmor

This expires May 2027.

I just did a clean install using the 4.4 repo on Focal. Also a 4.2 to 4.4 on Bionic.

The recommended way is to upgrade in place, some have success using dump/restore though.

Hello Chris,

Yes, we did fetch the key as per installation instructions. All prior commands did run except when using apt-get update after which it would return the invalid signature error.

Is there any other way to upgrade from 4.2 to 4.4? you listed on another forum it is possible to download the binaries from the release archives and install them? then proceed with upgrade procedures? Is it the same as the tarball install?

Is it also to possible to do mongodump and mongorestore to upgrade to 4.4? We are running on a standalone deployment.

Thanks,
Jeric