Nextcloud
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
CONTENTS
#contents
----
Lastmodified &lastmod;
----
*Nextcloud [#ta2c5edf]
# portinstall www/nextcloud
# portinstall graphics/ImageMagick-nox11
# portinstall graphics/ImageMagick6 (2020年7月20日現在)
と、ports でインストール出来るが、VersionUPに不具合がある...
*HDD追加・容量拡張 [#y8660750]
【参考】http://web.cc.yamaguchi-u.ac.jp/~hiroshi/FreeBSD/...
『ストレージがほぼ一杯です』を通り過ぎると、サーバのディ...
HDDを追加して認識状態を確認
ada1 at ata1 bus 0 scbus1 target 0 lun 0
ada1: <WDC WD60EZRX-00MVLB1 80.00A80> ACS-2 ATA SATA 3.x...
ada1: Serial Number WD-WX31D944CFJ7
ada1: 600.000MB/s transfers (SATA 3.x, UDMA5, PIO 8192by...
ada1: 5723166MB (11721045168 512 byte sectors: 16H 63S/T...
ada1: quirks=0x1<4K>
ada1: Previously was known as ad2
gpart で確認
> gpart show ada1
gpart: No such geom: ada1.
GPT形式 (-s GPT) のパーテーションを作成 create する。
# gpart create -s GPT ada1
ada1 created
確認
# gpart show ada1
=> 34 11721045101 ada1 GPT (5.5T)
34 11721045101 - free - (5.5T)
HDD丸ごとBSDパーテーションとする。
オプションの説明
必須 -t タイプ(ここでは freebsd なので -t freebsd-ufs )
任意 -b 値1 (パーティションの始まりとなる論理的ブロック)
任意 -s 値2 (パーティションのサイズ)
任意 -a 値3 (開始位置(値1)及びサイズ(値2)を値3の倍数に揃...
ここでは 4kセクタのアライメントを揃える為に -a 4k
任意 -i 値4 (インデックスを指定)
# gpart add -a 4k -t freebsd-ufs ada1
ada1p1 added
確認する
# gpart show ada1
=> 34 11721045101 ada1 GPT (5.5T)
34 6 - free - (3.0K)
40 11721045088 1 freebsd-ufs (5.5T)
11721045128 7 - free - (3.5K)
さらに device ファイルができているか確認
# ls /dev/ada1*
/dev/ada1 /dev/ada1p1
となりOK
ファイルシステムの作成
# newfs -U /dev/ada1p1
少々お時間がかかります.(1分弱)
その後は /usr/home というマウント先ディレクトリを作り、
# mount /dev/ada1p1 /usr/home この名前は適宜
でマウント出来るか試してから/etc/fstab を編集
# Device Mountpoint FStype Options Dump Pass#
/dev/ada0s1a / ufs rw 1 1
/dev/ada0s1b none swap sw 0 0
/dev/ada1p1 /usr/home ufs rw 1 2 ←追加行
** データ移行 [#n035820c]
/usr/local/www/nextcloud/config/config.php
'maintenance' => true,
メインテナンスモードにして、ローカルHDD同士だが、使い慣れ...
Nextcloud_migration.sh
#!/bin/sh
/usr/local/bin/rsync -av --inplace --exclude '*.core' /u...
/usr/home/Nextcloud/dataへ移行出来たら、
/usr/local/www/nextcloud/config/config.php は、
'datadirectory' => '/usr/home/Nextcloud/data',
というエントリーとし、メンテナンスモード解除。
*nextcloud.log も [#vd04228e]
/usr/local/etc/newsyslog.conf.d/nextcloud.conf
# configuration file for newsyslog for necxtcloud
# logfilename [owner:group] mode count size ...
#/usr/local/www/nextcloud/data/nextcloud.log 644 12 ...
/usr/home/Nextcloud/data/nextcloud.log 644 12 * ...
と変更。
注)
ここでfstab の書き方を間違えたことに気づかず再起動させた...
# mount -u /
を実行すると / 以下が読み込み・書き込み可能な状態でマウン...
*www/nextcloud を portupgrade 対象から外す [#p29fd212]
/usr/local/etc/pkgtools.conf
HOLD_PKGS = [
'bsdpan-*',
'www/nextcloud*',
]
とすると、こうなる。
Ports tree is already up to date.
[Reading data from pkg(8) ... - 441 packages found - done]
glib-2.56.1_1,1 < needs updating (port has ...
gobject-introspection-1.50.0_1,1 < needs updating (por...
help2man-1.47.7 < needs updating (port has ...
nextcloud-php70-14.0.1 < [held] needs updating (po...
pkg-1.10.5_4 < needs updating (port has ...
pkgconf-1.5.3,1 < needs updating (port has ...
postgresql95-client-9.5.14 < needs updating (port has ...
py27-openssl-17.5.0_1 < needs updating (port has ...
*SSL [#h0b3e968]
# cd /usr/local/etc/apache24/
# openssl genrsa -out server.key 2048
# openssl req -new -key server.key -out server.csr
# openssl x509 -req -days 365 -in server.csr -signkey se...
# chmod 0400 /usr/local/etc/apache24/server.*
** edit usr/local/etc/apache24/httpd.conf [#z28c0383]
# 以下の行のコメントを外す
LoadModule socache_shmcb_module libexec/apache24/mod_soc...
LoadModule ssl_module libexec/apache24/mod_ssl.so
Include etc/apache24/extra/httpd-ssl.conf
** edit httpd-ssl.conf [#e75900cb]
<VirtualHost _default_:443>
# General setup for the virtual host
DocumentRoot "/usr/local/www/apache24/data"
ServerName xxxx.smb.net:443
ServerAdmin xxxx@smb.net
ErrorLog "/var/log/httpd-error.log"
TransferLog "/var/log/httpd-access.log"
# apachectl restart
*post install settings [#s87c3949]
config.sample.php
/**
* Where user files are stored. The SQLite database is a...
* you use SQLite.
*
* Default to ``data/`` in the Nextcloud directory.
*/
'datadirectory' => '/usr/local/www/nextcloudnextcloud/da...
** G7 [#baf5524a]
# cp -rp /usr/local/www/nextcloud/data /usr/home/Nextclo...
# chown -R www:www /usr/home/Nextcloud/data
'datadirectory' => '/usr/home/Nextcloud/data',
/usr/local/etc/php.ini
[opcache]
opcache.enable=1
opcache.enable_cli=1
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.memory_consumption=128
opcache.save_comments=1
opcache.revalidate_freq=1
/usr/local/etc/apache24/Includes/nextcloud.conf
Alias /nextcloud /usr/local/www/nextcloud
AcceptPathInfo On
<Directory /usr/local/www/nextcloud>
AllowOverride All
Require all granted
Header set Strict-Transport-Security "max-age=157680...
</Directory>
* NEXTCLOUD VERSION UPGRADE [#sf6540c9]
********************************************************...
* NEXTCLOUD VERSION UPGRADE ...
********************************************************...
After a version migration you should upgrade your nextcl...
using command line:
* cd /usr/local/www/nextcloud
* su -m www -c "php ./occ upgrade"
# su -m www -c "php /usr/local/www/nextcloud/occ upgrade"
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!...
/!\ NEXTCLOUD 13.0.1 UPDATE /!\
The nextcloud 13.0.1 package changes the location of the...
After updating to 13.0.1 you MUST adapt your configurati...
add an additional entry to the "apps-paths" array in con...
1 =>
array (
'path' => '/usr/local/www/nextcloud/apps-pkg',
'url' => '/apps-pkg',
'writable' => false,
),
For the default installation, the fix can be applied with:
cd /usr/local/www/nextcloud
su -m www -c "php ./occ config:import < /usr/local/sha...
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!...
** * su -m www -c "php ./occ upgrade" [#k30822f3]
# su -m www -c "php ./occ upgrade"
Nextcloud or one of the apps require upgrade - only a li...
You may use your browser or the occ upgrade command to d...
Set log level to debug
Updating database schema
Updated database
Checking for update of app activity in appstore
Checked for update of app "activity" in appstore
Checking for update of app comments in appstore
Checked for update of app "comments" in appstore
Checking for update of app dav in appstore
Checked for update of app "dav" in appstore
Checking for update of app federatedfilesharing in appst...
Checked for update of app "federatedfilesharing" in apps...
Checking for update of app federation in appstore
Checked for update of app "federation" in appstore
Checking for update of app files in appstore
Checked for update of app "files" in appstore
Checking for update of app files_pdfviewer in appstore
Checked for update of app "files_pdfviewer" in appstore
Checking for update of app files_sharing in appstore
Checked for update of app "files_sharing" in appstore
Checking for update of app files_texteditor in appstore
Checked for update of app "files_texteditor" in appstore
Checking for update of app files_trashbin in appstore
Checked for update of app "files_trashbin" in appstore
Checking for update of app files_versions in appstore
Checked for update of app "files_versions" in appstore
Checking for update of app files_videoplayer in appstore
Checked for update of app "files_videoplayer" in appstore
Checking for update of app firstrunwizard in appstore
Checked for update of app "firstrunwizard" in appstore
Checking for update of app gallery in appstore
Checked for update of app "gallery" in appstore
Checking for update of app logreader in appstore
Checked for update of app "logreader" in appstore
Checking for update of app lookup_server_connector in ap...
Checked for update of app "lookup_server_connector" in a...
Checking for update of app nextcloud_announcements in ap...
Checked for update of app "nextcloud_announcements" in a...
Checking for update of app notifications in appstore
Checked for update of app "notifications" in appstore
Checking for update of app oauth2 in appstore
Checked for update of app "oauth2" in appstore
Checking for update of app password_policy in appstore
Checked for update of app "password_policy" in appstore
Checking for update of app provisioning_api in appstore
Checked for update of app "provisioning_api" in appstore
Checking for update of app serverinfo in appstore
Checked for update of app "serverinfo" in appstore
Checking for update of app sharebymail in appstore
Checked for update of app "sharebymail" in appstore
Checking for update of app survey_client in appstore
Checked for update of app "survey_client" in appstore
Checking for update of app systemtags in appstore
Checked for update of app "systemtags" in appstore
Checking for update of app theming in appstore
Checked for update of app "theming" in appstore
Checking for update of app twofactor_backupcodes in apps...
Checked for update of app "twofactor_backupcodes" in app...
Checking for update of app updatenotification in appstore
Checked for update of app "updatenotification" in appstore
Checking for update of app workflowengine in appstore
Checked for update of app "workflowengine" in appstore
Starting code integrity check...
Finished code integrity check
Update successful
Maintenance mode is kept active
Reset log level
** 最後にNextcloudのメンテナンスモードを解除します。 [#w8...
cd /usr/local/www/nextcloud/config/config.php
'maintenance' => false,
** Memorycache [#be104aa0]
https://docs.nextcloud.com/server/12/admin_manual/configu...
# portinstall databases/memcached
# portinstall databases/pecl-memcache
[Reading data from pkg(8) ... - 317 packages found - done]
** Port marked as IGNORE: databases/pecl-memcache:
does not work with PHP versions 70 71 72 73 and ...
memcached_enable="YES"
# portinstall devel/pecl-APCu
[Reading data from pkg(8) ... - 405 packages found - done]
** Port marked as IGNORE: devel/pecl-APCu:
cannot be installed: doesn't work with lang/php5...
** Listing the failed packages (-:ignored / *:skipped / ...
- devel/pecl-APCu
# portinstall devel/pecl-APCu4
/usr/local/www/nextcloud/config/config.php
'memcache.local' => '\OC\Memcache\APCu',
「すべてのチェックに合格しました。」とでるが、サーバDBで...
//'memcache.local' => '\OC\Memcache\APCu',
// 'memcache.local' => '\OC\Memcache\APCu',
** File locking [#pebe294c]
https://docs.nextcloud.com/server/12/admin_manual/configu...
トランザクションファイルロックを使用してMemcacheを使用す...
# portinstall databases/redis
redis_enable="YES"
# portinstall databases/pecl-redis
'redis' => array(
'host' => 'localhost',
'port' => 6379,
'timeout' => 0.0,
'password' => '', // Optional, if not defined no pa...
),
* 最大アップロードサイズ [#r84912bb]
Web設定 ⇒ 管理 ⇒ 基本設定 ⇒ ファイル操作 ⇒ 最大ア...
/usr/local/www/nextcloud/.htaccess
<IfModule mod_php5.c>
php_value upload_max_filesize 1024M ← 511M
php_value post_max_size 1024M ← 511M
php_value memory_limit 512M
php_value mbstring.func_overload 0
php_value always_populate_raw_post_data -1
php_value default_charset 'UTF-8'
php_value output_buffering 0
<IfModule mod_env.c>
SetEnv htaccessWorking true
</IfModule>
</IfModule>
<IfModule mod_php7.c>
php_value upload_max_filesize 1024M ← 511M
php_value post_max_size 1024M ← 511M
php_value memory_limit 512M
php_value mbstring.func_overload 0
php_value default_charset 'UTF-8'
php_value output_buffering 0
<IfModule mod_env.c>
SetEnv htaccessWorking true
</IfModule>
</IfModule>
* ファイルをアップロードすると 'Integrity constraint viol...
https://wiki.archlinuxjp.org/index.php/Nextcloud
https://wiki.archlinuxjp.org/index.php/Nextcloud#.E3.83.9...
PHPのキャッシュを止めるとOK
/usr/local/etc/php.ini
;opcache.enable=1
;opcache.enable_cli=1
;opcache.interned_strings_buffer=8
;opcache.max_accelerated_files=10000
;opcache.memory_consumption=128
;opcache.save_comments=1
;opcache.revalidate_freq=1
結局RedisをセットしてPHPキャッシュを止めると、エラーも出...
* ファイルロックを解除する [#k3d1dd4b]
https://help.nextcloud.com/t/file-is-locked-how-to-unlock...
* フォルダに65356個以上のファイルがあるとエラーする件 [...
https://www.iij.ad.jp/company/development/tech/activities...
コマンドにスペースが含まれるとエラーする
# sysctl -w kern.ipc.somaxconn = 100000
kern.ipc.somaxconn: 128
sysctl: unknown oid ''
sysctl: unknown oid '100000'
ので、こう
# sysctl -w kern.ipc.somaxconn=100000
kern.ipc.somaxconn: 128 -> 100000
ブート時にこの値になるよう設定するには、「/etc/sysctl.con...
kern.ipc.somaxconn=100000
*AM3 ごろのエラーの件 [#d7c06fa5]
/etc/sysctrl.conf
# https://pleiades.ucsc.edu/hyades/FreeBSD_Network_Tuning
kern.maxfiles=6289573
kern.maxfilesperproc=6289573
#kern.maxvnodes=3339551
Sep 25 02:55:00 sun1 /usr/sbin/cron[75782]: (munin) CMD ...
Sep 25 03:00:00 sun1 /usr/sbin/cron[76073]: (root) CMD (...
Sep 25 03:00:00 sun1 /usr/sbin/cron[76074]: (root) CMD (...
Sep 25 03:00:00 sun1 /usr/sbin/cron[76075]: (operator) C...
Sep 25 03:00:00 sun1 /usr/sbin/cron[76076]: (munin) CMD ...
Sep 25 03:01:00 sun1 /usr/sbin/cron[76365]: (root) CMD (...
Sep 25 03:01:00 sun1 /usr/sbin/cron[76366]: (root) CMD (...
Sep 25 04:39:58 sun1 kernel: sonewconn: pcb 0xfffff80079...
Sep 25 04:41:03 sun1 kernel: sonewconn: pcb 0xfffff80079...
Sep 25 04:42:07 sun1 kernel: sonewconn: pcb 0xfffff80079...
Sep 25 04:43:11 sun1 kernel: sonewconn: pcb 0xfffff80079...
Sep 25 04:44:15 sun1 kernel: sonewconn: pcb 0xfffff80079...
https://blog.tyk.nu/blog/fun-with-freebsd-listen-queue-ov...
https://github.com/tmux/tmux/issues/352
https://wiki.archlinux.jp/index.php/Nextcloud#CSync_faile...
*Getting Start! [#vdb2cf1d]
+ウエッブブラウザで「指定されたnextcloudサーバ」へアクセ...
+指定されたID・PWでログインする。
+ログインすると、アプリのダウンロードが提案されるので、端...
+インストールしたアプリを起動し、「新規アカウント」指示に...
+自動同期したいファイルを含むフォルダを設定しておくとサー...
----
Total access &counter(total);:本日 &counter(today);:昨...
#counter([total|today|yesterday]);
終了行:
CONTENTS
#contents
----
Lastmodified &lastmod;
----
*Nextcloud [#ta2c5edf]
# portinstall www/nextcloud
# portinstall graphics/ImageMagick-nox11
# portinstall graphics/ImageMagick6 (2020年7月20日現在)
と、ports でインストール出来るが、VersionUPに不具合がある...
*HDD追加・容量拡張 [#y8660750]
【参考】http://web.cc.yamaguchi-u.ac.jp/~hiroshi/FreeBSD/...
『ストレージがほぼ一杯です』を通り過ぎると、サーバのディ...
HDDを追加して認識状態を確認
ada1 at ata1 bus 0 scbus1 target 0 lun 0
ada1: <WDC WD60EZRX-00MVLB1 80.00A80> ACS-2 ATA SATA 3.x...
ada1: Serial Number WD-WX31D944CFJ7
ada1: 600.000MB/s transfers (SATA 3.x, UDMA5, PIO 8192by...
ada1: 5723166MB (11721045168 512 byte sectors: 16H 63S/T...
ada1: quirks=0x1<4K>
ada1: Previously was known as ad2
gpart で確認
> gpart show ada1
gpart: No such geom: ada1.
GPT形式 (-s GPT) のパーテーションを作成 create する。
# gpart create -s GPT ada1
ada1 created
確認
# gpart show ada1
=> 34 11721045101 ada1 GPT (5.5T)
34 11721045101 - free - (5.5T)
HDD丸ごとBSDパーテーションとする。
オプションの説明
必須 -t タイプ(ここでは freebsd なので -t freebsd-ufs )
任意 -b 値1 (パーティションの始まりとなる論理的ブロック)
任意 -s 値2 (パーティションのサイズ)
任意 -a 値3 (開始位置(値1)及びサイズ(値2)を値3の倍数に揃...
ここでは 4kセクタのアライメントを揃える為に -a 4k
任意 -i 値4 (インデックスを指定)
# gpart add -a 4k -t freebsd-ufs ada1
ada1p1 added
確認する
# gpart show ada1
=> 34 11721045101 ada1 GPT (5.5T)
34 6 - free - (3.0K)
40 11721045088 1 freebsd-ufs (5.5T)
11721045128 7 - free - (3.5K)
さらに device ファイルができているか確認
# ls /dev/ada1*
/dev/ada1 /dev/ada1p1
となりOK
ファイルシステムの作成
# newfs -U /dev/ada1p1
少々お時間がかかります.(1分弱)
その後は /usr/home というマウント先ディレクトリを作り、
# mount /dev/ada1p1 /usr/home この名前は適宜
でマウント出来るか試してから/etc/fstab を編集
# Device Mountpoint FStype Options Dump Pass#
/dev/ada0s1a / ufs rw 1 1
/dev/ada0s1b none swap sw 0 0
/dev/ada1p1 /usr/home ufs rw 1 2 ←追加行
** データ移行 [#n035820c]
/usr/local/www/nextcloud/config/config.php
'maintenance' => true,
メインテナンスモードにして、ローカルHDD同士だが、使い慣れ...
Nextcloud_migration.sh
#!/bin/sh
/usr/local/bin/rsync -av --inplace --exclude '*.core' /u...
/usr/home/Nextcloud/dataへ移行出来たら、
/usr/local/www/nextcloud/config/config.php は、
'datadirectory' => '/usr/home/Nextcloud/data',
というエントリーとし、メンテナンスモード解除。
*nextcloud.log も [#vd04228e]
/usr/local/etc/newsyslog.conf.d/nextcloud.conf
# configuration file for newsyslog for necxtcloud
# logfilename [owner:group] mode count size ...
#/usr/local/www/nextcloud/data/nextcloud.log 644 12 ...
/usr/home/Nextcloud/data/nextcloud.log 644 12 * ...
と変更。
注)
ここでfstab の書き方を間違えたことに気づかず再起動させた...
# mount -u /
を実行すると / 以下が読み込み・書き込み可能な状態でマウン...
*www/nextcloud を portupgrade 対象から外す [#p29fd212]
/usr/local/etc/pkgtools.conf
HOLD_PKGS = [
'bsdpan-*',
'www/nextcloud*',
]
とすると、こうなる。
Ports tree is already up to date.
[Reading data from pkg(8) ... - 441 packages found - done]
glib-2.56.1_1,1 < needs updating (port has ...
gobject-introspection-1.50.0_1,1 < needs updating (por...
help2man-1.47.7 < needs updating (port has ...
nextcloud-php70-14.0.1 < [held] needs updating (po...
pkg-1.10.5_4 < needs updating (port has ...
pkgconf-1.5.3,1 < needs updating (port has ...
postgresql95-client-9.5.14 < needs updating (port has ...
py27-openssl-17.5.0_1 < needs updating (port has ...
*SSL [#h0b3e968]
# cd /usr/local/etc/apache24/
# openssl genrsa -out server.key 2048
# openssl req -new -key server.key -out server.csr
# openssl x509 -req -days 365 -in server.csr -signkey se...
# chmod 0400 /usr/local/etc/apache24/server.*
** edit usr/local/etc/apache24/httpd.conf [#z28c0383]
# 以下の行のコメントを外す
LoadModule socache_shmcb_module libexec/apache24/mod_soc...
LoadModule ssl_module libexec/apache24/mod_ssl.so
Include etc/apache24/extra/httpd-ssl.conf
** edit httpd-ssl.conf [#e75900cb]
<VirtualHost _default_:443>
# General setup for the virtual host
DocumentRoot "/usr/local/www/apache24/data"
ServerName xxxx.smb.net:443
ServerAdmin xxxx@smb.net
ErrorLog "/var/log/httpd-error.log"
TransferLog "/var/log/httpd-access.log"
# apachectl restart
*post install settings [#s87c3949]
config.sample.php
/**
* Where user files are stored. The SQLite database is a...
* you use SQLite.
*
* Default to ``data/`` in the Nextcloud directory.
*/
'datadirectory' => '/usr/local/www/nextcloudnextcloud/da...
** G7 [#baf5524a]
# cp -rp /usr/local/www/nextcloud/data /usr/home/Nextclo...
# chown -R www:www /usr/home/Nextcloud/data
'datadirectory' => '/usr/home/Nextcloud/data',
/usr/local/etc/php.ini
[opcache]
opcache.enable=1
opcache.enable_cli=1
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.memory_consumption=128
opcache.save_comments=1
opcache.revalidate_freq=1
/usr/local/etc/apache24/Includes/nextcloud.conf
Alias /nextcloud /usr/local/www/nextcloud
AcceptPathInfo On
<Directory /usr/local/www/nextcloud>
AllowOverride All
Require all granted
Header set Strict-Transport-Security "max-age=157680...
</Directory>
* NEXTCLOUD VERSION UPGRADE [#sf6540c9]
********************************************************...
* NEXTCLOUD VERSION UPGRADE ...
********************************************************...
After a version migration you should upgrade your nextcl...
using command line:
* cd /usr/local/www/nextcloud
* su -m www -c "php ./occ upgrade"
# su -m www -c "php /usr/local/www/nextcloud/occ upgrade"
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!...
/!\ NEXTCLOUD 13.0.1 UPDATE /!\
The nextcloud 13.0.1 package changes the location of the...
After updating to 13.0.1 you MUST adapt your configurati...
add an additional entry to the "apps-paths" array in con...
1 =>
array (
'path' => '/usr/local/www/nextcloud/apps-pkg',
'url' => '/apps-pkg',
'writable' => false,
),
For the default installation, the fix can be applied with:
cd /usr/local/www/nextcloud
su -m www -c "php ./occ config:import < /usr/local/sha...
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!...
** * su -m www -c "php ./occ upgrade" [#k30822f3]
# su -m www -c "php ./occ upgrade"
Nextcloud or one of the apps require upgrade - only a li...
You may use your browser or the occ upgrade command to d...
Set log level to debug
Updating database schema
Updated database
Checking for update of app activity in appstore
Checked for update of app "activity" in appstore
Checking for update of app comments in appstore
Checked for update of app "comments" in appstore
Checking for update of app dav in appstore
Checked for update of app "dav" in appstore
Checking for update of app federatedfilesharing in appst...
Checked for update of app "federatedfilesharing" in apps...
Checking for update of app federation in appstore
Checked for update of app "federation" in appstore
Checking for update of app files in appstore
Checked for update of app "files" in appstore
Checking for update of app files_pdfviewer in appstore
Checked for update of app "files_pdfviewer" in appstore
Checking for update of app files_sharing in appstore
Checked for update of app "files_sharing" in appstore
Checking for update of app files_texteditor in appstore
Checked for update of app "files_texteditor" in appstore
Checking for update of app files_trashbin in appstore
Checked for update of app "files_trashbin" in appstore
Checking for update of app files_versions in appstore
Checked for update of app "files_versions" in appstore
Checking for update of app files_videoplayer in appstore
Checked for update of app "files_videoplayer" in appstore
Checking for update of app firstrunwizard in appstore
Checked for update of app "firstrunwizard" in appstore
Checking for update of app gallery in appstore
Checked for update of app "gallery" in appstore
Checking for update of app logreader in appstore
Checked for update of app "logreader" in appstore
Checking for update of app lookup_server_connector in ap...
Checked for update of app "lookup_server_connector" in a...
Checking for update of app nextcloud_announcements in ap...
Checked for update of app "nextcloud_announcements" in a...
Checking for update of app notifications in appstore
Checked for update of app "notifications" in appstore
Checking for update of app oauth2 in appstore
Checked for update of app "oauth2" in appstore
Checking for update of app password_policy in appstore
Checked for update of app "password_policy" in appstore
Checking for update of app provisioning_api in appstore
Checked for update of app "provisioning_api" in appstore
Checking for update of app serverinfo in appstore
Checked for update of app "serverinfo" in appstore
Checking for update of app sharebymail in appstore
Checked for update of app "sharebymail" in appstore
Checking for update of app survey_client in appstore
Checked for update of app "survey_client" in appstore
Checking for update of app systemtags in appstore
Checked for update of app "systemtags" in appstore
Checking for update of app theming in appstore
Checked for update of app "theming" in appstore
Checking for update of app twofactor_backupcodes in apps...
Checked for update of app "twofactor_backupcodes" in app...
Checking for update of app updatenotification in appstore
Checked for update of app "updatenotification" in appstore
Checking for update of app workflowengine in appstore
Checked for update of app "workflowengine" in appstore
Starting code integrity check...
Finished code integrity check
Update successful
Maintenance mode is kept active
Reset log level
** 最後にNextcloudのメンテナンスモードを解除します。 [#w8...
cd /usr/local/www/nextcloud/config/config.php
'maintenance' => false,
** Memorycache [#be104aa0]
https://docs.nextcloud.com/server/12/admin_manual/configu...
# portinstall databases/memcached
# portinstall databases/pecl-memcache
[Reading data from pkg(8) ... - 317 packages found - done]
** Port marked as IGNORE: databases/pecl-memcache:
does not work with PHP versions 70 71 72 73 and ...
memcached_enable="YES"
# portinstall devel/pecl-APCu
[Reading data from pkg(8) ... - 405 packages found - done]
** Port marked as IGNORE: devel/pecl-APCu:
cannot be installed: doesn't work with lang/php5...
** Listing the failed packages (-:ignored / *:skipped / ...
- devel/pecl-APCu
# portinstall devel/pecl-APCu4
/usr/local/www/nextcloud/config/config.php
'memcache.local' => '\OC\Memcache\APCu',
「すべてのチェックに合格しました。」とでるが、サーバDBで...
//'memcache.local' => '\OC\Memcache\APCu',
// 'memcache.local' => '\OC\Memcache\APCu',
** File locking [#pebe294c]
https://docs.nextcloud.com/server/12/admin_manual/configu...
トランザクションファイルロックを使用してMemcacheを使用す...
# portinstall databases/redis
redis_enable="YES"
# portinstall databases/pecl-redis
'redis' => array(
'host' => 'localhost',
'port' => 6379,
'timeout' => 0.0,
'password' => '', // Optional, if not defined no pa...
),
* 最大アップロードサイズ [#r84912bb]
Web設定 ⇒ 管理 ⇒ 基本設定 ⇒ ファイル操作 ⇒ 最大ア...
/usr/local/www/nextcloud/.htaccess
<IfModule mod_php5.c>
php_value upload_max_filesize 1024M ← 511M
php_value post_max_size 1024M ← 511M
php_value memory_limit 512M
php_value mbstring.func_overload 0
php_value always_populate_raw_post_data -1
php_value default_charset 'UTF-8'
php_value output_buffering 0
<IfModule mod_env.c>
SetEnv htaccessWorking true
</IfModule>
</IfModule>
<IfModule mod_php7.c>
php_value upload_max_filesize 1024M ← 511M
php_value post_max_size 1024M ← 511M
php_value memory_limit 512M
php_value mbstring.func_overload 0
php_value default_charset 'UTF-8'
php_value output_buffering 0
<IfModule mod_env.c>
SetEnv htaccessWorking true
</IfModule>
</IfModule>
* ファイルをアップロードすると 'Integrity constraint viol...
https://wiki.archlinuxjp.org/index.php/Nextcloud
https://wiki.archlinuxjp.org/index.php/Nextcloud#.E3.83.9...
PHPのキャッシュを止めるとOK
/usr/local/etc/php.ini
;opcache.enable=1
;opcache.enable_cli=1
;opcache.interned_strings_buffer=8
;opcache.max_accelerated_files=10000
;opcache.memory_consumption=128
;opcache.save_comments=1
;opcache.revalidate_freq=1
結局RedisをセットしてPHPキャッシュを止めると、エラーも出...
* ファイルロックを解除する [#k3d1dd4b]
https://help.nextcloud.com/t/file-is-locked-how-to-unlock...
* フォルダに65356個以上のファイルがあるとエラーする件 [...
https://www.iij.ad.jp/company/development/tech/activities...
コマンドにスペースが含まれるとエラーする
# sysctl -w kern.ipc.somaxconn = 100000
kern.ipc.somaxconn: 128
sysctl: unknown oid ''
sysctl: unknown oid '100000'
ので、こう
# sysctl -w kern.ipc.somaxconn=100000
kern.ipc.somaxconn: 128 -> 100000
ブート時にこの値になるよう設定するには、「/etc/sysctl.con...
kern.ipc.somaxconn=100000
*AM3 ごろのエラーの件 [#d7c06fa5]
/etc/sysctrl.conf
# https://pleiades.ucsc.edu/hyades/FreeBSD_Network_Tuning
kern.maxfiles=6289573
kern.maxfilesperproc=6289573
#kern.maxvnodes=3339551
Sep 25 02:55:00 sun1 /usr/sbin/cron[75782]: (munin) CMD ...
Sep 25 03:00:00 sun1 /usr/sbin/cron[76073]: (root) CMD (...
Sep 25 03:00:00 sun1 /usr/sbin/cron[76074]: (root) CMD (...
Sep 25 03:00:00 sun1 /usr/sbin/cron[76075]: (operator) C...
Sep 25 03:00:00 sun1 /usr/sbin/cron[76076]: (munin) CMD ...
Sep 25 03:01:00 sun1 /usr/sbin/cron[76365]: (root) CMD (...
Sep 25 03:01:00 sun1 /usr/sbin/cron[76366]: (root) CMD (...
Sep 25 04:39:58 sun1 kernel: sonewconn: pcb 0xfffff80079...
Sep 25 04:41:03 sun1 kernel: sonewconn: pcb 0xfffff80079...
Sep 25 04:42:07 sun1 kernel: sonewconn: pcb 0xfffff80079...
Sep 25 04:43:11 sun1 kernel: sonewconn: pcb 0xfffff80079...
Sep 25 04:44:15 sun1 kernel: sonewconn: pcb 0xfffff80079...
https://blog.tyk.nu/blog/fun-with-freebsd-listen-queue-ov...
https://github.com/tmux/tmux/issues/352
https://wiki.archlinux.jp/index.php/Nextcloud#CSync_faile...
*Getting Start! [#vdb2cf1d]
+ウエッブブラウザで「指定されたnextcloudサーバ」へアクセ...
+指定されたID・PWでログインする。
+ログインすると、アプリのダウンロードが提案されるので、端...
+インストールしたアプリを起動し、「新規アカウント」指示に...
+自動同期したいファイルを含むフォルダを設定しておくとサー...
----
Total access &counter(total);:本日 &counter(today);:昨...
#counter([total|today|yesterday]);
ページ名: