"php occ upgrade" not catching up with new upgrade

NC12.0.4 is here - I got notification both in the desktop app and in the webapp
but when I go to run the upgrade using occ

sudo -u www php occ upgrade

I get the message:
Nextcloud is already latest version

any idea what is wrong?

you have to install the update manually first, then nc dates itself up with this command.

sudo -u www-data /usr/bin/php /var/www/nc/occ
upgrade: run upgrade routines after installation of a new release. The release has to be installed before


1 Like

cd to the updater folder, for example: cd /var/www/html/nextcloud/updater/
Then run sudo -u www php updater.phar - if www is indeed your webserver user.

No need to install manually.


i tried that but it turns out i have no updater folder on my nextcloud.
isnt there an option with the occ executable to directly say that i want the version 17 instead of doing some vodoo ?

Hmm I remember the updater.phar to be on Nextcloud root dir on older versions. However otherwise no chance of skipping either web based updater or manual download + install of new files. The occ command only updates config and database to new installed file versions but does no download itself.

Same problem today with 17.0.2 to 17.0.3

Webinterface says: “New version is available: Nextcloud 17.0.3
All apps have an update for this version available”

But when I click on “Open Updater”, nothing happens.

Then I try on the command line (I run nextcloud in a docker container):

dg1sek@vps:~$ docker exec --user www-data nextcloud_app_1 php occ upgrade --no-interaction
Nextcloud is already latest version

But it’s not… it’s still 17.0.2 and I want it to move to the latest version 17.0.3

What am I doing wrong?