Cannot connect to S3-Compatible object storage

52 views
Skip to first unread message

Maeva Kos

unread,
Jun 18, 2021, 5:06:53 AM6/18/21
to Dataverse Users Community
Hi all !

I'm unable to connect to my swift object storage (S3 compatible). I'm having this error :

 om.amazonaws.AmazonClientException: Cannot instantiate a S3 client; check your AWS credentials and region


I'm confused because I can call the s3 swift api with awscli, so my config et credentials files are good.

I deployed dataverse 5.2.2 with docker : https://github.com/IQSS/dataverse-docker

This is my configuration: Capture d’écran 2021-06-18 à 10.40.54.png

config file:

[default]
region = gra

credentials file:

[default]
aws_access_key_id = *******************************
aws_secret_access_key = *****************************

I put these configuration files in the home directory of the user "payara". I think this user runs the glassfish server:

payara       6  4.5 14.6 34048336 4797192 ?    Sl   13:41   5:35 /usr/lib/jvm/zulu-8-amd64/bin/java -cp /opt/payara/appserver/glass

Any suggestions?

Maeva

James Myers

unread,
Jun 18, 2021, 10:43:43 AM6/18/21
to dataverse...@googlegroups.com

I don’t see anything obvious. It’s possible that swift s3 requires some additional option (the chunked-encoding option that has to be false of surf stores – I don’t know what swift needs), but I’d suspect some issue with reading the credential files first.

 

A couple ~obvious tests would be to

·         Log in as the payara user and try the aws cli – that would make sure the files are in the right place and readable by that user.

·         Make sure the URL you use with the client (aws --endpoint-url <URL> s3 ...) is the same as in your jvm option

·         Use ps –ef | grep glassfish (or similar) to verify that payara is the user account running it.

 

FWIW: The AmazonClientException: text is straight from the AWS library so there could be info on the web about this error being seen in other applications trying to use swift.

 

Hope that’s helpful,

 

-- Jim

--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-commu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/80eaffa5-a4c5-4bc9-904f-70e3fea7ccean%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages