Just want to share some notes on the problems we may find in this use case.
Had a test machine with:
- nextcloud-10.0.2-1.ns7.noarch
- nethserver-nextcloud-1.0.4-1.ns7.noarch
Updates brought Nextcloud 12, which was unable to login and showing an exception:
Jun 3 08:50:07 test2 esmith::event[8561]: Action: /etc/e-smith/events/nethserver-nextcloud-update/S00initialize-default-databases SUCCESS [0.195041]
Jun 3 08:50:07 test2 esmith::event[8561]: expanding /etc/httpd/conf.d/default-virtualhost.inc
Jun 3 08:50:07 test2 esmith::event[8561]: expanding /etc/httpd/conf.d/nethserver.conf
Jun 3 08:50:07 test2 esmith::event[8561]: Action: /etc/e-smith/events/actions/generic_template_expand SUCCESS [0.142583]
Jun 3 08:50:08 test2 esmith::event[8561]: Nextcloud or one of the apps require upgrade - only a limited number of commands are available
Jun 3 08:50:08 test2 esmith::event[8561]: You may use your browser or the occ upgrade command to do the upgrade
Jun 3 08:50:08 test2 esmith::event[8561]: Maintenance mode enabled
Jun 3 08:50:08 test2 esmith::event[8561]: Nextcloud or one of the apps require upgrade - only a limited number of commands are available
Jun 3 08:50:08 test2 esmith::event[8561]: You may use your browser or the occ upgrade command to do the upgrade
Jun 3 08:50:08 test2 esmith::event[8561]: Set log level to debug
Jun 3 08:50:08 test2 esmith::event[8561]: Exception: Updates between multiple major versions and downgrades are unsupported.
Jun 3 08:50:08 test2 esmith::event[8561]: Update failed
Jun 3 08:50:08 test2 esmith::event[8561]: Maintenance mode is kept active
Jun 3 08:50:08 test2 esmith::event[8561]: Reset log level
Jun 3 08:50:08 test2 esmith::event[8561]: Nextcloud or one of the apps require upgrade - only a limited number of commands are available
Jun 3 08:50:08 test2 esmith::event[8561]: You may use your browser or the occ upgrade command to do the upgrade
Jun 3 08:50:08 test2 esmith::event[8561]: Maintenance mode disabled
Jun 3 08:50:08 test2 esmith::event[8561]: Action: /etc/e-smith/events/nethserver-nextcloud-update/S20nethserver-nextcloud-conf SUCCESS [0.879938]
Jun 3 08:50:08 test2 su: (to apache) root on none
Jun 3 08:50:09 test2 esmith::event[8561]: Nextcloud or one of the apps require upgrade - only a limited number of commands are available
Jun 3 08:50:09 test2 esmith::event[8561]: You may use your browser or the occ upgrade command to do the upgrade
Jun 3 08:50:09 test2 esmith::event[8561]: System config value trusted_domains => 0 set to string localhost
Jun 3 08:50:09 test2 su: (to apache) root on none
Jun 3 08:50:09 test2 esmith::event[8561]: Nextcloud or one of the apps require upgrade - only a limited number of commands are available
Jun 3 08:50:09 test2 esmith::event[8561]: You may use your browser or the occ upgrade command to do the upgrade
Jun 3 08:50:09 test2 esmith::event[8561]: System config value trusted_domains => 1 set to string test2.local.neth.eu
Jun 3 08:50:09 test2 su: (to apache) root on none
Jun 3 08:50:09 test2 esmith::event[8561]: Nextcloud or one of the apps require upgrade - only a limited number of commands are available
Jun 3 08:50:09 test2 esmith::event[8561]: You may use your browser or the occ upgrade command to do the upgrade
Jun 3 08:50:09 test2 esmith::event[8561]: System config value trusted_domains => 2 set to string 192.168.2.12
Jun 3 08:50:09 test2 esmith::event[8561]: Action: /etc/e-smith/events/nethserver-nextcloud-update/S30nethserver-nextcloud-occ-conf SUCCESS [0.858034]
To get back to square one, restored the virtual machine to a previous snapshot, and followed this procedure on the command line to get Nextcloud 12 up and running:
[root@test2 ~]# rpm -qa *nextcloud
nextcloud-10.0.2-1.ns7.noarch
nethserver-nextcloud-1.0.4-1.ns7.noarch
[root@test2 ~]# yum makecache fast
[root@test2 ~]# yum --showduplicates list *nextcloud
Available Packages
nethserver-nextcloud.noarch 1.0.4-1.ns7 nethserver-base
nethserver-nextcloud.noarch 1.1.0-1.ns7 nethserver-updates
nethserver-nextcloud.noarch 1.1.1-1.ns7 nethserver-updates
nethserver-nextcloud.noarch 1.1.2-1.ns7 nethserver-updates
nethserver-nextcloud.noarch 1.1.3-1.ns7 nethserver-updates
nethserver-nextcloud.noarch 1.1.4-1.ns7 nethserver-updates
nextcloud.noarch 10.0.2-1.ns7 nethserver-base
nextcloud.noarch 10.0.4-2.el7 epel
nextcloud.noarch 11.0.2-1.4.ns7 nethserver-updates
nextcloud.noarch 11.0.3-2.ns7 nethserver-updates
nextcloud.noarch 12.0.0-1.ns7 nethserver-updates
[root@test2 ~]# yum update nethserver-nextcloud-1.1.0-1.ns7 nextcloud-11.0.2-1.4.ns7
[root@test2 ~]# yum update
[root@test2 ~]# rpm -qa *nextcloud
nextcloud-12.0.0-1.ns7.noarch
nethserver-nextcloud-1.1.4-1.ns7.noarch
NOTE: the update to Nextcloud 12 presented some warnings on the Admin page.