Closed ripls56 closed 1 month ago
Hello @ripls56, it turns out we struggled with this. MINIO_DOMAIN
was not set, see this PR: https://github.com/umccr/htsget-rs/pull/232/files
TL;DR it turns out that MinIO supports S3's path-style by default (which AWS will deprecate) whereas the S3 sdk goes for virtual-hosted-style instead by default and that's where you see those DNS errors.
So you might want to force path_style like so. Also note that your particular local DNS resolver (OS level) and docker listen/host configuration (i.e: listening to 0.0.0.0
or not?) might also play a role here.
Hope that helps!
Hi @brainstorm, thanks for your help. Everything is working now, but am I right in understanding that I can't create buckets at runtime because there will be no associated names for them in the docker? (if I don't use path_style)
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
Hi @brainstorm, thanks for your help. Everything is working now, but am I right in understanding that I can't create buckets at runtime because there will be no associated names for them in the docker? (if I don't use path_style)
I haven't tested that particular bit since our buckets are pre-created... but I'd guess you can create them at runtime, you just have to adjust the style/how to reach them? Fire up a wireshark/tshark packet inspector and you'll probably see DNS requests failing and then you can fix it up from there.
Describe the bug
Good afternoon, when trying to connect by url address, if I use docker I get an error related to dns.
Expected Behavior
Url address is recognised and I can access the storage.
Current Behavior
Url address is not recognised
Error:
Reproduction Steps
compose.yaml
main.rs
Cargo.toml
Possible Solution
No response
Additional Information/Context
I also tried localstack to exclude any problems with minio.
However, it works if you access the storage outside the docker network (i.e. only the storage is deployed)
Also I am confused that the access to the bucket goes through the sub domain (attached in the logs), I am a beginner so I don't know how it should be π
Version
Environment details (OS name and version, etc.)
macOS 14.4.1 23E224 darwin-arm64
Logs