I
I
i-pushkin2021-06-29 15:23:16
MongoDB
i-pushkin, 2021-06-29 15:23:16

How to migrate mongodb version 3.2.9 to 4.4.6?

There is a mongodb base running from under vends and mongi version 3.2.9. Linux host was created on it monga 4.4.6 is installed. I dumped on an old mongo and restored on a new one and ran into a problem - authentication does not work (judging by the changelog, the old version of authentication was cut out from the latest versions).
Temporarily the issue was resolved by disabling authentication (it is in the locale and we can temporarily allow it to work without authentication).
Question - how to solve the authentication issue? Tried using the authSchemaUpgrade
command on the new host however:

uncaught exception: ReferenceError: authSchemaUpgrade is not defined :

Please tell me the correct procedure for transferring or correcting the situation. Will a simple password change or user re-creation work?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question