I installed a Nethserver with (among others) Nextcloud. After the updates I have to adapt the file
/usr/share/nextcloud/config/config.php
to be able to access the Dyndns domain (customer.dyndns.biz).
To not always have to add the domain name, I created a config.php.customer with that information and replaced the config file now… bad idea… error from my side… I did not save the orginal…
When I now try to access nextcloud, the screen says, it would like to update to version 27.0.1 of nextcloud… but this does not work, because (I assume) in the overwritten config.php there is the version 25.0.5.1 and it is not allowed to jump over probably version 26.x.
How can I fix the version chaos, that I produced? Is there a way to find out the real version? Or which version should I download to install version 26.x first to then be able to jump to version 27.0.1? Any idea would be greatly appreciated…
Can I upgrade Nextcloud via its built-in updater?
It is not recommended. NethServer manages updates through RPM packages.
“Nextcloud will be updated to version xx.x.x” message is shown after an upgrade
This could be due to a partial upgrade done by the rpm packages. The specific issue might have been reflected on server logs. By running occ upgrade command you’ll either finish the upgrade process or get some errors showing the problem:
occ --version (might show current installed version, while config.php can show the version that was installed previously if the upgrade did not succeed).
Either way, occ upgrade will tell.
Maybe you could use the nextcloud settings on cockpit page to set the custom virtualhost / subdomain or allowed connections.
use rpm -qa *nextcloud* to find the installed version.
At the bottom of the spec file you can find the changelog with the correspondence between the rpm package version and the nextcloud version.
Setting log level to debug
Turned on maintenance mode
Exception: Updates between multiple major versions and downgrades are unsupported.
Update failed
Maintenance mode is kept active
Resetting log level
And the maintenance mode is now also shown on the webpage.
occ --version and rpm are reporting the version currently installed (even if access to nextcloud it is not working).
The old version (previous installed version) usually remains on config.php file until the upgrade is successful.
I had the impression that occ upgrade told us both the previous version we are upgrading from and the version we are trying to (successfully) upgrade to. Maybe it does with the -v or verbose parameter (or I might just not remember as well as I thought ; ).