watchmanmonitor reported that after manually rebuilding a Discourse instance via command line (git pull and ./launcher rebuild app), the admin panel incorrectly persisted the “Currently Upgrading” status, preventing further upgrades. This issue occurred on an instance that had previously failed an upgrade due to insufficient disk space. While riking suggested the rebuild should clear the Redis flag and codinghorror recommended restarting the container or rebooting, watchmanmonitor confirmed these steps were ineffective. Yuun suggested using the “Reset Upgrade” button found at /admin/upgrade, noting it had resolved a similar phantom status in the past. eviltrout offered an alternative solution of flushing Redis directly via the container shell but asked for clarification on how the flag became stuck. watchmanmonitor noted the “Reset Upgrade” button was initially difficult to locate as it appeared non-clickable. Ultimately, watchmanmonitor proceeded with Yuun’s suggestion; clicking the reset button triggered a lengthy git reset process but successfully cleared the status. The thread concluded with watchmanmonitor emphasizing that the core bug remains: a full rebuild should automatically clear the “currently upgrading” flag following a failed upgrade, rather than requiring manual intervention.
I’ve had the same issue once after the upgrade process stalled and I had to rebuild - the “Upgrading…” status didn’t clear until I hit the “Reset Upgrade” button and then everything cleared up (no actual reset process seemed to take place, it just cleared the “phantom upgrade”, so to speak).
Would advise caution / checking with folks more knowledgeable about the system before trying this, though.
Had you started an upgrade in the web side before you did it on the command line? I’m just trying to understand how the flag got stuck in that position.
The git-reset looked like it had a Lot of files to change for being just 52 commits behind, and it had to bundle a lot of stuff… took about 3x longer than expected.
However, it made it through Ok.
I guess all that’s left to do here is have a rebuild clear any “currently upgrading” flag.
heh, clicking buttons in the UI the team built isn’t really gambling.. I just didn’t see that because I didn’t think the “busy upgrading” button was clickable.
The underlying issue is that, after a failed rebuild (no disk space in my case) a full rebuild didn’t clear the flag.
I think once that’s accounted for, we’re good here.