LoginSignup
0
0

More than 5 years have passed since last update.

ownCloudを10.0.4にしたらIDC Frontierのオブジェクトストレージが読めなくなった

Posted at

ハマったのでメモ.

事象

  • ownCloudで外部ストレージとしてIDC Frontierのオブジェクトストレージを指定していた.
  • ownCloudを10.0.3から10.0.4にアップデートしたら外部ストレージを使っていたディレクトリ以下にアクセスできなくなった

環境

item description
OS debian jessie
repository deb http://download.owncloud.org/download/repositories/stable/Debian_8.0/ /
version owncloud-files:amd64 (10.0.3-1.1, 10.0.4-1.1)

原因

この修正があたったこと.
S3 External Storage - Athentication mechanism v4 not supported? · Issue #14893 · owncloud/core

対策

インストール先を/var/www/owncloudとする.

/var/www/owncloud/apps/files_external/lib/Lib/Storage/AmazonS3.php
--- AmazonS3.php.orig
+++ AmazonS3.php
@@ -573,7 +573,7 @@
            'secret' => $this->params['secret'],
            'base_url' => $base_url,
            'region' => $this->params['region'],
-           'signature' => 'v4',
+           //'signature' => 'v4',
            S3Client::COMMAND_PARAMS => [
                'PathStyle' => $this->params['use_path_style'],
            ],
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0