-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some issues with the AWS S3 assetstore #3379
Comments
Yes please, if the XML has been deprecated or removed, we should certainly update the docs. Regarding the signature error, I am wondering if the region is configured correctly on your assetstore? Is it set to |
Yes, it looks like it has been changed. I'll open the PR in a minute.
Yes. I wasn't sure how to fill that in, by the way. Maybe the docs could explain how to get the region code from the AWS console. |
Actually, should I wait until my issue is fixed, just to confirm that it's not related to the CORS config? |
I don't suspect it's related to the CORS config. I am going to try and dig in a little more on this and see if others have encountered this. |
I was just checking the S3 docs and it seems like XML is still supported. What issue were you seeing when trying with the XML? |
Hm, it does say that, but what happens if you do put the XML in and save it? |
I tried, it complained. |
More specifically, this error message is
|
Oh interesting, I guess their own docs are wrong (and it's far from the first time). Ok, let me dig into it further. |
Update I have now deployed the DSA on a virtual machine, instead of a multi-container application. That allows me to perform OAuth authentication (#3382) and I'm not getting the error I reported above (#3379 (comment)) but the thumbnails are not being shown, and when I click on an image, the browser tries to download it (instead of opening it). |
If you aren't using the docker file with DSA, then you probably aren't running "girder mount" on the same machine as Girder. Some image sources require actual files (not just Python file-like objects) to read the image, and "girder mount" provides a FUSE file system that maps any assetstore (include S3) to a file system so that libraries that require files work. |
If switching from containerization to a virtual machine fixed an issue, it sounds like some port that was necessary wasn't open. |
I've been using the |
Yes -- the minimal example doesn't mount fuse. Probably we should update the docs on the minimal example to be more explicit that it expects all the data to be local to it for it to work. |
Thanks, that was very helpful! Running with |
Hi and thanks for this great project that we're planning to use soon. I would like to have support for Azure at some point (#3375), but first I'm trying to make AWS S3 work. I have some questions, issues and comments.
CORS configuration
In the Assetstores docs, there is a suggested CORS configuration:
When I tried to add that XML to the CORS config on the AWS console, I was asked for a JSON instead. After some tweaks, comparing to some example provided in their docs and debugging messages from their API, I think the following is equivalent:
Should that be changed in the docs? I'm happy to submit a PR, if you like.
API error
I managed to mount the bucket, or at least I can see the files in the folder I imported it on. However, the files can't be downloaded. When I click on a TIFF slide, I'm redirected to an XML showing the following:
I created an access key for myself at https://console.aws.amazon.com/iam/home#/security_credentials, and I've doucble-checked that they are correct in the assetstore config. Do you know what could be wrong?
Please let me know if you need any further info.
The text was updated successfully, but these errors were encountered: