Обновление NextCloud. Без проблем?

Окт 8th, 2021 | Posted by | Filed under Devuan, internet

Возникло желание обновить NextCloud с предпоследней версии на последнюю. Раньше как-то всё обновлял руками, сейчас захотелось обновить более-менее автоматически и прокомментировать в блоге, как оно пойдёт.

Ничего не скачиваю, захожу в консоль, повышаюсь до рута, запускаю:

/var/www/nextcloud/updater# sudo -u www-data php ./updater.phar

Nextcloud Updater — version: v20.0.0beta4-11-g68fa0d4

Current version is 22.1.1.

Update to Nextcloud 22.2.0 available. (channel: «stable»)
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-22.2.0.zip
Open changelog ↗

Steps that will be executed:
[ ] Check for expected files
[ ] Check for write permissions
[ ] Create backup
[ ] Downloading
[ ] Verify integrity
[ ] Extracting
[ ] Enable maintenance mode
[ ] Replace entry points
[ ] Delete old files
[ ] Move new files in place
[ ] Done

Start update? [y/N] y

Info: Pressing Ctrl-C will finish the currently running step and then stops the updater.

[✔] Check for expected files
[✔] Check for write permissions
[✔] Create backup
[✔] Downloading
[✔] Verify integrity
[✔] Extracting
[✔] Enable maintenance mode
[✔] Replace entry points
[✔] Delete old files
[✔] Move new files in place
[✔] Done

Update of code successful.

Should the «occ upgrade» command be executed? [Y/n]

Nextcloud or one of the apps require upgrade — only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
2021-10-08T03:47:34+00:00 Setting log level to debug
2021-10-08T03:47:34+00:00 Repair step: Repair MySQL collation
2021-10-08T03:47:34+00:00 Repair info: All tables already have the correct collation -> nothing to do
2021-10-08T03:47:34+00:00 Repair step: Repair SQLite autoincrement
2021-10-08T03:47:34+00:00 Repair step: Copy data from accounts table when migrating from ownCloud
2021-10-08T03:47:35+00:00 Repair step: Drop account terms table when migrating from ownCloud
2021-10-08T03:47:35+00:00 Updating database schema
2021-10-08T03:47:37+00:00 Updated database
2021-10-08T03:47:37+00:00 Updating <federation> …
2021-10-08T03:47:37+00:00 Updated <federation> to 1.12.0
2021-10-08T03:47:37+00:00 Updating <lookup_server_connector> …
2021-10-08T03:47:38+00:00 Updated <lookup_server_connector> to 1.10.0
2021-10-08T03:47:38+00:00 Updating <oauth2> …
2021-10-08T03:47:38+00:00 Repair step: Update OAuth token expiration times
2021-10-08T03:47:38+00:00 Updated <oauth2> to 1.10.0
2021-10-08T03:47:38+00:00 Updating <files> …
2021-10-08T03:47:38+00:00 Updated <files> to 1.17.0
2021-10-08T03:47:38+00:00 Updating <cloud_federation_api> …
2021-10-08T03:47:38+00:00 Updated <cloud_federation_api> to 1.5.0
2021-10-08T03:47:38+00:00 Updating <dav> …
2021-10-08T03:47:38+00:00 Repair step: Fix component of birthday calendars
2021-10-08T03:47:38+00:00 Repair info: 1 birthday calendars updated.
2021-10-08T03:47:38+00:00 Repair step: Regenerating birthday calendars to use new icons and fix old birthday events without year
2021-10-08T03:47:38+00:00 Repair info: Repair step already executed
2021-10-08T03:47:38+00:00 Repair step: Fix broken values of calendar objects
2021-10-08T03:47:38+00:00 Fix broken values of calendar objects
2021-10-08T03:47:38+00:00
2021-10-08T03:47:38+00:00 Starting …
0/0 [>-] 0%2021-10-08T03:47:38+00:00
2021-10-08T03:47:38+00:00 Repair step: Registering building of calendar search index as background job
2021-10-08T03:47:38+00:00 Repair info: Repair step already executed
2021-10-08T03:47:38+00:00 Repair step: Register building of social profile search index as background job
2021-10-08T03:47:38+00:00 Repair step: Registering background jobs to update cache for webcal calendars
2021-10-08T03:47:38+00:00 Repair info: Added 0 background jobs to update webcal calendars
2021-10-08T03:47:38+00:00 Repair step: Registering building of calendar reminder index as background job
2021-10-08T03:47:38+00:00 Repair info: Repair step already executed
2021-10-08T03:47:38+00:00 Repair step: Clean up orphan event and contact data
2021-10-08T03:47:38+00:00 Repair info: 0 events without a calendar have been cleaned up
2021-10-08T03:47:38+00:00 Repair info: 0 properties without an events have been cleaned up
2021-10-08T03:47:38+00:00 Repair info: 0 changes without a calendar have been cleaned up
2021-10-08T03:47:38+00:00 Repair info: 0 cached events without a calendar subscription have been cleaned up
2021-10-08T03:47:38+00:00 Repair info: 0 changes without a calendar subscription have been cleaned up
2021-10-08T03:47:38+00:00 Repair info: 0 contacts without an addressbook have been cleaned up
2021-10-08T03:47:38+00:00 Repair info: 0 properties without a contact have been cleaned up
2021-10-08T03:47:38+00:00 Repair info: 0 changes without an addressbook have been cleaned up
2021-10-08T03:47:38+00:00 Repair step: Remove activity entries of private events
2021-10-08T03:47:38+00:00 Repair info: Removed 0 activity entries
2021-10-08T03:47:38+00:00 Updated <dav> to 1.19.0
2021-10-08T03:47:38+00:00 Updating <files_sharing> …
2021-10-08T03:47:38+00:00 Repair step: Fix the share type of guest shares when migrating from ownCloud
2021-10-08T03:47:38+00:00 Repair step: Copy the share password into the dedicated column
2021-10-08T03:47:38+00:00 Repair step: Set existing shares as accepted
2021-10-08T03:47:38+00:00 Updated <files_sharing> to 1.14.0
2021-10-08T03:47:38+00:00 Updating <files_trashbin> …
2021-10-08T03:47:38+00:00 Updated <files_trashbin> to 1.12.0
2021-10-08T03:47:38+00:00 Updating <files_versions> …
2021-10-08T03:47:38+00:00 Updated <files_versions> to 1.15.0
2021-10-08T03:47:38+00:00 Updating <sharebymail> …
2021-10-08T03:47:39+00:00 Updated <sharebymail> to 1.12.0
2021-10-08T03:47:39+00:00 Updating <workflowengine> …
2021-10-08T03:47:39+00:00 Repair step: Populating added database structures for workflows
2021-10-08T03:47:39+00:00 Updated <workflowengine> to 2.4.0
2021-10-08T03:47:39+00:00 Updating <comments> …
2021-10-08T03:47:39+00:00 Updated <comments> to 1.12.0
2021-10-08T03:47:39+00:00 Updating <systemtags> …
2021-10-08T03:47:39+00:00 Updated <systemtags> to 1.12.0
2021-10-08T03:47:39+00:00 Updating <theming> …
2021-10-08T03:47:39+00:00 Updated <theming> to 1.13.0
2021-10-08T03:47:39+00:00 Updating <accessibility> …
2021-10-08T03:47:39+00:00 Repair step: Migrate old user config
2021-10-08T03:47:39+00:00 Migrate old user config
2021-10-08T03:47:39+00:00
2021-10-08T03:47:39+00:00 Starting …
0/0 [->] 0%2021-10-08T03:47:39+00:00
2021-10-08T03:47:39+00:00 Updated <accessibility> to 1.8.0
2021-10-08T03:47:39+00:00 Updating <contactsinteraction> …
2021-10-08T03:47:39+00:00 Updated <contactsinteraction> to 1.3.0
2021-10-08T03:47:39+00:00 Updating <dashboard> …
2021-10-08T03:47:39+00:00 Updated <dashboard> to 7.2.0
2021-10-08T03:47:39+00:00 Updating <federatedfilesharing> …
2021-10-08T03:47:39+00:00 Updated <federatedfilesharing> to 1.12.0
2021-10-08T03:47:39+00:00 Updating <provisioning_api> …
2021-10-08T03:47:39+00:00 Updated <provisioning_api> to 1.12.0
2021-10-08T03:47:39+00:00 Updating <settings> …
2021-10-08T03:47:39+00:00 Updated <settings> to 1.4.0
2021-10-08T03:47:39+00:00 Updating <twofactor_backupcodes> …
2021-10-08T03:47:39+00:00 Repair step: Add background job to check for backup codes
2021-10-08T03:47:39+00:00 Updated <twofactor_backupcodes> to 1.11.0
2021-10-08T03:47:39+00:00 Updating <updatenotification> …
2021-10-08T03:47:39+00:00 Updated <updatenotification> to 1.12.0
2021-10-08T03:47:39+00:00 Updating <user_status> …
2021-10-08T03:47:39+00:00 Updated <user_status> to 1.2.0
2021-10-08T03:47:39+00:00 Updating <weather_status> …
2021-10-08T03:47:39+00:00 Updated <weather_status> to 1.2.0
2021-10-08T03:47:39+00:00 Checking for update of app accessibility in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «accessibility» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app activity in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «activity» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app bruteforcesettings in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «bruteforcesettings» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app circles in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «circles» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app cloud_federation_api in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «cloud_federation_api» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app comments in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «comments» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app contactsinteraction in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «contactsinteraction» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app dashboard in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «dashboard» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app dav in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «dav» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app federatedfilesharing in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «federatedfilesharing» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app federation in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «federation» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app files in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «files» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app files_pdfviewer in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «files_pdfviewer» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app files_rightclick in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «files_rightclick» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app files_sharing in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «files_sharing» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app files_trashbin in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «files_trashbin» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app files_versions in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «files_versions» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app files_videoplayer in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «files_videoplayer» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app firstrunwizard in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «firstrunwizard» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app logreader in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «logreader» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app lookup_server_connector in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «lookup_server_connector» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app nextcloud_announcements in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «nextcloud_announcements» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app notifications in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «notifications» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app oauth2 in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «oauth2» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app password_policy in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «password_policy» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app photos in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «photos» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app privacy in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «privacy» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app provisioning_api in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «provisioning_api» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app recommendations in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «recommendations» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app serverinfo in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «serverinfo» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app settings in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «settings» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app sharebymail in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «sharebymail» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app support in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «support» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app survey_client in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «survey_client» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app systemtags in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «systemtags» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app tasks in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «tasks» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app text in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «text» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app theming in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «theming» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app twofactor_backupcodes in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «twofactor_backupcodes» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app updatenotification in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «updatenotification» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app user_status in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «user_status» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app viewer in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «viewer» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app weather_status in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «weather_status» in App Store
2021-10-08T03:47:46+00:00 Checking for update of app workflowengine in appstore
2021-10-08T03:47:46+00:00 Checked for update of app «workflowengine» in App Store
2021-10-08T03:47:46+00:00 Repair step: Repair MySQL collation
2021-10-08T03:47:46+00:00 Repair info: All tables already have the correct collation -> nothing to do
2021-10-08T03:47:46+00:00 Repair step: Repair mime types
2021-10-08T03:47:46+00:00 Repair step: Clean tags and favorites
2021-10-08T03:47:46+00:00 Repair info: 0 tags of deleted users have been removed.
2021-10-08T03:47:46+00:00 Repair info: 0 tags for delete files have been removed.
2021-10-08T03:47:46+00:00 Repair info: 0 tag entries for deleted tags have been removed.
2021-10-08T03:47:46+00:00 Repair info: 0 tags with no entries have been removed.
2021-10-08T03:47:46+00:00 Repair step: Repair invalid shares
2021-10-08T03:47:46+00:00 Repair step: Move .step file of updater to backup location
2021-10-08T03:47:46+00:00 Repair info: .step file exists
2021-10-08T03:47:46+00:00 Repair info: .step-previous-update removed
2021-10-08T03:47:46+00:00 Repair info: .step file moved to .step-previous-update
2021-10-08T03:47:46+00:00 Repair step: Add move avatar background job
2021-10-08T03:47:46+00:00 Repair info: Repair step already executed
2021-10-08T03:47:46+00:00 Repair step: Add preview cleanup background jobs
2021-10-08T03:47:46+00:00 Repair step: Fix potential broken mount points
2021-10-08T03:47:46+00:00 Repair info: No mounts updated
2021-10-08T03:47:46+00:00 Repair step: Repair language codes
2021-10-08T03:47:46+00:00 Repair step: Install new core bundle components
2021-10-08T03:47:46+00:00 Repair step: Add log rotate job
2021-10-08T03:47:46+00:00 Repair step: Clear frontend caches
2021-10-08T03:47:46+00:00 Repair info: Image cache cleared
2021-10-08T03:47:48+00:00 Repair info: SCSS cache cleared
2021-10-08T03:47:49+00:00 Repair info: JS cache cleared
2021-10-08T03:47:49+00:00 Repair step: Clear every generated avatar on major updates
2021-10-08T03:47:49+00:00 Repair step: Add preview background cleanup job
2021-10-08T03:47:49+00:00 Repair step: Queue a one-time job to cleanup old backups of the updater
2021-10-08T03:47:49+00:00 Repair step: Cleanup invalid photocache files for carddav
2021-10-08T03:47:49+00:00 Repair step: Add background job to cleanup login flow v2 tokens
2021-10-08T03:47:49+00:00 Repair step: Remove potentially over exposing share links
2021-10-08T03:47:49+00:00 Repair info: No need to remove link shares.
2021-10-08T03:47:49+00:00 Repair step: Clear access cache of projects
2021-10-08T03:47:49+00:00 Repair step: Reset generated avatar flag
2021-10-08T03:47:49+00:00 Repair step: Keep legacy encryption enabled
2021-10-08T03:47:49+00:00 Repair step: Check encryption key format
2021-10-08T03:47:49+00:00 Repair step: Remove old dashboard app config data
2021-10-08T03:47:49+00:00 Repair step: Add job to cleanup the bruteforce entries
2021-10-08T03:47:49+00:00 Repair step: Queue a one-time job to check for user uploaded certificates
2021-10-08T03:47:49+00:00 Repair step: Repair DAV shares
2021-10-08T03:47:49+00:00 Repair step: Add background job to set the lookup server share state for users
2021-10-08T03:47:49+00:00 Starting code integrity check…
2021-10-08T03:48:04+00:00 Finished code integrity check
2021-10-08T03:48:04+00:00 Update successful
2021-10-08T03:48:04+00:00 Maintenance mode is kept active
2021-10-08T03:48:04+00:00 Resetting log level

Keep maintenance mode active? [y/N]

Maintenance mode disabled

Maintenance mode is disabled

/var/www/nextcloud/updater#

Собственно, всё.

No comments yet.