I ran the upgrade from the Android mobile phone app. I set it going and then switch the phone off. It is still happening 12 hours later with the Nextcloud logo and this:
This Nextcloud instance is currently in maintenance mode, which may take a while.
This page will refresh itself when the Nextcloud instance is available again.
Contact your system administrator if this message persists or appeared unexpectedly.
Thank you for your patience.