aws-cloudformation / cloudformation-cli

The CloudFormation Provider Development Toolkit allows you to author your own resource providers and modules that can be used by CloudFormation.
Apache License 2.0
318 stars 161 forks source link

getting an error when running cfn command #928

Closed madhuakiti closed 1 year ago

madhuakiti commented 1 year ago

Hi,

I am getting an error when running cfn submit --set-default command. Please find the below error message for more information and let me know if you have any questions for me.

Screenshot 2022-10-26 at 3 37 05 PM
kddejong commented 1 year ago

In your project folder you will have a rpdk.log file. Can you locate the error message in that file and provide it to this issue. Thanks.

Make sure to scrub any private info.

madhuakiti commented 1 year ago

The final error message is:

docker.errors.DockerException" Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'Ni such file or directory'))

FYI: I am guessing this might be a docker deamon issue

mmaeng commented 1 year ago

It very well may be a docker issue. Are you able to run docker ps and such?

The bottom chunk of your rpdk.log file containing the error would also be helpful. Again please remove any private info.

We are also on AWS CloudFormation Discord!

madhuakiti commented 1 year ago

Before the docker related error or exception at the bottom of the log file, there was another error related to file not found inside the hooks folder

madhuakiti commented 1 year ago

rpdk.log

mmaeng commented 1 year ago

@madhuakiti It looks like python docker is having issues trying to connect to the docker daemon that (should be) running.

Are you able to do docker version and docker ps without any errors?

It appears you are running MacOS, is docker desktop running?

madhuakiti commented 1 year ago

Yes, those commands are working as expected since the start

FYI: right now I am getting an error related to SSL validation.

madhuakiti commented 1 year ago

But still the file not found error is there

madhuakiti commented 1 year ago

@mmaeng The SSL issue or error has been resolved now but I am getting a different error. Please find the log file attached for more information.

rpdk 2.log

mmaeng commented 1 year ago

That looks to be complaining about missing properties in your hooks JSON file.

mmaeng commented 1 year ago

Hopefully you were able to resolve your issue with the above. If not please join us on Discord AWS CloudFormation Discord or GitHub issue works as well!