概要
- OwnCloudを久々にアップデートする
- しかしエラーに遭遇
- 解決方法をメモ
詳細
● occのあるディレクトリに移動
# cd /var/www/html/owncloud/
- アップデートコマンドを実行
# sudo -u apache php71 occ upgrade
ownCloud 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
:
2019-08-16T03:57:09+00:00 Repair warning: You have incompatible or missing apps enabled that could not be found or updated via the marketplace.
2019-08-16T03:57:09+00:00 Repair warning: Please install or update the following apps manually or disable them with:
occ app:disable onlyoffice ★ ←エラー:アドオンを無効にしないとアップデートできないとのこと
occ app:disable ownbackup ★ ←エラー:アドオンを無効にしないとアップデートできないとのこと
2019-08-16T03:57:09+00:00 Repair warning: For manually updating, see https://doc.owncloud.org/server/10.2/go.php?to=admin-marketplace-apps
2019-08-16T03:57:09+00:00 OC\RepairException: Upgrade is not possible
2019-08-16T03:57:09+00:00 Update failed
:
・アドオンの「onlyoffice」を無効化
# sudo -u apache php71 occ app:disable onlyoffice
ownCloud 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
onlyoffice disabled
・アドオンの「ownbackup」を無効化
# sudo -u apache php71 occ app:disable ownbackup
ownCloud 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
# sudo -u apache php71 occ upgrade
ownCloud 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
:
2019-08-16T04:04:00+00:00 Starting code integrity check...
2019-08-16T04:04:14+00:00 Finished code integrity check
2019-08-16T04:04:14+00:00 Update successful
2019-08-16T04:04:14+00:00 Maintenance mode is kept active
2019-08-16T04:04:14+00:00 Reset log level
- 再度アクセス
- 再起動が必要らしい
# sudo reboot
- 再度アクセス。。変わらない
* どうやらメンテナンスモードになっているとのこと。設定ファイルにて解除、再起動
# vi /var/www/html/owncloud/config/config.php
:
'maintenance' => false, ★trueからfalseに変更
# sudo reboot
- 治った!!