Update to 24.0.7 not working on some NC instances without any error message

Hi i have two nextcloud instances which are installed and configured identically.

On one I was able top upgrade to 24.0.7 but on the other one the Web updates redirects when press the start button directly to the dashboard and using the cli updater command the update seems to work but no downloading etc is done and there fore no update has been performed.

Nextcloud Updater - version: v24.0.0beta3-1-g67bf13b dirty

Current version is 24.0.6.

Update to Nextcloud 24.0.7 available. (channel: "stable")
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-24.0.7.zip
Open changelog β†—

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

Continue update? [y/N] y

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

[βœ”] Check for expected files
[βœ”] Check for write permissions
[βœ”] Create backup
[βœ”] Downloading
[βœ”] Verify integrity
[βœ”] Extracting
[βœ”] Enable maintenance mode
[βœ”] Replace entry points
[βœ”] Delete old files
[βœ”] Move new files in place
[βœ”] 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

Any idea why this could happen?

Can you check the version in your config/config.php and in versions.php?

in config/config.php:
β€˜version’ => β€˜24.0.6.1’,

in version.php:
$OC_Version = array(24,0,6,1);
$OC_VersionString = β€˜24.0.6’;

What confuse me is that obviously no download is happening and I have no idea why.

You are sure it is not downloading? Or the zip file already exists and therefore is not downloaded. Checkout the updater folder (it might be in the apps folder). Delete the zip file if you find it and restart the updater if it downloads it properly then.

my updater folder is in /var/www/nextcloud/updater and it don’t contains anything else but the index.php and updater.phar.

There is no additional updater folder in the apps folder.

Is there a way to run the updater in verbose mode to see more details or generate a log file?

Or it was in the data folder perhaps…

yes there it is. But looks like this update folder is an old one because the backup is for 24.0.2.1 and I am now on 24.0.6

There is also the update log:

2022-11-08T13:29:26+0000 tzRYMFPYsH [info] updater cli is executed
2022-11-08T13:29:26+0000 tzRYMFPYsH [info] currentStep()
2022-11-08T13:29:26+0000 tzRYMFPYsH [info] Step 12 is in state "end".
2022-11-08T13:29:26+0000 tzRYMFPYsH [info] current version: 24.0.6 build time: 2022-10-06T09:18:03+00:00 3aabb381b9e7ffc5b13f951b8fb89494fe903a2c
2022-11-08T13:29:26+0000 tzRYMFPYsH [info] getUpdateServerResponse()
2022-11-08T13:29:26+0000 tzRYMFPYsH [info] updaterServer: https://updates.nextcloud.com/updater_server/
2022-11-08T13:29:26+0000 tzRYMFPYsH [info] releaseChannel: stable
2022-11-08T13:29:26+0000 tzRYMFPYsH [info] internal version: 24.0.6.1
2022-11-08T13:29:26+0000 tzRYMFPYsH [info] updateURL: https://updates.nextcloud.com/updater_server/?version=24x0x6x1xxxstablexx2022-10-06T09%3A18%3A03%2B00%3A00+3aabb381b9e7ffc5b13f951b8fb89494fe903a2cx8x1x2
2022-11-08T13:29:26+0000 tzRYMFPYsH [info] getUpdateServerResponse response: Array
(
    [version] => 24.0.7.1
    [versionstring] => Nextcloud 24.0.7
    [url] => https://download.nextcloud.com/server/releases/nextcloud-24.0.7.zip
    [web] => https://docs.nextcloud.com/server/24/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=24.0.7
    [autoupdater] => 1
    [eol] => 0
    [signature] => elUs00IN4GE7VThuRHuwfMF/EWg4t0xzVCKL3UFN2Rfdwwrs89eHWmMJpdP2TB8z
I/k3/K+sFs6LtkzLyC8TA+3qeBLnxzN0b+n1u1R8eKqUn/nidKc8FkT4XtIkAKqa
Hpo485GXFvndphQO4wpK0sencvw6D1lVrheRAKcaKsOvjXkG8sG1se4O/hRakifj
zJy1PfWqHLTIfon7w4qSWJoG5IA5BIfc/kY6QHwpbYUxg4xHCrbKhdSkmpw4BQyh
DiBRgOoMiNGrXgkgXnUJdVVP6YskZW8SS+mzKd2ULp5ZOJodyuCShBfEWcuDTxHD
9vZSz6VScY3/v5pthLAMAg==
)

2022-11-08T13:29:26+0000 tzRYMFPYsH [info] checkForUpdate() Array
(
    [version] => 24.0.7.1
    [versionstring] => Nextcloud 24.0.7
    [url] => https://download.nextcloud.com/server/releases/nextcloud-24.0.7.zip
    [web] => https://docs.nextcloud.com/server/24/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=24.0.7
    [autoupdater] => 1
    [eol] => 0
    [signature] => elUs00IN4GE7VThuRHuwfMF/EWg4t0xzVCKL3UFN2Rfdwwrs89eHWmMJpdP2TB8z
I/k3/K+sFs6LtkzLyC8TA+3qeBLnxzN0b+n1u1R8eKqUn/nidKc8FkT4XtIkAKqa
Hpo485GXFvndphQO4wpK0sencvw6D1lVrheRAKcaKsOvjXkG8sG1se4O/hRakifj
zJy1PfWqHLTIfon7w4qSWJoG5IA5BIfc/kY6QHwpbYUxg4xHCrbKhdSkmpw4BQyh
DiBRgOoMiNGrXgkgXnUJdVVP6YskZW8SS+mzKd2ULp5ZOJodyuCShBfEWcuDTxHD
9vZSz6VScY3/v5pthLAMAg==
)

2022-11-08T13:29:26+0000 tzRYMFPYsH [info] getChangelogURL()
2022-11-08T13:29:26+0000 tzRYMFPYsH [info] end of checkForUpdate() Update to Nextcloud 24.0.7 available. (channel: "stable")<br /><span class="light">Following file will be downloaded automatically:</span> <code class="light">https://download.nextcloud.com/server/releases/nextcloud-24.0.7.zip</code><br /><a class="external_link" href="https://nextcloud.com/changelog/#24-0-7" target="_blank" rel="noreferrer noopener">Open changelog β†—</a>
2022-11-08T13:29:32+0000 tzRYMFPYsH [info] updater started
2022-11-08T13:29:32+0000 tzRYMFPYsH [info] update of code successful.
2022-11-08T13:29:49+0000 tzRYMFPYsH [info] maintenance mode is disabled - return code: 0
2022-11-09T07:53:26+0000 YJVOc2kHpt [info] updater cli is executed
2022-11-09T07:53:26+0000 YJVOc2kHpt [info] currentStep()
2022-11-09T07:53:26+0000 YJVOc2kHpt [info] Step 12 is in state "end".
2022-11-09T07:53:26+0000 YJVOc2kHpt [info] current version: 24.0.6 build time: 2022-10-06T09:18:03+00:00 3aabb381b9e7ffc5b13f951b8fb89494fe903a2c
2022-11-09T07:53:26+0000 YJVOc2kHpt [info] getUpdateServerResponse()
2022-11-09T07:53:26+0000 YJVOc2kHpt [info] updaterServer: https://updates.nextcloud.com/updater_server/
2022-11-09T07:53:26+0000 YJVOc2kHpt [info] releaseChannel: stable
2022-11-09T07:53:26+0000 YJVOc2kHpt [info] internal version: 24.0.6.1
2022-11-09T07:53:26+0000 YJVOc2kHpt [info] updateURL: https://updates.nextcloud.com/updater_server/?version=24x0x6x1xxxstablexx2022-10-06T09%3A18%3A03%2B00%3A00+3aabb381b9e7ffc5b13f951b8fb89494fe903a2cx8x1x2
2022-11-09T07:53:26+0000 YJVOc2kHpt [info] getUpdateServerResponse response: Array
(
    [version] => 24.0.7.1
    [versionstring] => Nextcloud 24.0.7
    [url] => https://download.nextcloud.com/server/releases/nextcloud-24.0.7.zip
    [web] => https://docs.nextcloud.com/server/24/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=24.0.7
    [autoupdater] => 1
    [eol] => 0
    [signature] => elUs00IN4GE7VThuRHuwfMF/EWg4t0xzVCKL3UFN2Rfdwwrs89eHWmMJpdP2TB8z
I/k3/K+sFs6LtkzLyC8TA+3qeBLnxzN0b+n1u1R8eKqUn/nidKc8FkT4XtIkAKqa
Hpo485GXFvndphQO4wpK0sencvw6D1lVrheRAKcaKsOvjXkG8sG1se4O/hRakifj
zJy1PfWqHLTIfon7w4qSWJoG5IA5BIfc/kY6QHwpbYUxg4xHCrbKhdSkmpw4BQyh
DiBRgOoMiNGrXgkgXnUJdVVP6YskZW8SS+mzKd2ULp5ZOJodyuCShBfEWcuDTxHD
9vZSz6VScY3/v5pthLAMAg==
)

2022-11-09T07:53:26+0000 YJVOc2kHpt [info] checkForUpdate() Array
(
    [version] => 24.0.7.1
    [versionstring] => Nextcloud 24.0.7
    [url] => https://download.nextcloud.com/server/releases/nextcloud-24.0.7.zip
    [web] => https://docs.nextcloud.com/server/24/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=24.0.7
    [autoupdater] => 1
    [eol] => 0
    [signature] => elUs00IN4GE7VThuRHuwfMF/EWg4t0xzVCKL3UFN2Rfdwwrs89eHWmMJpdP2TB8z
I/k3/K+sFs6LtkzLyC8TA+3qeBLnxzN0b+n1u1R8eKqUn/nidKc8FkT4XtIkAKqa
Hpo485GXFvndphQO4wpK0sencvw6D1lVrheRAKcaKsOvjXkG8sG1se4O/hRakifj
zJy1PfWqHLTIfon7w4qSWJoG5IA5BIfc/kY6QHwpbYUxg4xHCrbKhdSkmpw4BQyh
DiBRgOoMiNGrXgkgXnUJdVVP6YskZW8SS+mzKd2ULp5ZOJodyuCShBfEWcuDTxHD
9vZSz6VScY3/v5pthLAMAg==
)

2022-11-09T07:53:26+0000 YJVOc2kHpt [info] getChangelogURL()
2022-11-09T07:53:26+0000 YJVOc2kHpt [info] end of checkForUpdate() Update to Nextcloud 24.0.7 available. (channel: "stable")<br /><span class="light">Following file will be downloaded automatically:</span> <code class="light">https://download.nextcloud.com/server/releases/nextcloud-24.0.7.zip</code><br /><a class="external_link" href="https://nextcloud.com/changelog/#24-0-7" target="_blank" rel="noreferrer noopener">Open changelog β†—</a>
2022-11-09T07:53:37+0000 YJVOc2kHpt [info] updater started
2022-11-09T07:53:37+0000 YJVOc2kHpt [info] update of code successful.
2022-11-09T07:53:52+0000 YJVOc2kHpt [info] maintenance mode is disabled - return code: 0

As you can see in the logs update to 24.0.7 is performing but not successful.

Ok deleting the update folder in data dir was helpful. Now the update has been done successfully. Thanks

1 Like