Nextcloud does not update to newest version

Creating a bug report/issue

Required Information

  • DietPi version |
  • G_DIETPI_VERSION _CORE=8
  • G_DIETPI_VERSION_SUB=16
  • G_DIETPI_VERSION_RC=2
  • G_GITBRANCH=‘master’
  • G_GITOWNER=‘MichaIng’
  • G_LIVE_PATCH_STATUS[0]=‘not applicable’
  • Distro version | bullseye
  • Kernel version | Linux DietPi 6.1.11-meson64 #23.02.2 SMP PREEMPT Sat Feb 18 00:07:55 UTC 2023 aarch64 GNU/Linux
  • Architecture | arm64
  • SBC model | Odroid N2 (aarch64)

Additional Information (if applicable)

  • Software title | Nextcloud version 25.0.1
  • Was the software title installed freshly or updated/migrated?
    • Try to update

Steps to reproduce

  1. run phpenmod phar
  2. run sudo -u www-data php /var/www/nextcloud/updater/updater.phar

Expected behaviour

  • Nextcloud should update to latest version

Actual behaviour

  • Not updating to latest version

Extra details

The log of update:
root@DietPi:~# phpenmod phar
root@DietPi:~# sudo -u www-data php /var/www/nextcloud/updater/updater.phar
Nextcloud Updater - version: v25.0.0beta3-17-gef6cf2d

Current version is 25.0.1.

Update to Nextcloud 25.0.6 available. (channel: “stable”)
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-25.0.6.zip
Open changelog :arrow_upper_right:

Steps that will be executed:
[:heavy_check_mark:] Check for expected files
[:heavy_check_mark:] Check for write permissions
[:heavy_check_mark:] Create backup
[:heavy_check_mark:] Downloading
[:heavy_check_mark:] Verify integrity
[:heavy_check_mark:] Extracting
[:heavy_check_mark:] Enable maintenance mode
[:heavy_check_mark:] Replace entry points
[:heavy_check_mark:] Delete old files
[:heavy_check_mark:] Move new files in place
[:heavy_check_mark:] Done

Continue update? [y/N] y

Info: Pressing Ctrl-C will finish the currently running step and then stops the updater.

[:heavy_check_mark:] Check for expected files
[:heavy_check_mark:] Check for write permissions
[:heavy_check_mark:] Create backup
[:heavy_check_mark:] Downloading
[:heavy_check_mark:] Verify integrity
[:heavy_check_mark:] Extracting
[:heavy_check_mark:] Enable maintenance mode
[:heavy_check_mark:] Replace entry points
[:heavy_check_mark:] Delete old files
[:heavy_check_mark:] Move new files in place
[:heavy_check_mark:] Done

Update of code successful.

Should the “occ upgrade” command be executed? [Y/n] y
Nextcloud is already latest version

Keep maintenance mode active? [y/N] n
Maintenance mode already disabled

Maintenance mode is disabled
root@DietPi:~#

Also the web updater is not working.
Can anybody explain me, why that happens?

Looks all right. What exactly is not working? Are you not on 25.0.6 now when visiting the Nextcloud web UI?

Ah I see, so database migration does not happen.

What can i do to make the migration happen?

Which version does the config.php show?

grep version /var/www/nextcloud/config/config.php

‘version’ => ‘25.0.1.1’

Does /mnt/dietpi_userdata/nextcloud_data/nextcloud.log or the one below the updater dir contain any hint?

I just try it one more time. In the nextcloud.log there are no logs.

There is only a folder “updater-ocqxacfmyerj” with the folders “downloads” and “backups” in it.

Here is the log of updater.log, which is in the same directory as the nextcloud.log:

2023-05-07T09:26:56+0000 LJOCfEiddo [info] updater cli is executed
2023-05-07T09:26:56+0000 LJOCfEiddo [info] currentStep()
2023-05-07T09:26:56+0000 LJOCfEiddo [info] Step 12 is in state "end".
2023-05-07T09:26:56+0000 LJOCfEiddo [info] current version: 25.0.1 build time: 2022-11-03T11:17:24+00:00 8896b40164f0e26c490c15514e97781e0037948c
2023-05-07T09:26:56+0000 LJOCfEiddo [info] getUpdateServerResponse()
2023-05-07T09:26:56+0000 LJOCfEiddo [info] updaterServer: https://updates.nextcloud.com/updater_server/
2023-05-07T09:26:56+0000 LJOCfEiddo [info] releaseChannel: stable
2023-05-07T09:26:56+0000 LJOCfEiddo [info] internal version: 25.0.1.1
2023-05-07T09:26:56+0000 LJOCfEiddo [info] updateURL: https://updates.nextcloud.com/updater_server/?version=25x0x1x1xxxstablexx2022-11-03T11%3A17%>
2023-05-07T09:26:56+0000 LJOCfEiddo [info] getUpdateServerResponse response: Array
(
    [version] => 25.0.6.1
    [versionstring] => Nextcloud 25.0.6
    [url] => https://download.nextcloud.com/server/releases/nextcloud-25.0.6.zip
    [web] => https://docs.nextcloud.com/server/25/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=25.0.6
    [autoupdater] => 1
    [eol] => 0
    [signature] => sxfNq+YPPX1+8V5i9Y0K9fibThnfsy4c/RNmi8tBQ4i3tdgZvc7Kk3SCErSUfXe9
zoNSmjnnkD+wCYkcCDSzXl7NHf3jxYGwqsMg20OblJvpqoc6zFjCxQxkjQuTwPuZ
ltqw972/0HlOujHToZOumAg6xlgDqFsJZYZwLNOwo/i+19bzjVKNATAWeWVxA90t
Jatlf1fgxZbz7zJM99fqPuihiQhenyQpV3mTbyLBI2nfncjCJspBL28MOtNZlApk
heWkhBs9x3j1VxZ6vgA81pIS/ef0RuYK8ucyIXGZoX10Cu/V1vhFEEPyqoWTkJxH
NUvbVhPtdD+5oFkvX/gt3w==
)

2023-05-07T09:26:56+0000 LJOCfEiddo [info] checkForUpdate() Array
(
    [version] => 25.0.6.1
    [versionstring] => Nextcloud 25.0.6
    [url] => https://download.nextcloud.com/server/releases/nextcloud-25.0.6.zip
    [web] => https://docs.nextcloud.com/server/25/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=25.0.6
    [autoupdater] => 1
    [eol] => 0
    [signature] => sxfNq+YPPX1+8V5i9Y0K9fibThnfsy4c/RNmi8tBQ4i3tdgZvc7Kk3SCErSUfXe9
zoNSmjnnkD+wCYkcCDSzXl7NHf3jxYGwqsMg20OblJvpqoc6zFjCxQxkjQuTwPuZ
ltqw972/0HlOujHToZOumAg6xlgDqFsJZYZwLNOwo/i+19bzjVKNATAWeWVxA90t
Jatlf1fgxZbz7zJM99fqPuihiQhenyQpV3mTbyLBI2nfncjCJspBL28MOtNZlApk
heWkhBs9x3j1VxZ6vgA81pIS/ef0RuYK8ucyIXGZoX10Cu/V1vhFEEPyqoWTkJxH
NUvbVhPtdD+5oFkvX/gt3w==
)

2023-05-07T09:26:56+0000 LJOCfEiddo [info] getChangelogURL()
2023-05-07T09:26:56+0000 LJOCfEiddo [info] end of checkForUpdate() Update to Nextcloud 25.0.6 available. (channel: "stable")<br /><span class="lig>
2023-05-07T09:26:57+0000 LJOCfEiddo [info] updater started
2023-05-07T09:26:57+0000 LJOCfEiddo [info] update of code successful.
2023-05-07T09:27:08+0000 LJOCfEiddo [info] maintenance mode is disabled - return code: 0

Anyone can help me with that?

You could try updating manually:
Upgrade manually — Nextcloud latest Administration Manual latest documentation

I found out, how to fix this issue:

First i executed the command

ncc maintenance:repair

then the update like mentioned in the Dietpi-Docu

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