Nextcloud upgrade from 30.0.2 to 30.0.5 failed

[details=“Update between minor versions failed”]

Hi all!

My Nextcloud is running on 1&1 (aka IONOS) Webhosting (PHP version is 8.2). This days I upgrade my Nextcloud installation from version 28 over 29 to currently 30.0.2. Everything was fine and without any problems.

I do the upgrade by set current version in maintenance mode, transfer the new version from expanded archive to webserver, call the new version over webbrowser and start update. First there is a fail message, but I start ‘occ upgrade’ for the new version on the webserver and after this everything is fine and all works. This works for all steps from 28 to 30.0.2.

But if I try to update from currently used version 30.0.2 to new 30.0.5 I get the message ‘Exception: Updates between multiple major versions and downgrades are unsupported’. This message come during update over webbrowser, calling the new version, and also at ‘occ upgrade’ on the webserver.

What happens there? I mean, update from 30.02 to 30.0.5 is not changing the major version. Both are the same major version, just different in minor version.

Any ideas?

Best regards

Please check your nextcloud.log. There should be an entry just before this that says:

starting upgrade from [...]

What does it say?

The log file, downloaded from the currently running version 30.0.2, contains the info: starting upgrade from 29.0.11.1 to 30.0.2.2

I am trying to get the information from the installation attempt of 30.0.5

Update:
An update from 30.0.2 to 30.0.4 successfully done. But update from 30.0.4 to 30.0.5 also failed with error message ‘Exception: Updates between multiple major versions and downgrades are unsupported. Update failed’.

My Nextcloud upgrade from 30.0.1 to 30.0.6 also failed, and I also used the web updater in a shared hosting environment.

  1. The update stops in the 3rd ‘Create backup’ step by a gateway timeout, not mentioned in the log.
  2. Retry Update by button click
  3. The update stops in the 6th ‘Extract download’ step by a failed parsing response, no further details in the web updater and not mentioned in the log.
  4. Retry Update by button click
  5. The update stops again in the 6th ‘Extract download’ step by a failed parsing response and with the comment in the web updater:
  • ‘Step 6 is currently in process. Please reload this page later or remove the following file to start from scratch: …/data/updater-oc0w2tg1yvev/.step’
  1. Pressing the ‘Retry update’ button and reloading the page results both to the updater.log entry:
  • 2025-02-25T11:06:15+0100 zQj0u4ZHOS [info] Step 6 is in state “start”.

I stick in the web updater loop with timeouts and missing responses also after removing the .step file and starting over again.

Help me please: How to proceed?

Shall I start the OCC Update command

  • on top of the running web based updater or
  • shall I remove the web updater temporary results?

I tried with the upload of two PHP files. The first calls the second one:

<?php
exec("php pyork-occ.php 2>&1", $out, $result);
echo "Return Code: " .$result ."<br>";
echo "Script Output: " ."<br>";
echo "<pre>"; print_r($out);
?>

sudo -u www-data php /var/www/nextcloud/updater/updater.phar --no-interaction

I shall better work with SSL or Cronjob. Does Nextcloud server administration work with Cronjobs too?

The Nextcloud Web Updater and PHP in general have long since reached the limits of server timeouts. Can the Web Updater still be offered with a clear conscience? Is the Web Updater just an alibi, a concession to PHP as a programming language for simple websites and shared hosting?

Thank you

I decided for SSH access.

My answer to this post confirms the bug report.

Thank you all, gals and guys!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.