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
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 |
Similiar to EngZaz's experience after removing
|
… template (aws#2690) * Update nested stack build tests to make child templates are in different dir from root template * Add another nested integration tests that mimic build artifact directory structure * Make CodeUri and DockerContext relative to root template * Remove the original handle of this relative path problem * Update unit tests for providers * Make normalize_resource_path 2 line and add unit tests * Use normalize_resource_path() during resolving child stack location as well
I have an issue in the windows 10 system when I try to fire command: aws s3 ls I get this error. SSL validation failed for https://s3.ap-south-1.amazonaws.com/ [Errno 2] No such file or directory I also try this solution but did not succeed. copy "c:\Program Files\Amazon\AWSCLI\botocore\vendored\requests\cacert.pem" "c:\Program Files\Amazon\AWSCLI\certifi" Please help me if anyone has solutions I spend 2 days on this issue still not resolved. |
I am having the same issues on windows I tried the copy command as well but gave me a path error. C:\Windows\System32>aws s3 ls SSL validation failed for https://s3.eu-central-1.amazonaws.com/ [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" |
For netskope users -> https://docs.netskope.com/en/netskope-help/traffic-steering/netskope-client/addressing-ssl-error-while-accessing-aws-services-via-the-aws-cli-with-the-netskope-client-enabled/ |
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: