Skip to content
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

bucketlist() fails #182

Closed
dtenenba opened this issue Dec 6, 2017 · 5 comments
Closed

bucketlist() fails #182

dtenenba opened this issue Dec 6, 2017 · 5 comments

Comments

@dtenenba
Copy link

dtenenba commented Dec 6, 2017

bucketlist() fails but aws s3 ls on the command line works.

> bucketlist()
Error in do.call("rbind.data.frame", r[["Buckets"]]) :
  second argument must be a list
> traceback()
3: stop("second argument must be a list")
2: do.call("rbind.data.frame", r[["Buckets"]])
1: bucketlist()
> sessionInfo()
R version 3.4.2 (2017-09-28)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 14.04.3 LTS

Matrix products: default
BLAS/LAPACK: /app/easybuild/software/OpenBLAS/0.2.18-GCC-5.4.0-2.26-LAPACK-3.6.1/lib/libopenblas_prescottp-r0.2.18.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] aws.s3_0.3.8

loaded via a namespace (and not attached):
 [1] httr_1.3.1            compiler_3.4.2        aws.ec2metadata_0.1.2
 [4] R6_2.2.2              tools_3.4.2           base64enc_0.1-3
 [7] curl_2.8.1            Rcpp_0.12.13          aws.signature_0.3.5
[10] xml2_1.1.1            jsonlite_1.5          digest_0.6.12
>
@leeper
Copy link
Member

leeper commented Dec 6, 2017

How are you setting up your access credentials? Given your other issue (#183), it looks like they're not setup correctly. Perhaps try running aws.signature::locate_credentials() to see if they're showing up.

@dtenenba
Copy link
Author

dtenenba commented Dec 6, 2017

The credentials are exactly as created by aws configure:

~/.aws/config:

[default]
region = us-west-2

~/.aws/credentials:

[default]
aws_access_key_id = XXXXX
aws_secret_access_key = YYY

Maybe there's a problem with aws.signature::locate_credentials()?

> aws.signature::locate_credentials()
$key
NULL

$secret
NULL

$session_token
NULL

$region
[1] "us-east-1"

@dtenenba
Copy link
Author

dtenenba commented Dec 6, 2017

Oh, you have to run aws.signature::use_credentials() first.

This seems counterintuitive if you are used to using the aws command-line client.

Maybe aws.s3 should just read the default profile without being asked to?

@leeper
Copy link
Member

leeper commented Dec 7, 2017

That's probably a good idea.

@leeper
Copy link
Member

leeper commented Mar 19, 2018

It will now do this by default. cloudyr/aws.signature@7c44c5e

@leeper leeper closed this as completed Mar 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants