Repository navigation
Nextcloud 12.0.4 and 13 doesn't support S3 Backend using V2 authentication #7569
Description
Activity
Please provide the Nextcloud log, because it contains the information we need.
cc @icewind1991 - ref #4410
It is a problem with the AWS SDK, just can not send v2 auth request to backed S3 storage. We tried to modify the code, downgrading the SDK, but it doesn't work... I just created a 12.0.3, auth is normal now... but I am struggling to get all the data back to users...
It is a problem with the AWS SDK, just can not send v2 auth request to backed S3 storage. We tried to modify the code, downgrading the SDK, but it doesn't work... I just created a 12.0.3, auth is normal now... but I am struggling to get all the data back to users...
Yes - we got complains, that the old SDK does not support newer AWS regions. So we upgraded to allow all AWS regions.
12.0.3 has the old SDK
12.0.4 has the new SDK@MorrisJobke but it affected homegrown ceph users... Is there way to downgrade data in database from 13 to 12.0.3?
@MorrisJobke but it affected homegrown ceph users... Is there way to downgrade data in database from 13 to 12.0.3?
Not really, beside using a backup.
thanks...
@EdwardWu7 can you see if #7570 solves the problem (you can enable legacy auth in the external storage settings).
Also what s3 implementation are you using?
@icewind1991 We are using Ceph as backend and the version is not updated so only support v2, where can I add the setting? just 'version' => 'v2'?
'objectstore' =>
array (
'class' => 'OC\Files\ObjectStore\S3',
'arguments' =>
array (
'bucket' => 'prd-share-nextcloud',
'autocreate' => false,
'key' => '',
'secret' => '',
'hostname' => '10.0.126.211',
'port' => 80,
'use_ssl' => false,
'use_path_style' => true,
),
),@icewind1991 We are using Ceph as backend and the version is not updated so only support v2, where can I add the setting? just 'version' => 'v2'?
Exactly - add it t o the
argumentsarray. Right beside theuse_path_style.ok, let me try it, I will post the result as soon as I get it.
BTW, I disabled the version check in 12.0.3 and our production environment recovered, I will set up a same test environment next time for new version and upgrade...Unfortunately it doesn't work...
Using option 'legacy_auth' => true, in config.php
But it shows in blue screen with below message
Your data directory is invalid
Ensure there is a file called ".ocdata" in the root of the data directory.
From the backend I found NC is parsing correct format of auth request to Object Storage..Attached is the nextcloud.log, I used a fresh NC13 and just updated code from #7570
nextcloud.log
If using option 'version' => 'v2' in config.php, the internal server error page come up, and I think this parameter is not correct.And the other 12.0.3 NC using same backend storage and database is working normally
I just added an empty .ocdata to data directory and it works now... thanks guys!
Steps to reproduce
Expected behaviour
Should work as normal
Actual behaviour
Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.
Server configuration
Operating system:
Web server:
Database:
PHP version:
Nextcloud version: (see Nextcloud admin page)
Updated from an older Nextcloud/ownCloud or fresh install:
Where did you install Nextcloud from:
Signing status:
Signing status
List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using external storage, if yes which one: local/smb/sftp/...
Are you using encryption: yes/no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
LDAP configuration (delete this part if not used)
LDAP config
Client configuration
Browser:
Operating system:
Logs
Web server error log
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log
Browser log
Browser log