nextcloud2 alias authored by Roland Alton's avatar Roland Alton
...@@ -4,15 +4,16 @@ This is an internal documentation for fairkom sysadmins. We have to upgrade next ...@@ -4,15 +4,16 @@ This is an internal documentation for fairkom sysadmins. We have to upgrade next
1. announce maintenance with Announcement app 1. announce maintenance with Announcement app
1. in /var/www/nextcloud/config/config.php set `'maintenance' => true,` 1. in /var/www/nextcloud/config/config.php set `'maintenance' => true,`
1. do a manual DB backup 1. do a manual DB backup and copy to /mnt/backup2/faircloud_db (= external backup drive)
1. set 'maintenance' => false, 1. set 'maintenance' => false or set to maintenance page in `/etc/apache2/sites-enabled/nextcloud.conf`
1. you always can login at `https://faircloud.eu/nextcloud2` (backdoor, not reachable for sync clients)
1. as nextcloud admin we now run upgrade to the latest minor version in the web interface 1. as nextcloud admin we now run upgrade to the latest minor version in the web interface
1. `Continue with web based updater` should be fine with minor updates 1. `Continue with web based updater` should be fine with minor updates
1. this usually also updates all apps, and there is no way to get back in app versions 1. this usually also updates all apps, and there is no way to get back in app versions
1. check if all apps are working 1. check if all apps are working
1. continue with upgrading to next nextcloud major version with `sudo -u www-data php occ upgrade` 1. continue with upgrading to next nextcloud major version with `sudo -u faircloud php occ upgrade`
1. some repair jobs may take quite long https://git.fairkom.net/hosting/nextcloud/-/issues/111#note_40870 1. some repair jobs may take quite long https://git.fairkom.net/hosting/nextcloud/-/issues/111#note_40870
1. check admin settings oevrview page 1. check admin settings overview page
1. likely you need to do a `sudo -u www-data php occ db:add-missing-indices` 1. likely you need to do a `sudo -u www-data php occ db:add-missing-indices`
1. check if all apps are working 1. check if all apps are working
2. remove the Announcement in the Announcement app (so those who did not read it yet won't get it anymore) 2. remove the Announcement in the Announcement app (so those who did not read it yet won't get it anymore)
... ...
......