Adding S3-compatible External Storage Failed with CURL 60

Steps to reproduce

  1. import self signed certificate
  2. adding an External Storage, its type is Amazon S3 and SSL enabled
  3. red indicator appeared

Expected behaviour

Green indicator should appear. External Storage should be available.

Actual behaviour

Red indicator should appear. External Storage was not available.

Server configuration

Operating system:
RedHat 7.4
Web server:
Apache 2.4.6
Database:
sqlite3
PHP version:
PHP 7.2
ownCloud version: (see ownCloud admin page)
10.1.1
Updated from an older ownCloud or fresh install:
Fresh install
Where did you install ownCloud from:
ownCloud official website
Signing status (ownCloud 9.0 and above):

The content of config/config.php:

<?php $CONFIG = array ( 'instanceid' => 'ocg80lby52ja', 'passwordsalt' => 'KV9+yqi8Q4XvHvuLBE2En7lifSxvAK', 'secret' => 'GEOjbfNFAys/9EecLSz4rXnH0gg/a1+w0K2Si3XrS4SaCL/E', 'trusted_domains' => array ( 0 => 'xxx.xxx.xxx.xxx', 1 => 'xxx.xxx.xxx.xxx', ), 'datadirectory' => '/var/www/html/owncloud/data', 'overwrite.cli.url' => 'http://xxx.xxx.xxx.xxx/owncloud', 'dbtype' => 'sqlite3', 'version' => '10.1.1.1', 'logtimezone' => 'UTC', 'installed' => true, 'loglevel' => 0, 'enable_certificate_management' => true, ); **List of activated apps:** ``` Enabled: - comments: 0.3.0 - configreport: 0.1.2 - dav: 0.4.0 - federatedfilesharing: 0.3.1 - federation: 0.1.0 - files: 1.5.2 - files_external: 0.7.1 - files_sharing: 0.11.0 - files_trashbin: 0.9.1 - files_versions: 1.3.0 - files_videoplayer: 0.9.9 - firstrunwizard: 1.1.1 - market: 0.3.0 - notifications: 0.4.1 - provisioning_api: 0.5.0 - systemtags: 0.3.0 - updatenotification: 0.2.1 Disabled: - encryption - external - user_external ``` **Are you using external storage, if yes which one:** local/smb/sftp/... Amazon S3 **Are you using encryption:** yes/no no **Browser:** Chrome **Operating system:** Windows 2016 ### Logs #### Web server error log ``` the External Storage turns out to be red indicator. ``` #### ownCloud log (data/owncloud.log) ``` 3958df1f6849fa65fd703d7579777ce79c3b5229e8f8e942a1c7c6a8058 with token id 16 found, validating"} {"reqId":"XMFeXOT51Y26DkGMbVzZHAAAAAo","level":3,"time":"2019-04-25T07:14:36+00:00","remoteAddr":"100.115.50.16","user":"admin","app":"files_external","method":"PUT","url":"\/owncloud\/index.php\/apps\/files_external\/globalstorages\/16","message":"Exception: {\"Exception\":\"Aws\\\\Common\\\\Exception\\\\TransferException\",\"Message\":\"[curl] 60: [url] https:\\\/\\\/owncloud-hepeng.obs-70.huawei.com\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/aws-sdk-php\\\/Guzzle\\\/Service\\\/Client.php(136): Aws\\\\Common\\\\Client\\\\AbstractClient->send(Object(Guzzle\\\\Http\\\\Message\\\\Request))\\n#1 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/aws-sdk-php\\\/Guzzle\\\/Service\\\/Command\\\/AbstractCommand.php(153): Guzzle\\\\Service\\\\Client->execute(Object(Aws\\\\S3\\\\Command\\\\S3Command))\\n#2 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/aws-sdk-php\\\/Aws\\\/S3\\\/S3Client.php(665): Guzzle\\\\Service\\\\Command\\\\AbstractCommand->exe ``` #### Browser log ``` statusMessage: "Aws\Common\Exception\TransferException: [curl] 60: [url] https://owncloud-hepeng.obs-70.huawei.com" ```

Is anyone here can help me? I have imported the self-signed ca but still failed. Now I’m using a S3-compatible storage with self-signed ca. i tested the ca with curl and it works well.

This post was flagged by the community and is temporarily hidden.

Hey,

i don’t think that this is the same issue and it looks to me more like a DNS issue on the server which is running ownCloud.