I tried docker-compose up mongo and I see the follow error in the output:
edx.devstack.mongo | 2020-08-05T14:33:13.046+0000 F CONTROL [initandlisten] ** IMPORTANT: UPGRADE PROBLEM: The data files need to be fully upgraded to version 3.4 before attempting an upgrade to 3.6; see http://dochub.mongodb.org/core/3.6-upgrade-fcv for more details.
edx.devstack.mongo | 2020-08-05T14:33:13.048+0000 I NETWORK [initandlisten] shutdown: going to close listening sockets...
I tried deleting the image and and running the docker-compose command again but same thing happens.
I’m running on Windows 10 using Docker toolbox and devstack used to run fine. I tried a devstack install on an Ubuntu VM and it works fine.
If you first upgraded from 3.2 to 3.4, there is a step between 3.4 to 3.6 where you need to run the following in MongoDB: db.adminCommand( { setFeatureCompatibilityVersion: “3.4” } )
I got stuck when using the native installation when I tried updating from 3.4 to 3.6 without running that command.
That’s because Ironwood runs 3.2. When you move your data to Juniper, you may need to upgrade to 3.4 and then to 3.6. Or go from 3.2 to 3.4 and then 3.6 on Ironwood before moving to Juniper.
I thought I was making a fresh install so there was no data to be migrated. But I think because my volumes were the same I needed to do the migration (not 100% sure about this I tried a bunch of stuff on 2 different computers! ).
PC 1: I deleted the docker-machine VM entirely and reinstalled it and it worked.
PC 2: I run the upgrade_mongo_3_6.sh and it worked.
The provision seems to be working so far (fingers crossed).
Hi Pierre!
Is it possible to have both versions of Mongo in the same computer? Maybe with two venvs? I would like to run both ironwood and juniper and be able to switch between them
I have never tried that. I am not running on Devstack either. I would probably not recommend it. But since I haven’t tried it I cannot answer you. Sorry.
I am facing the same problem while installing lilac devstack version , while running the “make dev.provision” , the script stuck for mongo , is there a way to troubleshoot and fix it ?