-
Notifications
You must be signed in to change notification settings - Fork 660
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
Unable to read from Oracle S3 buckets #5720
Comments
Possibly related to #4732 I suspect there is a regression from the AWS config refactor that happened between 23.04 and 23.10 |
Thanks for this @bentsherman. I think @mcolpus has been trying some workorunds suggested on Slack. |
I think it is specifically the move from nf-amazon 1.16.2 to 2.0.0 (first introduced with 23.05.0-edge), that's where it stops working. |
The aws config refactor was merged in 23.05: a74e42d Likely there is something wrong in that commit around custom endpoints. I don't think we tested S3-compatible storage for that PR so it wouldn't surprise me |
I've done some digging into In the function I added some very basic logging to AmazonS3Client:
which is then used in the function
You can then see that the first S3 request is fine, but subsequent ones get adjusted to default amazon:
Changing to I gather that withForceGlobalBucketAccessEnabled should mean that if a user specifies the wrong region, then it will automatically detect the correct region and cache the change. I think the http header response |
In
I'm not sure exactly what the reasoning is, but I think we only want AWS to automatically change region is if region is not provided. Something like:
|
Bug report
Expected behavior and actual behavior
With nextflow 23.04.3 I can make a channel from an S3 OCI bucket just fine. But using 23.10.4 or later (I've tested with 24.10.4 as well) it gives an error, seemingly because it tries to use an Amazon endpoint.
Steps to reproduce the problem
main.nf :
nextflow.config
Program output
When it works:
when it fails:
which makes it look like it's ignoring the endpoint provided.
Environment
openjdk 17.0.10 2024-01-16
OpenJDK Runtime Environment Temurin-17.0.10+7 (build 17.0.10+7)
OpenJDK 64-Bit Server VM Temurin-17.0.10+7 (build 17.0.10+7, mixed mode, sharing)
$SHELL --version
): GNU bash, version 5.1.16(1)-releasThe text was updated successfully, but these errors were encountered: