server icon indicating copy to clipboard operation
server copied to clipboard

during upgrade, show info on how to manually continue (via cli)

Open umlaeute opened this issue 3 years ago • 1 comments

I'm running a NextCloud instance with 50-100 users. I guess that's "medium" sized; in any case it's big enough that NextCloud refuses to finish upgrades via the webinterface and asks me instead to finish any upgrade process on the terminal.

This is typically easy enough by running:

occ upgrade
occ maintenance:mode --off

And then manually re-load the page.

What I find annoying is, that I have to think about this every single time I do an upgrade.

When my upgrade process (initiated via the web-updater) reaches the penultimate step, it shows a button:

Continue with web based updater

Disable maintenance mode and continue in the web based updater.

Now I know (from previous experience), that clicking this button will make the updater complain that I should use the CLI to continue the update process. But I don't fully remember which commands I need to type (in the two-monthly between upgrades of my NC instance, I do completely different things...).

Once I remembered which commands to type (see above) and executed them, I'm facing another dilemma: what to do next? The answer is easy: reload the updater page. But there is no indication that this is indeed the thing to do. For all I can see, reloading the updater page might as well give me a half-upgraded system, as i failed to complete all upgrade steps (this is obviously not the case; but i fear that it might be so, and this is what bothers me).

I would therefore suggest to change the wording of the above notice to something like this:

Continue with web based updater

Disable maintenance mode and continue in the web based updater.

Alternatively you can finialize the update process by running the following commands on your CLI:

occ upgrade
occ maintenance:mode --off

Once successfully completed, please reload this page.

As for the "reload this page", another option would be to just auto-reload the page once the upgrade is completed.

umlaeute avatar Aug 03 '22 08:08 umlaeute