Hey,
I downloaded the latest tutor and stopped my local instance, then ran the tutor local upgrade
command, but it runs into issues with the MongoDB upgrade, I last upgraded Mongo when the previous version of tutor required it so it was at 3.6. I had something similar happen to that upgrade process, but I was able to work around it by connecting to the container and running commands manually but this time the container keeps restarting and I’m unable to get things working. I get the following error when running tutor local upgrade
:
You are about to upgrade your Open edX platform. It is strongly recommended to make a backup before upgrading. To do so, run:
tutor local stop
sudo rsync -avr "$(tutor config printroot)"/ /tmp/tutor-backup/
In case of problem, to restore your backup you will then have to run: sudo rsync -avr /tmp/tutor-backup/ "$(tutor config printroot)"/
Are you sure you want to continue? [Y/n]
============================================
Upgrading MongoDb to v4.0.25
============================================
Environment generated in /home/centos/.local/share/tutor/env
docker-compose -f /home/centos/.local/share/tutor/env/local/docker-compose.yml -f /home/centos/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local build
redis uses an image, skipping
smtp uses an image, skipping
mysql uses an image, skipping
caddy uses an image, skipping
mongodb uses an image, skipping
elasticsearch uses an image, skipping
forum uses an image, skipping
lms uses an image, skipping
lms-worker uses an image, skipping
cms uses an image, skipping
cms-worker uses an image, skipping
nginx uses an image, skipping
docker-compose -f /home/centos/.local/share/tutor/env/local/docker-compose.yml -f /home/centos/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local up --remove-orphans -d mongodb
Creating tutor_local_mongodb_1 ... done
docker-compose -f /home/centos/.local/share/tutor/env/local/docker-compose.yml -f /home/centos/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local exec mongodb mongo --eval db.adminCommand({ setFeatureCompatibilityVersion: "4.0" })
cannot exec in a stopped state: unknown
Error: Command failed with status 126: docker-compose -f /home/centos/.local/share/tutor/env/local/docker-compose.yml -f /home/centos/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local exec mongodb mongo --eval db.adminCommand({ setFeatureCompatibilityVersion: "4.0" })
If I try to run docker-compose -f /home/centos/.local/share/tutor/env/local/docker-compose.yml -f /home/centos/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local up mongodb
to get some console feedback about what is happening I see this in the console, but I can’t seem to fix it even if I try to follow the suggested fix due to the container constantly restarting:
mongodb_1 | 2021-09-20T10:12:53.832+0000 F CONTROL [initandlisten] ** IMPORTANT: Collection admin.system.version is missing an UUID. We expect all collections to have UUIDs starting in FCV 3.6. Please make sure the FCV is version 3.6 before attempting an upgrade to 4.0; see http://dochub.mongodb.org/core/4.0-upgrade-fcv for more details. If the FCV is already 3.6, please try --repair with a 3.6 binary or initial sync to fix the data files.
Anyone got any clue how to fix this as currently I can’t get the openedx instance up and running again?
Thank you in advance for any assistance.