Nextcloud error update

Hi, good day

NethServer Version: 8
Module: nextcloud
After a power failure, when I start the server it shows me these error logs:

2026-01-05T16:16:28-06:00 [1:nextcloud1:nextcloud-app] Initializing nextcloud 31.0.7.1 …
2026-01-05T16:16:28-06:00 [1:nextcloud1:nextcloud-app] Can’t start Nextcloud because upgrading from 29.0.10.1 to 31.0.7.1 is not supported.
2026-01-05T16:16:28-06:00 [1:nextcloud1:nextcloud-app] It is only possible to upgrade one major version at a time. For example, if you want to upgrade from version 14 to 16, you will have to upgrade from version 14 to 15, then from 15 to 16.

Is there any way to fix this?

Did you migrate from NS7 or manually upgrade Nextcloud on CLI?
I recommend to upgrade via Software Center, this way you should get the right versions.
You can check the Nextcloud app versions here: Releases · NethServer/ns8-nextcloud · GitHub

In case something goes wrong you should have a backup of your Nextcloud.

Following command forces the downgrade of Nextcloud to the needed version 30.0.10 so the upgrade from 29 to 30 should work. The command uses the force option which shouldn’t be used for regular updates.

api-cli run update-module --data '{"module_url":"ghcr.io/nethserver/nextcloud:1.4.3","instances":["nextcloud1"],"force":true}'

hi @mrmarkuz thks for reponse
I had accidentally updated from the Nextcloud administrator panel. no from NS7, already use NS8
now after run you script, on url nextcloud show manteniance mode
can i try with version 1.4.2?

To upgrade and disable maintenance mode manually:

runagent -m nextcloud1 occ upgrade
runagent -m nextcloud1 occ maintenance:mode --off

It’s the same Nextcloud version (30.0.10) as 1.4.3.

If nothing helps you could try to change the version in config.php, see also Failed update on NS7.9 to NS8 migrated NextCloud - #21 by mrmarkuz

its Work!

thank you

1 Like