Manually resync Open edX database after an update

If, like me, right after Open edX platform update you incour in some error, the cause could be the mysql database not synced with the new models.

The command to launch is the following (from a sudo privileged user):

cd /edx/app/edxapp/edx-platform
sudo -u www-data /edx/bin/python.edxapp ./ lms --settings aws syncdb --migrate

The last command will trigger south database sync process. The –migrate, in my case, was mandatory.

Custom edx-platform git repository on your Open edX deploy (devstack)

If, despite the configuration of the /edx/app/edx_ansible/server-vars.yml file, the update script continues to fetch data from the edX repository (rather than the one you configured), then you can manually push the new origin into the repo:

cd /edx/app/edxapp/edx-platform
git remote set-url origin you_repo
sudo /edx/bin/update edx-platform master


Open edX, vagrant dirty shutdown and MongoDB

You always have to keep in mind that command vagrant up turns on a virtual machine.
When you turn off your workstation, remember to turn it off gracefully (with command vagrant halt or via SSH console).
It might happen to not remember the above suggestion. In that case you could encounter serious issues due to lock files still present on the filesystem (to testify a non-clean shutdown).
OPEN edX LMS module will refuse to start, due to missing Mongo DB connection. An error stating connection refuse will show up.