Problem: 505 http errors on s3 primary storage

Sorry to hear you’re facing problems :slight_frown:

If you’re urgently looking for support to keep your business running, consider checking out our paid support options.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the following as you can (you can cut and paste this into your topic):


Nextcloud version (eg, 10.0.2): 11.0.3
Operating system and version (eg, Ubuntu 16.04): centos 7 64 nit
Apache or nginx version (eg, Apache 2.4.25): apache 2.4.6
PHP version (eg, 5.6): php 7.1
Is this the first time you’ve seen this error?: no

Can you reliably replicate it? (If so, please outline steps):

The issue you are facing: i configured a hgst active archive as S3 compliant primary storage. I can upload files into nextcloud, they are regularly transferred to the bucket, I can create directory too without problems. When I try to retrieve the files these are not found and there are http 505 (version not supported) errors in nextcloud logs.
Instead using s3cmd and signature V2 all functions regularly, if I don’t use V2 signature I have http 500 errors again…
Is there a way to force signature V2 in nextcloud S3 configuration?
Thanks in advance for your help!
Best regards!

The output of your Nextcloud log in Admin > Logging:
fopen(): failed to open stream: HTTP request failed! HTTP/1.1 505 HTTP Version Not Supported at /var/www/nextcloud/lib/private/Files/ObjectStore/S3.php#77
{“reqId”:“WYxaA@0YGuOd1inrrnxNLQAAAAU”,“remoteAddr”:“10.0.2.2”,“app”:“PHP”,“message”:“fopen(): failed to open stream: HTTP request failed! HTTP/1.1 505 HTTP Version Not Supported\r\n at /var/www/nextcloud/lib/private/Files/ObjectStore/S3.php#77”,“level”:0,“time”:“2017-08-10T13:05:07+00:00”,“method”:“GET”,“url”:"/nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications",“user”:“mdaino”,“version”:“11.0.3.2”}

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):
‘objectstore’ =>
array (
‘class’ => ‘OC\Files\ObjectStore\S3’,
‘arguments’ =>
array (
‘bucket’ => ‘mdaino2’,
‘autocreate’ => true,
‘key’ => ‘xxxxxx’,
‘secret’ => ‘yyyyyyy’,
‘hostname’ => ‘172.17.30.30’,
‘port’ => 9090,
‘use_ssl’ => false,
‘region’ => ‘optional’,
‘signature’ => ‘v2’,
‘use_path_style’ => true,
),
),

The output of your Apache/nginx/system log in /var/log/____:


Remember, this information may be requested if it isn’t supplied; for fastest response please provide as much as you can :heart: Feel free to use a pastebin service, otherwise log files can be indented with 4 spaces on each line to present them in a friendlier way on the forum.