Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration needed before upgrade_from_maple #689

Closed
ibrmora opened this issue Jun 11, 2022 · 2 comments
Closed

Migration needed before upgrade_from_maple #689

ibrmora opened this issue Jun 11, 2022 · 2 comments
Labels
bug Bugs will be investigated and fixed as quickly as possible.

Comments

@ibrmora
Copy link
Contributor

ibrmora commented Jun 11, 2022

Bug description
When you upgrade from Maple to Nutmeg using command
tutor local upgrade --from=maple

the result

MySQLdb._exceptions.ProgrammingError: (1146, "Table 'openedx.user_tours_usertour' doesn't exist") ERROR: 1 Error: Command failed with status 1: docker-compose -f /root/.local/share/tutor/env/local/docker-compose.yml -f /root/.local/share/tutor/env/local/docker-compose.prod.yml -f /root/.local/share/tutor/env/local/docker-compose.tmp.yml --project-name tutor_local run --rm lms sh -e -c ./manage.py lms backpopulate_user_tours

to avoid the error run migration on both

tutor local run lms ./manage.py lms migrate
tutor local run cms ./manage.py cms migrate

then run tutor local upgrade --from=maple again

or add migration to upgrade_from_maple function
https://github.com/overhangio/tutor/blob/v14.0.0/tutor/commands/upgrade/local.py#L102

Environment

update from
tutor, version 13.2.3 open-release/maple.3
to
tutor, version 14.0.0 open-release/nutmeg.1

@regisb regisb added the bug Bugs will be investigated and fixed as quickly as possible. label Jun 11, 2022
@insad
Copy link

insad commented Jun 11, 2022

ibrmora added a commit to ibrmora/tutor that referenced this issue Jun 12, 2022
fix: Migration needed before upgrade_from_maple issue overhangio#689
ibrmora added a commit to ibrmora/tutor that referenced this issue Jun 13, 2022
ibrmora added a commit to ibrmora/tutor that referenced this issue Jun 13, 2022
fix: Migration needed before upgrade_from_maple issue ([overhangio#689](overhangio#689))
ibrmora added a commit to ibrmora/tutor that referenced this issue Jun 13, 2022
fix: Migration needed before upgrade_from_maple issue ([overhangio#689](overhangio#689))
ibrmora added a commit to ibrmora/tutor that referenced this issue Jun 13, 2022
fix: Migration needed before upgrade_from_maple issue overhangio#689
regisb pushed a commit that referenced this issue Jun 13, 2022
fix: Migration needed before upgrade_from_maple issue #689
regisb added a commit that referenced this issue Jun 13, 2022
- [Bugfix] Fix missing tables on migration from maple ([#689](#689)). (by @ibrmora)
- [Bugfix] Fix plugin patches in cms.env.yml template.
@regisb
Copy link
Contributor

regisb commented Jun 21, 2022

This is resolved in v14.0.1.

@regisb regisb closed this as completed Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bugs will be investigated and fixed as quickly as possible.
Projects
Development

No branches or pull requests

3 participants