スポンサーリンク

Nextcloudを気に入ってずっと使っていますが、面倒なのがサーバーアプリのバージョンアップです。
セキュリティを考慮しても最新版にしたほうがよいとわかっていても、手間と失敗した場合のリスクを考えてなかなかできませんでした。
今回はupdaterコマンドを使用してアップデートを実施してみました。

Nextcloudのマイナーアップデート

Nextcloudのアップデート方法は3種類
以前はマニュアルで手順通り1つ1つ実施しましたが、いくつかの方法が用意されているようです。
  1. Webベースアップデータの使用
  2. コマンドラインアップデータの使用
  3. マニュアルアップデート

A、B、Cの順にうまくいけばその方法でダメなら次の方法でアップデートしてみようと思います。

17.0.2.1から17.0.8へのマイナーアップデート

Webベースアップデータは、Check for write permissionsでエラーが発生し中断

まず、Webベースアップデータを実施してみましたが、Nextcloudインストールディレクトリ直下のphpファイルの書き込み権のエラーで作業が中断されました。
パーミッションをチェックしましたが特に問題はありません。

コマンドラインアップデータで正常終了

次にコマンドラインアップデータを使用しました。
問題なく17.0.8へアップデートできました。

以下、作業ログです。

sudo -u nginx php /var/www/nextcloud/updater/updater.phar
Nextcloud Updater - version: v16.0.3-3-ga0c2b25 dirty

Current version is 17.0.2.

Update to Nextcloud 17.0.8 available. (channel: "stable")
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-17.0.8.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
2020-07-17T12:32:57+09:00 Set log level to debug
2020-07-17T12:32:57+09:00 Repair step: Repair MySQL collation
2020-07-17T12:32:57+09:00 Repair info: All tables already have the correct collation -> nothing to do
2020-07-17T12:32:57+09:00 Repair step: Repair SQLite autoincrement
2020-07-17T12:32:57+09:00 Repair step: Copy data from accounts table when migrating from ownCloud
2020-07-17T12:32:57+09:00 Repair step: Drop account terms table when migrating from ownCloud
2020-07-17T12:32:57+09:00 Updating database schema
2020-07-17T12:32:58+09:00 Updated database
2020-07-17T12:32:58+09:00 Updating <support> ...
2020-07-17T12:32:58+09:00 Repair step: Switches from default updater server to the customer one if a valid subscription is available
2020-07-17T12:32:58+09:00 Updated <support> to 1.0.2
2020-07-17T12:32:58+09:00 Checking for update of app accessibility in appstore
2020-07-17T12:33:04+09:00 Checked for update of app "accessibility" in appstore
2020-07-17T12:33:04+09:00 Checking for update of app activity in appstore
2020-07-17T12:33:04+09:00 Checked for update of app "activity" in appstore
2020-07-17T12:33:04+09:00 Checking for update of app admin_audit in appstore
2020-07-17T12:33:04+09:00 Checked for update of app "admin_audit" in appstore
2020-07-17T12:33:04+09:00 Checking for update of app bruteforcesettings in appstore
2020-07-17T12:33:04+09:00 Checked for update of app "bruteforcesettings" in appstore
2020-07-17T12:33:04+09:00 Checking for update of app cloud_federation_api in appstore
2020-07-17T12:33:04+09:00 Checked for update of app "cloud_federation_api" in appstore
2020-07-17T12:33:04+09:00 Checking for update of app comments in appstore
2020-07-17T12:33:04+09:00 Checked for update of app "comments" in appstore
2020-07-17T12:33:04+09:00 Checking for update of app dav in appstore
2020-07-17T12:33:04+09:00 Checked for update of app "dav" in appstore
2020-07-17T12:33:04+09:00 Checking for update of app encryption in appstore
2020-07-17T12:33:04+09:00 Checked for update of app "encryption" in appstore
2020-07-17T12:33:04+09:00 Checking for update of app federatedfilesharing in appstore
2020-07-17T12:33:04+09:00 Checked for update of app "federatedfilesharing" in appstore
2020-07-17T12:33:04+09:00 Checking for update of app federation in appstore
2020-07-17T12:33:04+09:00 Checked for update of app "federation" in appstore
2020-07-17T12:33:04+09:00 Checking for update of app files in appstore
2020-07-17T12:33:04+09:00 Checked for update of app "files" in appstore
2020-07-17T12:33:04+09:00 Checking for update of app files_external in appstore
2020-07-17T12:33:04+09:00 Checked for update of app "files_external" in appstore
2020-07-17T12:33:04+09:00 Checking for update of app files_pdfviewer in appstore
2020-07-17T12:33:04+09:00 Checked for update of app "files_pdfviewer" in appstore
2020-07-17T12:33:04+09:00 Checking for update of app files_rightclick in appstore
2020-07-17T12:33:04+09:00 Update app files_rightclick from appstore
2020-07-17T12:33:06+09:00 Checked for update of app "files_rightclick" in appstore
2020-07-17T12:33:06+09:00 Checking for update of app files_sharing in appstore
2020-07-17T12:33:06+09:00 Checked for update of app "files_sharing" in appstore
2020-07-17T12:33:06+09:00 Checking for update of app files_trashbin in appstore
2020-07-17T12:33:06+09:00 Checked for update of app "files_trashbin" in appstore
2020-07-17T12:33:06+09:00 Checking for update of app files_versions in appstore
2020-07-17T12:33:06+09:00 Checked for update of app "files_versions" in appstore
2020-07-17T12:33:06+09:00 Checking for update of app files_videoplayer in appstore
2020-07-17T12:33:06+09:00 Checked for update of app "files_videoplayer" in appstore
2020-07-17T12:33:06+09:00 Checking for update of app firstrunwizard in appstore
2020-07-17T12:33:06+09:00 Checked for update of app "firstrunwizard" in appstore
2020-07-17T12:33:06+09:00 Checking for update of app gallery in appstore
2020-07-17T12:33:06+09:00 Checked for update of app "gallery" in appstore
2020-07-17T12:33:06+09:00 Checking for update of app logreader in appstore
2020-07-17T12:33:06+09:00 Checked for update of app "logreader" in appstore
2020-07-17T12:33:06+09:00 Checking for update of app lookup_server_connector in appstore
2020-07-17T12:33:06+09:00 Checked for update of app "lookup_server_connector" in appstore
2020-07-17T12:33:06+09:00 Checking for update of app nextcloud_announcements in appstore
2020-07-17T12:33:06+09:00 Checked for update of app "nextcloud_announcements" in appstore
2020-07-17T12:33:06+09:00 Checking for update of app notifications in appstore
2020-07-17T12:33:06+09:00 Checked for update of app "notifications" in appstore
2020-07-17T12:33:06+09:00 Checking for update of app oauth2 in appstore
2020-07-17T12:33:06+09:00 Checked for update of app "oauth2" in appstore
2020-07-17T12:33:06+09:00 Checking for update of app password_policy in appstore
2020-07-17T12:33:06+09:00 Checked for update of app "password_policy" in appstore
2020-07-17T12:33:06+09:00 Checking for update of app privacy in appstore
2020-07-17T12:33:06+09:00 Checked for update of app "privacy" in appstore
2020-07-17T12:33:06+09:00 Checking for update of app provisioning_api in appstore
2020-07-17T12:33:06+09:00 Checked for update of app "provisioning_api" in appstore
2020-07-17T12:33:06+09:00 Checking for update of app recommendations in appstore
2020-07-17T12:33:06+09:00 Checked for update of app "recommendations" in appstore
2020-07-17T12:33:06+09:00 Checking for update of app serverinfo in appstore
2020-07-17T12:33:06+09:00 Checked for update of app "serverinfo" in appstore
2020-07-17T12:33:06+09:00 Checking for update of app sharebymail in appstore
2020-07-17T12:33:06+09:00 Checked for update of app "sharebymail" in appstore
2020-07-17T12:33:06+09:00 Checking for update of app support in appstore
2020-07-17T12:33:06+09:00 Checked for update of app "support" in appstore
2020-07-17T12:33:06+09:00 Checking for update of app survey_client in appstore
2020-07-17T12:33:06+09:00 Checked for update of app "survey_client" in appstore
2020-07-17T12:33:06+09:00 Checking for update of app systemtags in appstore
2020-07-17T12:33:06+09:00 Checked for update of app "systemtags" in appstore
2020-07-17T12:33:06+09:00 Checking for update of app text in appstore
2020-07-17T12:33:06+09:00 Checked for update of app "text" in appstore
2020-07-17T12:33:06+09:00 Checking for update of app theming in appstore
2020-07-17T12:33:06+09:00 Checked for update of app "theming" in appstore
2020-07-17T12:33:06+09:00 Checking for update of app twofactor_backupcodes in appstore
2020-07-17T12:33:06+09:00 Checked for update of app "twofactor_backupcodes" in appstore
2020-07-17T12:33:06+09:00 Checking for update of app updatenotification in appstore
2020-07-17T12:33:06+09:00 Checked for update of app "updatenotification" in appstore
2020-07-17T12:33:06+09:00 Checking for update of app viewer in appstore
2020-07-17T12:33:06+09:00 Checked for update of app "viewer" in appstore
2020-07-17T12:33:06+09:00 Checking for update of app workflowengine in appstore
2020-07-17T12:33:06+09:00 Checked for update of app "workflowengine" in appstore
2020-07-17T12:33:06+09:00 Repair step: Repair MySQL collation
2020-07-17T12:33:06+09:00 Repair info: All tables already have the correct collation -> nothing to do
2020-07-17T12:33:06+09:00 Repair step: Repair mime types
2020-07-17T12:33:06+09:00 Repair step: Clean tags and favorites
2020-07-17T12:33:06+09:00 Repair info: 0 tags of deleted users have been removed.
2020-07-17T12:33:06+09:00 Repair info: 0 tags for delete files have been removed.
2020-07-17T12:33:06+09:00 Repair info: 0 tag entries for deleted tags have been removed.
2020-07-17T12:33:06+09:00 Repair info: 0 tags with no entries have been removed.
2020-07-17T12:33:06+09:00 Repair step: Repair invalid shares
2020-07-17T12:33:06+09:00 Repair step: Move .step file of updater to backup location
2020-07-17T12:33:06+09:00 Repair info: .step file exists
2020-07-17T12:33:06+09:00 Repair info: .step file moved to .step-previous-update
2020-07-17T12:33:06+09:00 Repair step: Fix potential broken mount points
2020-07-17T12:33:06+09:00 Repair info: No mounts updated
2020-07-17T12:33:06+09:00 Repair step: Add log rotate job
2020-07-17T12:33:06+09:00 Repair step: Clear frontend caches
2020-07-17T12:33:06+09:00 Repair info: Image cache cleared
2020-07-17T12:33:07+09:00 Repair info: SCSS cache cleared
2020-07-17T12:33:07+09:00 Repair info: JS cache cleared
2020-07-17T12:33:07+09:00 Repair step: Clear every generated avatar on major updates
2020-07-17T12:33:07+09:00 Repair step: Add preview background cleanup job
2020-07-17T12:33:07+09:00 Repair step: Queue a one-time job to cleanup old backups of the updater
2020-07-17T12:33:07+09:00 Repair step: Cleanup invalid photocache files for carddav
2020-07-17T12:33:07+09:00 Repair step: Add background job to cleanup login flow v2 tokens
2020-07-17T12:33:07+09:00 Repair step: Remove potentially over exposing share links
2020-07-17T12:33:07+09:00 Repair info: No need to remove link shares.
2020-07-17T12:33:07+09:00 Repair step: Clear access cache of projects
2020-07-17T12:33:07+09:00 Repair step: Cleanup cypress files from viewer app
2020-07-17T12:33:13+09:00 Repair step: Switches from deprecated "production" to "stable" update channel
2020-07-17T12:33:13+09:00 Repair step: Sets the enterprise logo
2020-07-17T12:33:13+09:00 Starting code integrity check...
2020-07-17T12:33:20+09:00 Finished code integrity check
2020-07-17T12:33:20+09:00 Update successful
2020-07-17T12:33:20+09:00 Maintenance mode is kept active
2020-07-17T12:33:20+09:00 Reset log level

Keep maintenance mode active? [y/N]
Maintenance mode disabled

Maintenance mode is disabled

17.0.8から18.0.7へのメジャーアップデート

Webベースアップデータは、Delete old filesでエラーが発生し中断

Nextcloud 18.0.7へのアップデートエラー

まず、Webベースアップデータを実施してみましたが、Readmeファイルの削除でエラーが発生し中断してしまいました。
そもそもそんなファイルはないのでなぜ対象になったのか不明です。

コマンドラインアップデータで正常終了

次にコマンドラインアップデータを使用しました。
問題なく18.0.7へアップデートできました。

以下、作業ログです。

# sudo -u nginx php /var/www/nextcloud/updater/updater.phar
Nextcloud Updater - version: v16.0.3-3-ga0c2b25 dirty

Current version is 17.0.8.

Update to Nextcloud 18.0.7 available. (channel: "stable")
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-18.0.7.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
2020-07-17T12:37:14+09:00 Set log level to debug
2020-07-17T12:37:14+09:00 Repair step: Repair MySQL collation
2020-07-17T12:37:14+09:00 Repair info: All tables already have the correct collation -> nothing to do
2020-07-17T12:37:14+09:00 Repair step: Repair SQLite autoincrement
2020-07-17T12:37:14+09:00 Repair step: Copy data from accounts table when migrating from ownCloud
2020-07-17T12:37:14+09:00 Repair step: Drop account terms table when migrating from ownCloud
2020-07-17T12:37:14+09:00 Updating database schema
2020-07-17T12:37:18+09:00 Updated database
2020-07-17T12:37:18+09:00 Disabled incompatible app: gallery
2020-07-17T12:37:18+09:00 Updating <accessibility> ...
2020-07-17T12:37:18+09:00 Repair step: Migrate old user config
2020-07-17T12:37:18+09:00 Migrate old user config
2020-07-17T12:37:18+09:00
2020-07-17T12:37:18+09:00  Starting ...
    0/0 [>-]   0%2020-07-17T12:37:18+09:00
 Starting ...
    1/0 [->]   0%2020-07-17T12:37:18+09:00
 Starting ...
    2/0 [-->]   0%2020-07-17T12:37:18+09:00
 Starting ...
    3/0 [--->]   0%2020-07-17T12:37:18+09:00
2020-07-17T12:37:18+09:00 Updated <accessibility> to 1.4.0
2020-07-17T12:37:18+09:00 Updating <federatedfilesharing> ...
2020-07-17T12:37:19+09:00 Updated <federatedfilesharing> to 1.8.0
2020-07-17T12:37:19+09:00 Updating <files_pdfviewer> ...
2020-07-17T12:37:19+09:00 Updated <files_pdfviewer> to 1.7.0
2020-07-17T12:37:19+09:00 Updating <files_rightclick> ...
2020-07-17T12:37:19+09:00 Updated <files_rightclick> to 0.15.2
2020-07-17T12:37:19+09:00 Updating <files_videoplayer> ...
2020-07-17T12:37:20+09:00 Updated <files_videoplayer> to 1.7.0
2020-07-17T12:37:20+09:00 Updating <logreader> ...
2020-07-17T12:37:20+09:00 Updated <logreader> to 2.3.0
2020-07-17T12:37:20+09:00 Updating <password_policy> ...
2020-07-17T12:37:20+09:00 Updated <password_policy> to 1.8.0
2020-07-17T12:37:20+09:00 Updating <privacy> ...
2020-07-17T12:37:21+09:00 Updated <privacy> to 1.2.0
2020-07-17T12:37:21+09:00 Updating <provisioning_api> ...
2020-07-17T12:37:21+09:00 Updated <provisioning_api> to 1.8.0
2020-07-17T12:37:21+09:00 Updating <recommendations> ...
2020-07-17T12:37:22+09:00 Updated <recommendations> to 0.6.0
2020-07-17T12:37:22+09:00 Updating <serverinfo> ...
2020-07-17T12:37:22+09:00 Updated <serverinfo> to 1.8.0
2020-07-17T12:37:22+09:00 Updating <support> ...
2020-07-17T12:37:23+09:00 Repair step: Switches from default updater server to the customer one if a valid subscription is available
2020-07-17T12:37:23+09:00 Repair info: Repair step already executed
2020-07-17T12:37:23+09:00 Updated <support> to 1.1.1
2020-07-17T12:37:23+09:00 Updating <survey_client> ...
2020-07-17T12:37:23+09:00 Updated <survey_client> to 1.6.0
2020-07-17T12:37:23+09:00 Updating <text> ...
2020-07-17T12:37:24+09:00 Updated <text> to 2.0.0
2020-07-17T12:37:24+09:00 Updating <twofactor_backupcodes> ...
2020-07-17T12:37:24+09:00 Repair step: Add background job to check for backup codes
2020-07-17T12:37:24+09:00 Updated <twofactor_backupcodes> to 1.7.0
2020-07-17T12:37:24+09:00 Updating <updatenotification> ...
2020-07-17T12:37:24+09:00 Updated <updatenotification> to 1.8.0
2020-07-17T12:37:24+09:00 Updating <federation> ...
2020-07-17T12:37:25+09:00 Updated <federation> to 1.8.0
2020-07-17T12:37:25+09:00 Updating <lookup_server_connector> ...
2020-07-17T12:37:25+09:00 Updated <lookup_server_connector> to 1.6.0
2020-07-17T12:37:25+09:00 Updating <oauth2> ...
2020-07-17T12:37:26+09:00 Repair step: Update OAuth token expiration times
2020-07-17T12:37:26+09:00 Updated <oauth2> to 1.6.0
2020-07-17T12:37:26+09:00 Updating <files> ...
2020-07-17T12:37:27+09:00 Updated <files> to 1.13.1
2020-07-17T12:37:27+09:00 Updating <activity> ...
2020-07-17T12:37:28+09:00 Updated <activity> to 2.11.0
2020-07-17T12:37:28+09:00 Updating <cloud_federation_api> ...
2020-07-17T12:37:28+09:00 Updated <cloud_federation_api> to 1.1.0
2020-07-17T12:37:28+09:00 Updating <dav> ...
2020-07-17T12:37:29+09:00 Repair step: Fix component of birthday calendars
2020-07-17T12:37:29+09:00 Repair info: 1 birthday calendars updated.
2020-07-17T12:37:29+09:00 Repair step: Regenerating birthday calendars to use new icons and fix old birthday events without year
2020-07-17T12:37:29+09:00 Repair info: Adding background jobs to regenerate birthday calendar
2020-07-17T12:37:29+09:00 Repair step: Fix broken values of calendar objects
2020-07-17T12:37:29+09:00 Fix broken values of calendar objects
2020-07-17T12:37:29+09:00
2020-07-17T12:37:29+09:00  Starting ...
    0/0 [>-]   0%2020-07-17T12:37:29+09:00
2020-07-17T12:37:29+09:00 Repair step: Registering building of calendar search index as background job
2020-07-17T12:37:29+09:00 Repair info: Add background job
2020-07-17T12:37:29+09:00 Repair step: Registering background jobs to update cache for webcal calendars
2020-07-17T12:37:29+09:00 Repair info: Added 0 background jobs to update webcal calendars
2020-07-17T12:37:29+09:00 Repair step: Registering building of calendar reminder index as background job
2020-07-17T12:37:29+09:00 Repair info: Add background job
2020-07-17T12:37:29+09:00 Repair step: Clean up orphan event and contact data
2020-07-17T12:37:29+09:00 Repair info: 0 events without a calendar have been cleaned up
2020-07-17T12:37:29+09:00 Repair info: 0 properties without an events have been cleaned up
2020-07-17T12:37:29+09:00 Repair info: 0 changes without a calendar have been cleaned up
2020-07-17T12:37:29+09:00 Repair info: 0 cached events without a calendar subscription have been cleaned up
2020-07-17T12:37:29+09:00 Repair info: 0 changes without a calendar subscription have been cleaned up
2020-07-17T12:37:29+09:00 Repair info: 0 contacts without an addressbook have been cleaned up
2020-07-17T12:37:29+09:00 Repair info: 0 properties without a contact have been cleaned up
2020-07-17T12:37:29+09:00 Repair info: 0 changes without an addressbook have been cleaned up
2020-07-17T12:37:29+09:00 Repair step: Remove activity entries of private events
2020-07-17T12:37:29+09:00 Repair info: Removed 0 activity entries
2020-07-17T12:37:29+09:00 Updated <dav> to 1.14.0
2020-07-17T12:37:29+09:00 Updating <encryption> ...
2020-07-17T12:37:29+09:00 Repair step: Write default encryption module configuration to the database
2020-07-17T12:37:29+09:00 Updated <encryption> to 2.6.0
2020-07-17T12:37:29+09:00 Updating <files_external> ...
2020-07-17T12:37:30+09:00 Updated <files_external> to 1.9.0
2020-07-17T12:37:30+09:00 Updating <files_sharing> ...
2020-07-17T12:37:30+09:00 Repair step: Fix the share type of guest shares when migrating from ownCloud
2020-07-17T12:37:30+09:00 Repair step: Copy the share password into the dedicated column
2020-07-17T12:37:30+09:00 Repair step: Set existing shares as accepted
2020-07-17T12:37:30+09:00 Updated <files_sharing> to 1.10.1
2020-07-17T12:37:30+09:00 Updating <files_trashbin> ...
2020-07-17T12:37:31+09:00 Updated <files_trashbin> to 1.8.0
2020-07-17T12:37:31+09:00 Updating <files_versions> ...
2020-07-17T12:37:31+09:00 Updated <files_versions> to 1.11.0
2020-07-17T12:37:31+09:00 Updating <sharebymail> ...
2020-07-17T12:37:31+09:00 Updated <sharebymail> to 1.8.0
2020-07-17T12:37:31+09:00 Updating <workflowengine> ...
2020-07-17T12:37:33+09:00 Repair step: Populating added database structures for workflows
2020-07-17T12:37:33+09:00 Updated <workflowengine> to 2.0.0
2020-07-17T12:37:33+09:00 Updating <admin_audit> ...
2020-07-17T12:37:34+09:00 Updated <admin_audit> to 1.8.0
2020-07-17T12:37:34+09:00 Updating <comments> ...
2020-07-17T12:37:34+09:00 Updated <comments> to 1.8.0
2020-07-17T12:37:34+09:00 Updating <firstrunwizard> ...
2020-07-17T12:37:35+09:00 Updated <firstrunwizard> to 2.7.0
2020-07-17T12:37:35+09:00 Updating <nextcloud_announcements> ...
2020-07-17T12:37:35+09:00 Updated <nextcloud_announcements> to 1.7.0
2020-07-17T12:37:35+09:00 Updating <notifications> ...
2020-07-17T12:37:35+09:00 Updated <notifications> to 2.6.0
2020-07-17T12:37:35+09:00 Updating <systemtags> ...
2020-07-17T12:37:36+09:00 Updated <systemtags> to 1.8.0
2020-07-17T12:37:36+09:00 Updating <theming> ...
2020-07-17T12:37:36+09:00 Updated <theming> to 1.9.0
2020-07-17T12:37:36+09:00 Checking for update of app accessibility in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "accessibility" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app activity in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "activity" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app admin_audit in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "admin_audit" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app bruteforcesettings in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "bruteforcesettings" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app cloud_federation_api in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "cloud_federation_api" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app comments in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "comments" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app dav in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "dav" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app encryption in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "encryption" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app federatedfilesharing in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "federatedfilesharing" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app federation in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "federation" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app files in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "files" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app files_external in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "files_external" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app files_pdfviewer in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "files_pdfviewer" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app files_rightclick in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "files_rightclick" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app files_sharing in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "files_sharing" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app files_trashbin in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "files_trashbin" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app files_versions in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "files_versions" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app files_videoplayer in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "files_videoplayer" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app firstrunwizard in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "firstrunwizard" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app logreader in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "logreader" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app lookup_server_connector in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "lookup_server_connector" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app nextcloud_announcements in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "nextcloud_announcements" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app notifications in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "notifications" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app oauth2 in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "oauth2" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app password_policy in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "password_policy" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app privacy in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "privacy" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app provisioning_api in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "provisioning_api" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app recommendations in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "recommendations" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app serverinfo in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "serverinfo" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app settings in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "settings" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app sharebymail in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "sharebymail" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app support in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "support" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app survey_client in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "survey_client" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app systemtags in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "systemtags" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app text in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "text" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app theming in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "theming" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app twofactor_backupcodes in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "twofactor_backupcodes" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app updatenotification in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "updatenotification" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app viewer in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "viewer" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app workflowengine in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "workflowengine" in appstore
2020-07-17T12:37:41+09:00 Checking for update of app gallery in appstore
2020-07-17T12:37:41+09:00 Checked for update of app "gallery" in appstore
2020-07-17T12:37:42+09:00 Repair step: Repair MySQL collation
2020-07-17T12:37:42+09:00 Repair info: All tables already have the correct collation -> nothing to do
2020-07-17T12:37:42+09:00 Repair step: Repair mime types
2020-07-17T12:37:42+09:00 Repair step: Clean tags and favorites
2020-07-17T12:37:42+09:00 Repair info: 0 tags of deleted users have been removed.
2020-07-17T12:37:42+09:00 Repair info: 0 tags for delete files have been removed.
2020-07-17T12:37:42+09:00 Repair info: 0 tag entries for deleted tags have been removed.
2020-07-17T12:37:42+09:00 Repair info: 0 tags with no entries have been removed.
2020-07-17T12:37:42+09:00 Repair step: Repair invalid shares
2020-07-17T12:37:42+09:00 Repair step: Move .step file of updater to backup location
2020-07-17T12:37:42+09:00 Repair info: .step file exists
2020-07-17T12:37:42+09:00 Repair info: .step-previous-update removed
2020-07-17T12:37:42+09:00 Repair info: .step file moved to .step-previous-update
2020-07-17T12:37:42+09:00 Repair step: Fix potential broken mount points
2020-07-17T12:37:42+09:00 Repair info: No mounts updated
2020-07-17T12:37:42+09:00 Repair step: Add log rotate job
2020-07-17T12:37:42+09:00 Repair step: Clear frontend caches
2020-07-17T12:37:42+09:00 Repair info: Image cache cleared
2020-07-17T12:37:42+09:00 Repair info: SCSS cache cleared
2020-07-17T12:37:42+09:00 Repair info: JS cache cleared
2020-07-17T12:37:42+09:00 Repair step: Clear every generated avatar on major updates
2020-07-17T12:37:42+09:00 Repair step: Add preview background cleanup job
2020-07-17T12:37:42+09:00 Repair step: Queue a one-time job to cleanup old backups of the updater
2020-07-17T12:37:42+09:00 Repair step: Cleanup invalid photocache files for carddav
2020-07-17T12:37:42+09:00 Repair step: Add background job to cleanup login flow v2 tokens
2020-07-17T12:37:42+09:00 Repair step: Remove potentially over exposing share links
2020-07-17T12:37:42+09:00 Repair info: No need to remove link shares.
2020-07-17T12:37:42+09:00 Repair step: Clear access cache of projects
2020-07-17T12:37:42+09:00 Repair step: Switches from deprecated "production" to "stable" update channel
2020-07-17T12:37:42+09:00 Repair step: Sets the enterprise logo
2020-07-17T12:37:42+09:00 Repair info: Repair step already executed
2020-07-17T12:37:42+09:00 Repair step: Reset generated avatar flag
2020-07-17T12:37:42+09:00 Starting code integrity check...
2020-07-17T12:37:49+09:00 Finished code integrity check
2020-07-17T12:37:49+09:00 Update successful
2020-07-17T12:37:49+09:00 Maintenance mode is kept active
2020-07-17T12:37:49+09:00 Reset log level

Keep maintenance mode active? [y/N]
Maintenance mode disabled

Maintenance mode is disabled

 

概要でテーブルのインデックスが見つからないエラーメッセージが表示されていたので以下を実行しました。

Nextcloud 18.0.7 インデックスの追加

# sudo -u nginx php /var/www/nextcloud/occ db:add-missing-indices
Check indices of the share table.
Check indices of the filecache table.
Check indices of the twofactor_providers table.
Check indices of the login_flow_v2 table.
Check indices of the whats_new table.
Check indices of the cards table.
Check indices of the cards_properties table.
Check indices of the calendarobjects_props table.
Adding calendarobject_calid_index index to the calendarobjects_props table, this can take some time...
calendarobjects_props table updated successfully.
Check indices of the schedulingobjects table.
Adding schedulobj_principuri_index index to the schedulingobjects table, this can take some time...
schedulingobjects table updated successfully.

概要で確認すると最新版チェックがまだできていないメッセージが表示されていたので、コマンドを実行しました。

# sudo -u nginx php /var/www/nextcloud/occ update:check

Nextcloud 18.0.7最新版

以上でアップデートの終了です。

Webベースアップデータが使えれば簡単なのですが、今回はうまくいきませんでした。代わりにコマンドラインアップデータではマイナーバージョンおよびメジャーバージョンのアップデートがうまくができましたので、今後はこの方法でアップデートを実施しようと思います。

 

スポンサーリンク

この記事が気に入ったら
フォローしよう

最新情報をお届けします

Twitterでフォローしよう

おすすめの記事