s4cmd icon indicating copy to clipboard operation
s4cmd copied to clipboard

"unable to locate credentials" despite path being provided ?

Open udf2457 opened this issue 1 year ago • 0 comments

So, according to s4cmd --help:

-p S3CFG, --config=S3CFG path to s3cfg config file

But it doesn't work.

e.g. in /home/myuser/s4.cfg I have:

[default]
access_key = <REMOVED FOR SECURITY>
access_token = <REMOVED FOR SECURITY>
use_https = True
host_base = <REMOVED FOR SECURITY>
host_bucket = <REMOVED FOR SECURITY>

But then this:

s4cmd --config=/home/myuser/s4.cfg put .bashrc s3://bucketbar/foo

Returns:

[Exception] Unable to locate credentials [Thread Failure] Unable to locate credentials

:shrug:

udf2457 avatar Apr 13 '24 10:04 udf2457