Upgrade 23.0.2 -> 23.0.3

Hello,

I am facing an upgrade problem from 23.0.2 to 23.0.3. When I open the updater, all steps are marked as successful:
Bildschirmfoto von 2022-03-25 21-52-24

Clicking the button “Update” shows the Button " [Go back to your Nextcloud instance to finish the update]" immediately, after some seconds the Nextcloud files page loads. This is the updater.log:

cat updater.log
2022-03-25T21:42:40+0100 9kiMxXdR7q [info] request to updater
2022-03-25T21:42:40+0100 9kiMxXdR7q [info] currentStep()
2022-03-25T21:42:40+0100 9kiMxXdR7q [info] Step 12 is in state "end".
2022-03-25T21:42:40+0100 9kiMxXdR7q [info] show HTML page
2022-03-25T21:42:40+0100 9kiMxXdR7q [info] current version: 23.0.2 build time: 2022-02-15T13:38:20+00:00 b9a56ee753ce96a6ed9cd3176e3e5cd891db26cd
2022-03-25T21:42:40+0100 9kiMxXdR7q [info] getUpdateServerResponse()
2022-03-25T21:42:40+0100 9kiMxXdR7q [info] updaterServer: https://updates.nextcloud.com/updater_server/
2022-03-25T21:42:40+0100 9kiMxXdR7q [info] releaseChannel: stable
2022-03-25T21:42:40+0100 9kiMxXdR7q [info] internal version: 23.0.2.1
2022-03-25T21:42:40+0100 9kiMxXdR7q [info] updateURL: https://updates.nextcloud.com/updater_server/?version=23x0x2x1xxxstablexx2022-02-15T13%3A38%3A20%2B00%3A00+b9a56ee753ce96a6ed9cd3176e3e5cd891db26cdx7x4x16
2022-03-25T21:42:40+0100 9kiMxXdR7q [info] getUpdateServerResponse response: Array
(
    [version] => 23.0.3.2
    [versionstring] => Nextcloud 23.0.3
    [url] => https://download.nextcloud.com/server/releases/nextcloud-23.0.3.zip
    [web] => https://docs.nextcloud.com/server/23/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=23.0.3
    [autoupdater] => 1
    [eol] => 0
    [signature] => F+pNP6JiJNBCNsp/YzxYQGyJBO4Tza41vj75ThOKsc8vVbL6uj/vVp5yn3l5NF4A
nfPPQXyxZsoeXbKujMkMPfKoGVslRv2zuoZFKhajeo/7wz3TyNdD84JLnACdvmDZ
TDM8Mumn8PgNBVg8Uit+oIj4bz+5fPWH1ZRZXd86fmM/nZPGxmQb5+dYWi8zUT84
zfH4O9L5mXBsVr8CVGgCJrLW5ReULUVXgVJy/K9LI8gaLHhhCJayp359ZmYsezbm
DwSK0UeNMkZz/N9Pg/2RSx2Jm6GACoO0DEkFdhEeCw5u7ZvcIWTQng0L0T3+OCu7
GVV0y4592N4BfRZIsq/Wzw==
)

2022-03-25T21:42:40+0100 9kiMxXdR7q [info] checkForUpdate() Array
(
    [version] => 23.0.3.2
    [versionstring] => Nextcloud 23.0.3
    [url] => https://download.nextcloud.com/server/releases/nextcloud-23.0.3.zip
    [web] => https://docs.nextcloud.com/server/23/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=23.0.3
    [autoupdater] => 1
    [eol] => 0
    [signature] => F+pNP6JiJNBCNsp/YzxYQGyJBO4Tza41vj75ThOKsc8vVbL6uj/vVp5yn3l5NF4A
nfPPQXyxZsoeXbKujMkMPfKoGVslRv2zuoZFKhajeo/7wz3TyNdD84JLnACdvmDZ
TDM8Mumn8PgNBVg8Uit+oIj4bz+5fPWH1ZRZXd86fmM/nZPGxmQb5+dYWi8zUT84
zfH4O9L5mXBsVr8CVGgCJrLW5ReULUVXgVJy/K9LI8gaLHhhCJayp359ZmYsezbm
DwSK0UeNMkZz/N9Pg/2RSx2Jm6GACoO0DEkFdhEeCw5u7ZvcIWTQng0L0T3+OCu7
GVV0y4592N4BfRZIsq/Wzw==
)

The third line: “Step 12 is in state “end”.”
Nextcloud.log, Apache ssl_access.log and error.log and php7.4-fpm.log do not show any errors.

Nextcloud version: 23.0.2
Operating system and version: Raspbian OS/Debian Buster
Apache or nginx version: Apache/2.4.41 (Debian)
PHP version: 7.4

Is there any way to fix it?

Best regards,

Franz

8 posts were split to a new topic: No help from developers in the forum

If possible use the command line updater and not the web updater.

sudo -u www-data php /path/to/nextcloud/updater/updater.phar

Read documentation.

if you can rerun the update raise the error logging in php if you don’t see any errors in the log.

If he executes the command
sudo -u www-data php /path/to/nextcloud/updater/updater.phar
there is perhaps another approach to solve the problem.
With the documentation the user knows that there are different update paths.

Thank you for your advice. I did not know about the CLI updater. But the result is the same, you see all steps are marked successful from the beginning:

~ $ sudo -u www-data php /var/www/nextcloud/updater/updater.phar
Nextcloud Updater - version: v20.0.0beta4-11-g68fa0d4

Current version is 23.0.2.

Update to Nextcloud 23.0.3 available. (channel: "stable")
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-23.0.3.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] 
Maintenance mode already disabled

Maintenance mode is disabled

The output from status.php:
{“installed”:true,“maintenance”:false,“needsDbUpgrade”:false,“version”:“23.0.2.1”,“versionstring”:“23.0.2”,“edition”:"",“productname”:“Nextcloud”,“extendedSupport”:false}

Communication occures to the download server: tcpdump shows an established session to download.nextcloud.com (IPv6/https).

@franz.hartwig
Please go in browser to this site of your nextcloud:
https://cloud.server.tld/settings/admin/overview
and post the messages. Make a reload of the website.

running the update again manually is certainly useful advice. it’s a pity my complains only make it to the person doing some attempts to respond to the community

There are no notifications, and all tests are successful:
Bildschirmfoto von 2022-03-29 20-19-50

Reloading does not change anything.

In your data folder, there is a folder for the updates: updater-xxxxxxx

the xxx are some random string. Within that folder you can find downloads. I’d check if there is perhaps an old version that you can manually delete.

If not, you can as well check the permission if the code belongs to www-data (but if there is a problem during one of the update steps, there should be an error).

1 Like

Thank you @tflidd , the directory is empty. User and group is set to www-data, the permissions are sufficient.

Problem probably also in Nextcloud 22

just the download or the whole updater-xxx folder? There should be plenty of stuff if you upgraded in the past with the updater.

root@host:/ncdata/updater-ocx5874av366 # ll
total 3
-rw-r--r--  1 www  wheel  25 Mar 29 22:44 .step-previous-update
drwxr-x---  6 www  wheel   6 Mar 29 22:41 backups/
drwxr-x---  2 www  wheel   2 Mar 29 22:44 downloads/

Sorry for my missing precision.

root@pi /nc/updater-51520bfa8e011 # ll -a
insgesamt 24
drwxr-x---  4 www-data www-data 4096 Feb 17 15:01 .
drwxr-x--- 17 www-data www-data 4096 Mär 27 00:00 ..
drwxr-x---  3 www-data www-data 4096 Mär 24 21:20 backups
drwxr-x---  2 www-data www-data 4096 Feb 17 15:01 downloads
-rw-r-----  1 www-data www-data   25 Feb 17 15:01 .step
-rw-r-----  1 www-data www-data   25 Feb 17 14:57 .step-previous-update
root@pi /nc/updater-51520bfa8e011 # ll backups/
insgesamt 4
drwxr-x--- 13 www-data www-data 4096 Feb 17 14:51 nextcloud-23.0.0.10-1645105830
root@pi /nc/updater-51520bfa8e011 # ll -a downloads/
insgesamt 8
drwxr-x--- 2 www-data www-data 4096 Feb 17 15:01 .
drwxr-x--- 4 www-data www-data 4096 Feb 17 15:01 ..

I have examined the file .step and .step-previous-update:

root@pi /nc/updater-51520bfa8e011 # cat .step
{"state":"end","step":12}
root@pi /nc/updater-51520bfa8e011 # cat .step-previous-update
{"state":"end","step":10}

I renamed the file .step, now the update works. After success update:

root@pi /nc/updater-51520bfa8e011 # cat .step
cat: .step: Datei oder Verzeichnis nicht gefunden [file or directory not found
root@pi /nc/updater-51520bfa8e011 # cat .step-previous-update
{"state":"end","step":10}

It seems the previous update left the file .step in place.

Thank you for your support.