Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
Hey,
I was trying to use localstack to run my AWS code locally (I'm new to AWS too but everything working file so far using docs). For that I created lambda which will add some message to a custom Rabbitmq queue. Code can be found here: https://github.com/generalpy101/vetube
Everytime I upload file to s3(event on which lambda is supposed to invoke), a container for lambda spawns but insite it I get an error:
time="2024-01-17T06:00:36Z" level=warning msg="Cannot list external agents" func=go.amzn.com/lambda/agents.ListExternalAgentPaths file="/home/runner/work/lambda-runtime-init/lambda-runtime-init/lambda/agents/agent.go:24" error="open /opt/extensions: no such file or directory"
And then after some time localstack spawns another container and after some time timeout is shown on localstack logs and this cycle continues.
Error in localstack logs
Failed invocation MyHTTPConnectionPool(host='172.17.0.5', port=9563): Max retries exceeded with url: /invoke (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f703e2b8190>, 'Connection to 172.17.0.5 timed out. (connect timeout=None)'))
Expected Behavior
Lambda function should execute without any proble.
How are you starting LocalStack?
With a docker-compose file
Steps To Reproduce
How are you starting localstack (e.g., bin/localstack
command, arguments, or docker-compose.yml
)
docker-compose down --volumes --remove-orphans && docker-compose up --build
There is a setup script which executes in a separate container defined in docker compose.
Client commands (e.g., AWS SDK code snippet, or sequence of "awslocal" commands)
aws --endpoint-url=http://localhost:4566 s3 cp test.txt s3://vetube/
Copying sample file to invoke lambda function.
Environment
- OS: Ubuntu 22.04.3 LTS on Windows 10 x86_64
- LocalStack: Latest Docker Image.
Anything else?
This issue is somewhat related to mine but I tried these solutions but they didn't work.
PS: I am noob in AWS and Localstack so there might be problems in code that stackoverflow cannot explain.