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

fix: upgrade MySQL from 5.7 to 8.1 first and then to 8.4 #1102

Merged

Conversation

Danyal-Faheem
Copy link
Contributor

When a user attempts to directly upgrade their tutor instance from tutor v15 or earlier to tutor v18 or later, i.e upgrade from MySQL v5.7 or earlier to MySQL v8.4 or later, MySQL will crash with the container getting stuck in a boot loop. This is because upgrading directly from MySQL v5.7 -> v8.4 is not allowed. We therefore first jump to v8.1, build the data dictionary and then go to v8.4.

Note that this issue does not occur if one attempts to upgrade to tutor v16 or v17 first and then to tutor v18 because that upgrade path is acceptable for MySQL.

This is required when upgrading from Tutor v15 to v18 directly
MySQL does not allow direct upgrades from v5.7 to v8.4
@Danyal-Faheem Danyal-Faheem force-pushed the danyalfaheem/upgrade-mysql-5.7-to-8.4 branch from 1be1091 to c31f2e9 Compare August 7, 2024 15:10
@DawoudSheraz
Copy link
Contributor

@regisb FYI

@Danyal-Faheem Danyal-Faheem changed the base branch from master to nightly September 9, 2024 12:24
@Faraz32123
Copy link
Contributor

Hello @regisb, can u please have a look at this PR.

tutor/commands/upgrade/common.py Outdated Show resolved Hide resolved
tutor/commands/upgrade/common.py Outdated Show resolved Hide resolved
tutor/commands/upgrade/common.py Outdated Show resolved Hide resolved
tutor/commands/upgrade/common.py Outdated Show resolved Hide resolved
tutor/commands/upgrade/compose.py Outdated Show resolved Hide resolved
Copy link
Contributor

@regisb regisb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! thanks for bearing with my many comments.

@regisb regisb merged commit 0f2229b into overhangio:nightly Sep 26, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

4 participants