-
Notifications
You must be signed in to change notification settings - Fork 1.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
Bug: "Timed out while attempting to establish a connection to the container" error after fresh install of Docker and AWS SAM #7090
Comments
Thanks for reporting this, can you paste the contents of I see that you mention it gets stuck when mounting, if you run |
While it was mounting, I ran
After it timed out, I checked again, and the container was no longer there. Output from
|
Thanks for getting back with the additional info, we'll have to investigate this further, it looks like its failing to create a raw socket connection to the port the container spins up as part of the validation we do before invoking. In the meantime, can you try bumping the timeout before it fails using
will force the logic to wait a minute instead. |
Facing the same issue, thought it was awscliv1. So, I upgraded to v2, did a fresh installation of both aws and sam and made sure docker is enabled.
Even after trying @lucashuy's suggestion, still getting an immediate timeout: 19:30:49,977 | There is no customer defined id or cdk path defined for resource projectsourceConnFunctionsourceTriggerPermissions, so we will use the resource logical id as the resource id Forgive the indent lol Btw tried: |
Any updates? Because of this, I still can't use AWS SAM on my Linux computer. How can I downgrade my version of AWS SAM to a working version? |
I just installed AWS SAM and Docker and am attempting to work with a basic Lambda Function. The issue is that the Lambda fails to mount on the Docker container.
Set up
I just installed the latest version of docker:
Docker version 24.0.5, build 24.0.5-0ubuntu1~20.04.1
I also installed the latest version of SAM:
SAM CLI, version 1.116.0
I then created a very basic lambda function:
And a YAML:
Usage & Errors:
The app builds fine via
sam build
:The issue is that when I run
sam local invoke
, the program hangs on the "Mounting" stage and times out.The text was updated successfully, but these errors were encountered: