Update Probloems after 25.0.4

i never had problems with the web0-based updater, from very early NC versions until 25.04.

update from 25.04 to 25.05 or 25.06 fail with the same pattern:
the web-base steps are all executed without any issue. when it comes to enabling maintenance for continuation with web based updater, NC would switch directly to FILES view without any error message while i am still on 25.0.4.

trying to delete relevant files on server and executing occ upgrade fails likewise with no error message. also logs do not show any errors…

i am at a loss what else to do!

any advice would be very much welcome as i am stuck with 25.04.

andreas

Could you describe the steps, what you exactly tried?

thanks for your quick reply!

here is what i did:

========================================
Web based update

(1) removed the updater- file
(2) logged into NC instance
(3) Application Settings screen
Version
NextCloud.IIDj 25.0.4
Update
A new version is available: Nextcloud 25.0.6
All apps have a compatible version for this Nextcloud version available.
(4) click [Open Updater]
> Start update
> Continue with web based updater
Disable maintenance mode and continue in the web based updater

	Done, Go back to your... switches automatically to Files view

(5) Application Settings screen
Version
NextCloud.IIDj 25.0.4
Update
A new version is available: Nextcloud 25.0.6
All apps have a compatible version for this Nextcloud version available.

as this was, again, unsuccessful, i made a MANUAL update.

========================================
MANUAL update

(1) #apachectl stop

(2) rename existing httpd/nextcloud/ dir
(3) #crontab -u apache -e
comment nextcloud job
(4) #unzip nextcloud-25.0.6.zip into new httpd/nextcloud/ dir
(5) copy old config.php file to new config.php
(6) #chown -R apache:apache nextcloud
(7) #find nextcloud/ -type d -exec chmod 750 {} ;
(8) #find nextcloud/ -type f -exec chmod 640 {} ;

(9) #sudo -u apache php occ upgrade
> Nextcloud is already latest version
(10) #crontab -u apache -e
uncomment nextcloud job

(11) copy missing apps from old nextcloud/apps dir

(12)#apachectl start

(13) logged into NC instance
(14) Application Settings screen
Version
NextCloud.IIDj 25.0.4
Update
A new version is available: Nextcloud 25.0.6

i am at a loss…

thank you for any further hint…

These would have been the steps for a stuck update:


Step 1

Delete this folder:

nextcloud/data/updater-$instanceid

(instanceid is defined in your config/config.php)

Step 2

Run the updater by commandline, this way:

sudo -u www-data /usr/bin/php -d memory_limit=512M -f /var/www/nextcloud/updater/updater.phar

(Adjust the paths and web server user to your circumstances)


You could revert to your previous state (with a backup) and try these steps anyway.

Much luck

hi,

thanks for your advoce,

however, following each step, i am still not able to update…

message in terminal is

Update of code successful.
Updater run in non-interactive mode - will start “occ upgrade” now.

Nextcloud is already latest version

Updater run in non-interactive mode - will disable maintenance mode now.
Maintenance mode already disabled

Maintenance mode is disabled

it is always the same pattern regardless of what way i try…
i wonder why it is assumed that i am already on the latest version, while the Administrative Settings keep insisting that i am on 25.0.4

i am indeed at a loss. particularly as so far, before 25.0.4, i never encountered such issue

cheers,

andreas

BTW, running this i get that:

sudo -u apache php occ status

  • installed: true
  • version: 25.0.4.1
  • versionstring: 25.0.4
  • edition:
  • maintenance: false
  • needsDbUpgrade: false
  • productname: Nextcloud
  • extendedSupport: false

hope this helps…

now it got even weirder…

after taking out the ‘version’ => ‘25.0.4.1’, line from config.php, and trying the

sudo -u apache php occ upgrade

command, i get the message that Nextcloud is not installed.

restoring config.php to its previous state (re-inserting the version line, and trying the following command:

sudo -u apache php updater/updater.phar --no-interaction

i get this:

Nextcloud Updater - version: v25.0.3-2-gd49ee0d

PHP Warning: Undefined array key “datadirectory” in phar:///<…>/updater/updater.phar/lib/Updater.php on line 187
Could not read data directory from config.php.

no way to restore…

Of course it get weird when you do weird things!

enter the datadirectory into your config.php as described in config.sample.php

thanks for your holding on!

surely, i did NOT delete the datadirectory entry… i took out the ‘version’ entry.

after all, what is strange/weird/unexplainable: although i replaced the 25.04 version web directory with the newest 25.0.6 directory, while copying the current config.php to the 25.06 directory i am still getting the feedback, when trying to UPGRADE, that no upgrade is necessary as i am on the most current version, 25.0.4…

hence, something must be going wrong with the version id…

but i can not find the cause of all this '-(

andreas

made a clean install of 25.0.4 - and tried to update from there (web-based/manual) to no avail '-(

another manual attempt to clean install the 25.06.1 version still shows:

Nextcloud is already latest version

after running
sudo -u apache php occ upgrade

the version.php file has
$OC_Version = array(25,0,6,1);
$OC_VersionString = ‘25.0.6’;

and regardless of changing in /config/config.php the

'version' => '25,0,6,1',

i am still stuck with 25.04.1 and the

Nextcloud is already latest version

under index.php/settings/admin/overview is still get this message

Version

NextCloud.IIDj 25.0.4

Update

A new version is available: Nextcloud 25.0.6
All apps have a compatible version for this Nextcloud version available.

my ideas are exhausted… will appreciate very much any pointer top the possible cause

andreas

SOLVED.

the issue was OPCACHE!

after deleting all directories in /var/lib/php/opcache/ i could complete the UPGRADE

thanks for everybodies attempt to help!

andreas