Closed tevintchuinkam closed 1 year ago
Hi @tevintchuinkam, I think what you're looking for is:
task = Task.init(
project_name="my_project",
task_name="linear-regression-test",
tags="testing",
output_uri="s3://minio.api.example.io:9000/clearml-artifacts"
)
Assuming the minio port is 9000
Hi @tevintchuinkam, I think what you're looking for is:
task = Task.init( project_name="my_project", task_name="linear-regression-test", tags="testing", output_uri="s3://minio.api.example.io:9000/clearml-artifacts" )
Assuming the minio port is 9000
This does not fix it either sadly, I get the same error:
ValueError: Could not get access credentials for 's3://minio.api.example.io:9000/clearml-artifacts' , check configuration file ~/clearml.conf
And how did you set clearml.conf now?
I tried both setups like above. I get the same error on both:
ValueError: Could not get access credentials for 's3://minio.api.example.io:9000/clearml-artifacts' , check configuration file ~/clearml.conf
Followed by
clearml.storage - ERROR - Failed creating storage object s3://minio.api.example.io:9000/clearml-artifacts Reason: Missing key and secret for S3 storage access (s3://minio.api.example.io:9000/clearml-artifacts)
The second configuration you showed says host: "minio.api.example:9000"
but the host in the error is minio.api.example.io
?
I would expect it to be host: "minio.api.example.io:9000"
I would expect it to be
host: "minio.api.example.io:9000"
Sorry what was just a typo
Can you just try with:
sdk {
aws {
s3 {
key: "<minio-key>"
secret: "<minio-secret>"
}
}
}
Hi @jkhenning,
I just tried that (and still with output_uri="s3://minio.api.example.io:9000/clearml-artifacts"
in python script) but I get the same "Could not get access credentials for 's3://minio.api.example.io:9000/clearml-artifacts'
"
Just a quick sidenote: setting output_uri=True
does successfully upload artifacts to the default fileserver. But this is not what I want.
It looks like the configuration file isn't loaded for some reason...
It ended up working by removing the port number.
Removing from where?
Also 🔥
apparently sdk
has to be a root level config. Can we update the docs here
Sure, thanks for the pointer!
I am trying to setup and use minIO s3 storage like so.
and then upload and artifact like so:
I followed the steps in the documentation for setting up S3 Storage with minIO and added my credentials in my
~/clearml.conf
like so:I've many different uris for "output_uri" similarly like in this issue, but the connection cannot be established.
This is the behavior for the various values for "output_uri" that I tried:
I also tried setting my credentials like so, which did not help:
Any suggestions?
Environment
Related Discussion
Uploading dataset to MinIO #391