0

I'm running MongoDB within a ten year old node app, and in the process of upgrading node had to upgrade MongoDB. For some time, I have been using MongoDB community 4.4 to run the database, but in the process of upgrading to MongoDB community 7 (the latest) I got this error in the output log when I tried to run mongod through "brew services restart mongodb/brew/[email protected]:"

"This version of MongoDB is too recent to start up on the existing data files. Try MongoDB 4.2 or earlier."

I have reinstalled 4.4: the newly installed version gives this error and fails, but the older 4.4 actually worked. (Curiously -- trying to run mongodb/brew/mongodb-community I get no error messages at all, no output to the log file, but nothing works).

Several questions:

  1. Why does 4.4 not work now, when it did earlier? It appears I now have 4.4.29, as a result of the reinstallation. How can I go back to an earlier version?
  2. Why does mongodb/brew/mongodb-community give no output to the logfile, appears to succeed but actually fails?
  3. Is there a way of loading and running 4.2? Brew does not support anything before 4.4, it seems. Nor does there seem to be any way of installing and running mongodb 4.2 from the mongo site.
2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.