Nextcloud Upgrade error

CONTENTS


Lastmodified 2024-03-29 (金) 13:46:09


/usr/bin/su -m www -c "php /usr/local/www/nextcloud/occ upgrade"

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
Setting log level to debug
Updating database schema
Updated database
Checking for update of app accessibility in appstore
Checked for update of app "accessibility" in App Store
Checking for update of app activity in appstore
Checked for update of app "activity" in App Store
Checking for update of app bruteforcesettings in appstore
Checked for update of app "bruteforcesettings" in App Store
Checking for update of app calendar in appstore
Checked for update of app "calendar" in App Store
Checking for update of app circles in appstore
Checked for update of app "circles" in App Store
Checking for update of app cloud_federation_api in appstore
Checked for update of app "cloud_federation_api" in App Store
Checking for update of app comments in appstore
Checked for update of app "comments" in App Store
Checking for update of app contacts in appstore
Checked for update of app "contacts" in App Store
Checking for update of app contactsinteraction in appstore
Checked for update of app "contactsinteraction" in App Store
Checking for update of app dashboard in appstore
Checked for update of app "dashboard" in App Store
Checking for update of app dav in appstore
Checked for update of app "dav" in App Store
Checking for update of app federatedfilesharing in appstore
Checked for update of app "federatedfilesharing" in App Store
Checking for update of app federation in appstore
Checked for update of app "federation" in App Store
Checking for update of app files in appstore
Checked for update of app "files" in App Store
Checking for update of app files_pdfviewer in appstore
Checked for update of app "files_pdfviewer" in App Store
Checking for update of app files_rightclick in appstore
Checked for update of app "files_rightclick" in App Store
Checking for update of app files_sharing in appstore
Checked for update of app "files_sharing" in App Store
Checking for update of app files_trashbin in appstore
Checked for update of app "files_trashbin" in App Store
Checking for update of app files_versions in appstore
Checked for update of app "files_versions" in App Store
Checking for update of app files_videoplayer in appstore
Checked for update of app "files_videoplayer" in App Store
Checking for update of app firstrunwizard in appstore
Checked for update of app "firstrunwizard" in App Store
Checking for update of app logreader in appstore
Checked for update of app "logreader" in App Store
Checking for update of app lookup_server_connector in appstore
Checked for update of app "lookup_server_connector" in App Store
Checking for update of app mail in appstore
Checked for update of app "mail" in App Store
Checking for update of app nextcloud_announcements in appstore
Checked for update of app "nextcloud_announcements" in App Store
Checking for update of app notifications in appstore
Checked for update of app "notifications" in App Store
Checking for update of app oauth2 in appstore
Checked for update of app "oauth2" in App Store
Checking for update of app password_policy in appstore
Checked for update of app "password_policy" in App Store
Checking for update of app photos in appstore
Checked for update of app "photos" in App Store
Checking for update of app privacy in appstore
Checked for update of app "privacy" in App Store
Checking for update of app provisioning_api in appstore
Checked for update of app "provisioning_api" in App Store
Checking for update of app recommendations in appstore
Checked for update of app "recommendations" in App Store
Checking for update of app richdocuments in appstore
Checked for update of app "richdocuments" in App Store
Checking for update of app serverinfo in appstore
Checked for update of app "serverinfo" in App Store
Checking for update of app settings in appstore
Checked for update of app "settings" in App Store
Checking for update of app sharebymail in appstore
Checked for update of app "sharebymail" in App Store
Checking for update of app spreed in appstore
Checked for update of app "spreed" in App Store
Checking for update of app support in appstore
Checked for update of app "support" in App Store
Checking for update of app survey_client in appstore
Checked for update of app "survey_client" in App Store
Checking for update of app systemtags in appstore
Checked for update of app "systemtags" in App Store
Checking for update of app text in appstore
Checked for update of app "text" in App Store
Checking for update of app theming in appstore
Checked for update of app "theming" in App Store
Checking for update of app twofactor_backupcodes in appstore
Checked for update of app "twofactor_backupcodes" in App Store
Checking for update of app updatenotification in appstore
Checked for update of app "updatenotification" in App Store
Checking for update of app user_status in appstore
Checked for update of app "user_status" in App Store
Checking for update of app viewer in appstore
Checked for update of app "viewer" in App Store
Checking for update of app weather_status in appstore
Checked for update of app "weather_status" in App Store
Checking for update of app workflowengine in appstore
Checked for update of app "workflowengine" in App Store
Starting code integrity check...
Finished code integrity check
Update successful
Maintenance mode is kept active
Resetting log level

Nextcloud ver 21.0.2.1

/usr/bin/su -m www -c "php /usr/local/www/nextcloud/occ upgrade"

すると、コンソールに、

{   :"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead."
,"userAgent":"--","version":"21.0.2.1"}
{"reqId":"xxxxxxxx","level":0,"time":"2021-06-28T06:47:30+00:00","remoteAddr":"","user":"--","app":"files_sharing","method":".","userAgent":"--","version":"21.0.2.1"}
Nextcloud is already latest version

とでるのは、

/usr/local/www/nextcloud/config/config.php

'loglevel' => 1, 

が、

'loglevel' => 0,

と変更されたためのよう。"1"へ戻すと、エラーメッセージは抑制される。

Nextcloud 20.0.5.2

/usr/bin/su -m www -c "php /usr/local/www/nextcloud/occ upgrade"

{"reqId":"********************","level":1,"time":"2021-01-19T23:07:23+00:00","remoteAddr":"","user":"--","app":"cli","method":"","url":"--","message":"Memcache \\OC\\Memcache\\APCu not available for local cache","userAgent":"--","version":"20.0.5.2"}
{"reqId":"********************","level":1,"time":"2021-01-19T23:07:23+00:00","remoteAddr":"","user":"--","app":"cli","method":"","url":"--","message":"Memcache \\OC\\Memcache\\APCu not available for distributed cache","userAgent":"--","version":"20.0.5.2"}
{"reqId":"********************","level":0,"time":"2021-01-19T23:07:24+00:00","remoteAddr":"","user":"--","app":"files_sharing","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"20.0.5.2"}
Nextcloud is already latest version
{"reqId":"********************","level":3,"time":"2021-01-19T23:07:24+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"chmod(): Operation not permitted at /usr/local/www/nextcloud/lib/private/Log/File.php#87","userAgent":"--","version":"20.0.5.2"}

Nextcloud 20.0.5.2にUPしたところ、このwarningが出るようになった。抑制するには、

/usr/local/www/nextcloud/config/config.php

  'loglevel' => 2,

で消えるがいいのか?

Nextcloud 19.0.3

•データベースにいくつかのインデックスがありません。 大きなテーブルにインデックスを追加すると、自動的に追加されないまでに時間がかかる可能性があるためです。 "occ db:add-missing-indices"を実行することによって、インスタンスが実行し続けている間にそれらの欠けているインデックスを手動で追加することができます。

root@g7:~:20_09_11:14:30 # cd /usr/local/www/nextcloud
root@g7:/usr/local/www/nextcloud:20_09_11:14:32 # su -m www -c "php /usr/local/www/nextcloud/occ db:add-missing-columns"
Check columns of the comments table.
Adding additional reference_id column to the comments table, this can take some time...
Comments table updated successfully.
root@g7:/usr/local/www/nextcloud:20_09_11:14:32 #

https://matoken.org/blog/2020/06/05/upgrade-from-nextcloud-18-to-19-with-beta-channel/

テーブル “oc_properties”のインデックス “properties_path_index”が見つかりません。

phpmyadmin で、properties_path_index ちうindex を「新規作成」した

Step 4 is currently in process. Please reload this page later.

https://nc.suzunet.info/blogs/blog_entries/view/5/c694d127b8f7018e7f68c35a5ca6fa0e

root@sun1:~:20_09_12:8:12 # cd /usr/local/www/nextcloud
root@sun1:/usr/local/www/nextcloud:20_09_12:8:12 # sudo -u www php occ maintenance:repair
- Repair MySQL collation
    - All tables already have the correct collation -> nothing to do
- Repair mime types
- Clean tags and favorites
    - 0 tags of deleted users have been removed.
    - 0 tags for delete files have been removed.
    - 0 tag entries for deleted tags have been removed.
    - 0 tags with no entries have been removed.
- Repair invalid shares
- Move .step file of updater to backup location
    - .step file exists
    - .step-previous-update removed
    - .step file moved to .step-previous-update
- Fix potential broken mount points
    - No mounts updated
- Add log rotate job
- Clear frontend caches
    - Image cache cleared
    - SCSS cache cleared
    - JS cache cleared
- Clear every generated avatar on major updates
- Add preview background cleanup job
- Queue a one-time job to cleanup old backups of the updater
- Cleanup invalid photocache files for carddav
- Add background job to cleanup login flow v2 tokens
- Remove potentially over exposing share links
    - No need to remove link shares.
- Clear access cache of projects
- Switches from deprecated "production" to "stable" update channel
- Sets the enterprise logo
    - Repair step already executed
- Reset generated avatar flag
- Fix component of birthday calendars
    - 1 birthday calendars updated.
- Regenerating birthday calendars to use new icons and fix old birthday events without year
    - Repair step already executed
- Fix broken values of calendar objects
   0 [>---------------------------]
- Registering building of calendar search index as background job
    - Repair step already executed
- Registering background jobs to update cache for webcal calendars
    - Added 0 background jobs to update webcal calendars
- Registering building of calendar reminder index as background job
    - Repair step already executed
- Clean up orphan event and contact data
    - 0 events without a calendar have been cleaned up
    - 0 properties without an events have been cleaned up
    - 0 changes without a calendar have been cleaned up
    - 0 cached events without a calendar subscription have been cleaned up
    - 0 changes without a calendar subscription have been cleaned up
    - 0 contacts without an addressbook have been cleaned up
    - 0 properties without a contact have been cleaned up
    - 0 changes without an addressbook have been cleaned up
- Remove activity entries of private events
    - Removed 0 activity entries
- Fix the share type of guest shares when migrating from ownCloud
- Copy the share password into the dedicated column
- Set existing shares as accepted
- Update OAuth token expiration times
- Switches from default updater server to the customer one if a valid subscription is available
    - Repair step already executed
- Add background job to check for backup codes
- Populating added database structures for workflows

 PHPを7.2>7.3へ

https://piano2nd.smb.net/PukiWiki/index.php?PHP%205.6%20%E3%81%8B%E3%82%89%20PHP%207%20%E3%81%B8%E3%82%A2%E3%83%83%E3%83%97%E3%82%B0%E3%83%AC%E3%83%BC%E3%83%89

pkg set -o lang/php72:lang/php73
pkg remove '*php72*'
cd /usr/ports/lang/php73 && make config
      ZTS にチェック
portinstall lang/php73 --batch
cd /usr/ports/lang/php73-extensions && make config
portinstall lang/php73-extensions --batch
portinstall devel/pecl-APCu --batch
portinstall /usr/ports/graphics/pecl-imagick --batch
cd /usr/ports/www/mod_php73 && make config
    ZTS にチェック
portinstall /usr/ports/www/mod_php73 --batch
   

Total access 2154:本日 1:昨日 0

Counter: 2154, today: 1, yesterday: 0

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS