hellekin encountered upgrade issues after moving from Discourse v2.3.5 to v2.3.6 via the admin interface, resulting in a stuck upgrade state and a migration error referencing Rails 6.0. After investigation, gerhard suggested a plugin might be the cause, which hellekin confirmed: the discourse-policy plugin contained Rails 6.0 migrations incompatible with the stable branch’s Rails 5.2. gerhard fixed the plugin’s migrations in a commit, and after hellekin rebuilt the container using ./launcher rebuild standalone, the upgrade completed successfully hellekin. The issue was plugin-specific and resolved by updating the plugin’s migration code to be compatible with the stable branch’s Rails version.
I upgraded today to v2.3.6, the stable release from 3 days ago. I used the admin interface, successfully upgraded the docker, then ended up with an “infinite” upgrade… Checking back on the admin page, it would announce v2.3.5, but listing the upgrades would mention “still upgrading”. After reloading, I had “up to date” for all, but the v2.3.5 still showed on the admin page.
Workaround?
At this point I decided to run ./launcher rebuild standalone, and the bootstrap failed with a migration error:
ArgumentError: Unknown migration version "6.0"; expected one of "4.2", "5.0", "5.1", "5.2"
I could restart the container with ./launcher start standalone, and it showed everything is fine, and up to date to v2.3.6.
I suppose this has to do with the upgrade to Rails 6.
Did anyone else encounter issues upgrading from v2.3.5 to v2.3.6?