今日のOwnCloud
OwnCloudにマウントしているReadyNASの領域は日本からは直接CIFSでアクセスしているためうまくOwnCloudが更新を検知してくれないのでスキャンさせなきゃいけない。よーし、パパocc files:scanしちゃうぞー!
www@owncloud:/usr/local/www/owncloud % php occ files:scan -vvv yaizawa Scanning file /yaizawa/ (中略) Scanning file /yaizawa/files/ReadyNAS/ [Sabre\HTTP\ClientException] SSL certificate problem: self signed certificate Exception trace: () at /usr/local/www/owncloud/3rdparty/sabre/http/lib/Client.php:342 Sabre\HTTP\Client->doRequest() at /usr/local/www/owncloud/3rdparty/sabre/http/lib/Client.php:101 Sabre\HTTP\Client->send() at /usr/local/www/owncloud/3rdparty/sabre/dav/lib/DAV/Client.php:233 Sabre\DAV\Client->propFind() at /usr/local/www/owncloud/lib/private/files/storage/dav.php:263 OC\Files\Storage\DAV->propfind() at /usr/local/www/owncloud/lib/private/files/storage/dav.php:661 OC\Files\Storage\DAV->getPermissions() at /usr/local/www/owncloud/lib/private/files/storage/common.php:607 OC\Files\Storage\Common->getMetaData() at /usr/local/www/owncloud/lib/private/files/storage/wrapper/wrapper.php:562 OC\Files\Storage\Wrapper\Wrapper->getMetaData() at /usr/local/www/owncloud/lib/private/files/storage/wrapper/availability.php:456 OC\Files\Storage\Wrapper\Availability->getMetaData() at /usr/local/www/owncloud/lib/private/files/storage/wrapper/encryption.php:147 OC\Files\Storage\Wrapper\Encryption->getMetaData() at /usr/local/www/owncloud/lib/private/files/storage/wrapper/wrapper.php:562 OC\Files\Storage\Wrapper\Wrapper->getMetaData() at /usr/local/www/owncloud/lib/private/files/cache/scanner.php:114 OC\Files\Cache\Scanner->getData() at /usr/local/www/owncloud/lib/private/files/cache/scanner.php:142 OC\Files\Cache\Scanner->scanFile() at /usr/local/www/owncloud/lib/private/files/cache/scanner.php:266 OC\Files\Cache\Scanner->scan() at /usr/local/www/owncloud/lib/private/files/utils/scanner.php:164 OC\Files\Utils\Scanner->scan() at /usr/local/www/owncloud/apps/files/command/scan.php:87 OCA\Files\Command\Scan->scanFiles() at /usr/local/www/owncloud/apps/files/command/scan.php:119 OCA\Files\Command\Scan->execute() at /usr/local/www/owncloud/3rdparty/symfony/console/Symfony/Component/Console/Command/Command.php:253 Symfony\Component\Console\Command\Command->run() at /usr/local/www/owncloud/3rdparty/symfony/console/Symfony/Component/Console/Application.php:874 Symfony\Component\Console\Application->doRunCommand() at /usr/local/www/owncloud/3rdparty/symfony/console/Symfony/Component/Console/Application.php:195 Symfony\Component\Console\Application->doRun() at /usr/local/www/owncloud/3rdparty/symfony/console/Symfony/Component/Console/Application.php:126 Symfony\Component\Console\Application->run() at /usr/local/www/owncloud/lib/private/console/application.php:100 OC\Console\Application->run() at /usr/local/www/owncloud/console.php:69 require_once() at /usr/local/www/owncloud/occ:11 files:scan [-p|--path="..."] [-q|--quiet] [--all] [user_id1] ... [user_idN]
また自己署名証明書か! ということで最もシンプルなソリューションとして、ReadyNASにHTTP over SSLでつつきに行くのをやめました :)。同一セグメントかつクローズなネットワークだからあんま意味ないし、暗号化/復号化のオーバーヘッドが馬鹿馬鹿しい。