Update NC to 27.1 from 27.0.2

Upgrading our NexctCloud server from the occ command came into trouble.

Nextcloud version: 27.0.2 // 27.1
Operating system and version: Ubuntu 22.04
Apache version : Apache 2.4.25
PHP version : PHP 8.2

The Web interface is telling me that we are still in version 27.0.2 when the occ -V is giving me the 27.1.0.

Had to launch the occ upgrade command several times to tell that we are in the latest version but the Web Ui is still wrong.

The Nextcloud Office App seems broken as the link to the token is sending a 404 but I dont know n if it’s directly related so I have disable it.

When the updater refuses to continue because of the unexpected files composer.json, composer.lock, package.json and package-lock.json, please remove the files manually and re-run the updater.

Also, you could try the repair command:
sudo -u www-data php /var/www/nextcloud/occ maintenance:repair

Thank you for the tip.

I didn’t find it when I was looking in the documentation (was searching in the upgrade section).

Still having the problem between occ -V and the Web interface.

Now the Web interface is offering the 27.1.1 version whenever I have some time I will make the update and report here what happened.

1 Like


After having completed a lot of commands :slight_smile:

sudo -u www-data php occ app:update --all
sudo -u www-data php occ config:list
sudo -u www-data php occ db:add-missing-indices
sudo -u www-data php occ files:cleanup
sudo -u www-data php occ integrity
sudo -u www-data php occ integrity:check-core
sudo -u www-data php occ maintenance:data-fingerprint
sudo -u www-data php occ maintenance:mimetype:update-db
sudo -u www-data php occ maintenance:mimetype:update-js
sudo -u www-data php occ maintenance:repair

And to have disabled Redis for the memcache distributed and locking.

My web Interface finally was showing the current and good version.

The Nextcloud Office App with a Collabora docker worked instantly too without changing any configuration.

Hard to know what happened exactly but If it can help someone I leave it here.