Nextcloud Upgrade error

CONTENTS


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


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 2589:本日 1:昨日 0

Counter: 2589, today: 1, yesterday: 0

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