-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
aws s3 cp without recursive can produce a useless error message #2929
Comments
I can't reproduce this using awscli 1.11.178 and you seem to be quite a few versions behind. When I try to run a similar command I get:
Could you try upgrading your version of aws-cli and see if you're able to still reproduce this error? Thanks! |
Closing due to inactivity. Please open a new issue if you are able to give reproduction steps with the latest version of the CLI. |
I get that error message when trying to cp a directory to the root of the bucket with aws-cli/1.14.57 (Python/3.5.2 Linux/4.13.0-36-generic botocore/1.9.10). To reproduce:
If a non-root directory is given, I get the error:
Both error messages should indicate that directories are omitted and that '--recursive' should be used. I suggest:
|
getting this bug as well using aws-cli/1.14.9 Python/2.7.13 Linux/4.9.85-38.58.amzn1.x86_64 botocore/1.8.13 and just as the original poster suggested, use of --recursive fixes it and it works normally.
|
Please reopen. As a new AWS user, running into that error and googling the error message leads users to this ticket. |
I've just ran into this error in a brand new environment on CircleCI. $ aws --version
aws-cli/1.15.79 Python/3.7.0 Linux/4.4.0-130-generic botocore/1.10.78 The base image is docker:
- image: circleci/python:3.7
steps:
- checkout
- run:
name: Install awscli
command: sudo pip install awscli
- run:
name: Configure awscli
command: |
aws configure set aws_access_key_id $AWS_ACCESS_KEY
aws configure set aws_secret_access_key $AWS_SECRET_KEY
aws configure set region us-east-2
- run:
name: Deploy
command: aws s3 cp website/public s3://mybucket I ssh'd into this environment, the dir path was valid and the
Running the command again with |
I think @kyleknap wants a new issue to be opened if this is ever going to be fixed. |
I found this GitHub ticket while googling the error message I got. I agree that it's completely useless. You really need to Google the message to even get an idea of what's wrong. |
The default that comes on brew install awscli provides the not really descriptive error described above. |
I got the same error while trying to run an s3 cp with the source being a local directory which was empty. I was accidental pointing at the wrong dir but the error message was non descriptive. |
I got this error because i wasn't using --recursive option: download failed: s3://test/platfom/utterances/ to lib/conversation/utterances/ [Errno 20] Not a directory: '/opt/bot/lib/conversation/utterances/.F11a5Fae' -> '/opt/bot/lib/conversation/utterances/' |
Thank you for this, I didn't know --recursive was required to copy a folder, the error message is useless. |
aws s3 cp --recursive local_folder s3://mybucketname/path similarly, deleting all bucket content |
Buenas tardes, e revisado los comentarios pero en mi caso me dice que no se pueden encontrar las credenciales, este es el comando que estoy usando: Este es el error que me marca: ¿alguien que me auxile por favor? |
aws-cli/1.11.13 Python/3.5.2 Linux/4.4.0-1013-aws botocore/1.4.70
See https://twitter.com/lampholder/status/835777466685927424 (which is now one of the top results when googling the error message).
Invalid length for parameter Key, value: 0, valid range: 1-inf
when you leave off --recursive is not a useful error message when it should eitheror
The text was updated successfully, but these errors were encountered: