Errno 2 No such file or directory #2690
Comments
Can you run the command that gets the issue with the |
Hello thanks for the response, this is the output ,i kept seeing something about an SSLError : 2017-07-01 09:08:51,145 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/1.11.83 Python/2.7.12 Linux/4.4.30-32.54.amzn1.x86_64 botocore/1.5.46 host:ec2.eu-west-1.amazonaws.com host;x-amz-date host:ec2.eu-west-1.amazonaws.com host;x-amz-date host:ec2.eu-west-1.amazonaws.com host;x-amz-date host:ec2.eu-west-1.amazonaws.com host;x-amz-date host:ec2.eu-west-1.amazonaws.com host;x-amz-date [Errno 2] No such file or directory |
somebody heeeeeeeeeeelp please , im losing my mind :( |
I am experiencing a similar problem on macOS. My awscli tools appear to be operating properly, but I get a very similar stack trace, resulting in SSLError [Errno 2], when running custom code that uses boto3 to communicate with DynamoDB. Still trying to pin down the error. |
I'm getting the same error, seems like a certificate error in ec2.REGION.amazonaws.com. Try this in your console:
Not sure yet how this helps us, but it seems to be a certificate issue with HTTPS on ec2.us-west-2.amazonaws.com at least. Issue seems clientside, I think. |
Hey, this worked for me:
Something is mucky not with the awscli, but with the instance itself, and its trusted certificates. If you check out /etc/pki/tls/certs:
You'll see it's missing some stuff. The earlier "force-enable" command will remake those files. |
Ok great, i will try that thanks. i'll update you in a bit. |
whooooooop you are a superman |
Command for Windows? |
Also have same issue on Windows.
Fix found here ->#2855
|
YOU ARE THE BESTTTTTTTT maartenschalekamp, ITS WORK FOR MEEEEEE. I was very desperate because it did not work for me. C:\WINDOWS\system32>aws glacier create-vault --account-id 3723912531 --vault-name UtilizandoCLI [Errno 2] No such file or directory C:\WINDOWS\system32>copy "c:\Program Files\Amazon\AWSCLI\botocore\vendored\requests\cacert.pem" "c:\Program Files\Amazon\AWSCLI\certifi" C:\WINDOWS\system32>aws glacier create-vault --account-id 3391192531 --vault-name UtilizandoCLI C:\WINDOWS\system32> thank you SO MUCH |
I was getting same issue and this workaround really helped me a lot. Thank you so much, |
Tried the mac fix but got: sudo: update-ca-trust: command not found |
I got the same: sudo: update-ca-trust: command not found. I have no idea whats wrong! |
1 similar comment
I got the same: sudo: update-ca-trust: command not found. I have no idea whats wrong! |
in my case (REHL) conda was missing from path. i fixed it with |
I was getting
@maludwig suggestion helped me: Using the --verbose option
I got from the output:
And then I could set an environment variable in my windows console:
And after that awscli stopped complaining. I'm not sure why it wasn't working out-of-the-box like it should... my two cents... |
Similar to my issue - I was trying to use the aws cli from inside a docker container - and it couldn't find the certs. So I just: |
I was using aws-cli version2 and came with the same python error [error2] running codedeploy |
For Ubuntu users, the fix here seems to work: #5038 |
Hi, there seems to be a couple of different problems being talked about in here, and most of the people posting have found a work-around, plus it being so old makes tracking them reaaally difficult for me... so lazy as it may sound I'll be closing this, please open a new issue if you're still facing this problem. |
still, this issue exist in my repo, can anyone solve this problem |
Hi @pavan-nndn, this is unrelated to the AWS CLI. If you are looking for support with Amazon Linux, please head over to the EC2 page for help: |
I had the same issue on MAC and the problem was with AWScli doing this command aws sts get-caller-identity. the problem was related to deleting netskope folders and i had added REQUESTS_CA_BUNDLE='/Library/Application Support/Netskope/STAgent/download/nscacert.pem' on ~/.bash_profile. so i commented the line i pasted above at the ~/.bash_profile. restarted the terminal and it worked |
Hi everyone,
Im new here so please forgive me if i make obvious mistakes.
So i was trying to use the aws cli tools on my amazon linux machine to transfer a file to an s3 bucket but i kept getting the [Errno2] No such file or directory.
To troubleshoot, i attempted this command "aws ec2 describe-instances" and got the same error.
"aws help" works though.Please i have run out of ideas ,someone help me :(
The text was updated successfully, but these errors were encountered: