Hi all … another question this week!
I am trying to set up a “compatible” s3 storage location for dataverse, pointing to an s3 bucket on a wasabi account.
Wasabi is supposedly 100% aws s3 compatible …
I have created the bucket, create the .aws config files with my wasabi keys and region, etc, set the following jvm options:
./asadmin create-jvm-options "-Ddataverse.files.s3.type=s3"
./asadmin create-jvm-options "-Ddataverse.files.s3.label=s3"
./asadmin create-jvm-options "-Ddataverse.files.s3.label=s3"
./asadmin create-jvm-options "-Ddataverse.files.s3.bucket-name=<mybucketname>"
Restarted the glassfish server …
But, can’t upload a file … get an error “Failed to add files to the dataset .. “
I know that the instructions say that any aws commands should also include the wasabi region endpoint …
I am able to list buckets, list contents of my bucket, etc. using that format (ie: aws s3 ls --endpoint-url=https://s3.us-west-1.wasabisys.com)
Any ideas what other configuration is needed to make dv see the bucket?
Night Owl
You’ll need to set
dataverse.files.s3.custom-endpoint-url= https://s3.us-west-1.wasabisys.com
and possibly
dataverse.files.s3.custom-endpoint-region=
dataverse.files.s3.path-style-access=true
dataverse.files.s3.payload-signing=true
dataverse.files.s3.chunked-encoding=true
where I’ve used ‘s3’ as the <id> of the store you’re configuring as in your examples below.
(FYI: The guides should have a table of all the possible s3 options, but I don’t see it in the latest, so here’s a direct link to the latest pre-release version in github: https://github.com/IQSS/dataverse/blob/develop/doc/sphinx-guides/source/installation/config.rst#s3-storage-options )
-- 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/BYAPR06MB486999EA06C9F46B4A71211E87660%40BYAPR06MB4869.namprd06.prod.outlook.com.
Thank you! This is so helpful!
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/BL0PR07MB3921F66AE293E21A8DB566ECBF660%40BL0PR07MB3921.namprd07.prod.outlook.com.
I got the primary storage working using Wasabi using the JVM options mentioned here (thank you!) … but now trying to configure AWS S3 as a secondary storage. On the DV site, I can choose it in the General settings for a particular dataverse, but when I try to upload a file to a dataset in that dataverse when it is selected, I get an error “Failed to add files to dataset”. In the logs, there is an error message that looks as though the prefix s3aws:// (the id of the aws storage location) is being added to the file name, so I must have an option wrong somewhere. Here are my jvm options related to storage:
Wasabi storage:
Ddataverse.files.storage-driver-id=s3
Ddataverse.files.s3.type=s3
Ddataverse.files.s3.label=s3
Ddataverse.files.s3.bucket-name=bucket1
Ddataverse.files.s3.custom-endpoint-url=s3.us-west-1.wasabisys.com
Ddataverse.files.s3.custom-endpoint-region=us-west-1
Ddataverse.files.s3.path-style-access=true
Ddataverse.files.s3.payload-signing=true
Ddataverse.files.s3.chunked-encoding=true
AWS storage:
Ddataverse.files.s3aws.type=s3
Ddataverse.files.s3aws.profile=aws
Ddataverse.files.s3aws.label=s3aws
Ddataverse.files.s3aws.bucket-name=bucket2
Night Owl
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/BYAPR06MB48690FCCEC5907C277B1D2A887660%40BYAPR06MB4869.namprd06.prod.outlook.com.
Oops sorry, accidentally hit “send” before finishing this … any ideas what I have wrong in my jvm options (or otherwise), to get a secondary storage location configured correctly?
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/BYAPR06MB4869050EFAB84F5A9A19AC6B877E0%40BYAPR06MB4869.namprd06.prod.outlook.com.
Nothing obviously wrong that I see. One possibility is a profile issue, e.g. that the profile [aws] isn’t in your credentials file, is incorrect, or the ~/.aws/credentials file doesn’t exist for the unix user running glassfish, etc.
If that doesn’t suggest a fix, it would be helpful to see more of the log messages.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/BYAPR06MB48690D0E491FFBE8238DA794877E0%40BYAPR06MB4869.namprd06.prod.outlook.com.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/BYAPR06MB486999EA06C9F46B4A71211E87660%40BYAPR06MB4869.namprd06.prod.outlook.com.
--
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-community+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/BL0PR07MB3921F66AE293E21A8DB566ECBF660%40BL0PR07MB3921.namprd07.prod.outlook.com.
--
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-community+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/BYAPR06MB48690FCCEC5907C277B1D2A887660%40BYAPR06MB4869.namprd06.prod.outlook.com.
--
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-community+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/BYAPR06MB4869050EFAB84F5A9A19AC6B877E0%40BYAPR06MB4869.namprd06.prod.outlook.com.
--
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-community+unsub...@googlegroups.com.
Daniel,
One quick sanity check – is glassfish is really running as the same user you’re running the awscli as (glassfish unix user) and with the glassfish profile?
Another thing to check would be the S3 settings. I don’t know what Ceph requires w.r.t. payload signing and chunked encoding, and there are also settings for path style access and a custom region (see the table in https://github.com/IQSS/dataverse/blob/develop/doc/sphinx-guides/source/installation/config.rst#amazon-s3-storage-or-compatible. (If you find that setting changes are needed for Ceph, that would be good to add to the guides with a pull request.)
Beyond that, I’m not sure what to suggest – perhaps upping the log level for the aws library (setting the level for its classes to fine as in http://guides.dataverse.org/en/latest/developers/debugging.html ). The ERROR: S3AccessIO message is just repeating the message from the exception the AWS library throws so within that lib is the only place to get more info about the problem.
Hope that helps!
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/BYAPR06MB486999EA06C9F46B4A71211E87660%40BYAPR06MB4869.namprd06.prod.outlook.com.
--
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/BL0PR07MB3921F66AE293E21A8DB566ECBF660%40BL0PR07MB3921.namprd07.prod.outlook.com.
--
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/BYAPR06MB48690FCCEC5907C277B1D2A887660%40BYAPR06MB4869.namprd06.prod.outlook.com.
--
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/BYAPR06MB4869050EFAB84F5A9A19AC6B877E0%40BYAPR06MB4869.namprd06.prod.outlook.com.
--
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/BYAPR06MB48690D0E491FFBE8238DA794877E0%40BYAPR06MB4869.namprd06.prod.outlook.com.
--
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/ac76a975-3a30-4f3f-911f-d17b72249e7ao%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/BYAPR06MB486999EA06C9F46B4A71211E87660%40BYAPR06MB4869.namprd06.prod.outlook.com.
--
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-community+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/BL0PR07MB3921F66AE293E21A8DB566ECBF660%40BL0PR07MB3921.namprd07.prod.outlook.com.
--
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-community+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/BYAPR06MB48690FCCEC5907C277B1D2A887660%40BYAPR06MB4869.namprd06.prod.outlook.com.
--
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-community+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/BYAPR06MB4869050EFAB84F5A9A19AC6B877E0%40BYAPR06MB4869.namprd06.prod.outlook.com.
--
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-community+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/BYAPR06MB48690D0E491FFBE8238DA794877E0%40BYAPR06MB4869.namprd06.prod.outlook.com.
--
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-community+unsub...@googlegroups.com.