aws-otel-lambda icon indicating copy to clipboard operation
aws-otel-lambda copied to clipboard

53612: bind: address already in use

Open JachMinen opened this issue 2 years ago • 6 comments


name: Bug report about: Create a report to help us improve title: '' labels: bug assignees: ''


Describe the bug Lambda will occasionally encounter this error during initialization of environment: telemetryAPI.Listener Unexpected stop on HTTP Server listen tcp ---.---.---.---:53612: bind: address already in use When this happens, the next invocation will run successfully at first, but then time out when trying to export metrics. This only seems to happen on cold start of new environment and usually resolves itself after 1 or 2 invocations in that environment.

Steps to reproduce Unknown

What did you expect to see? Lambda runs and metrics are exported successfully

What did you see instead? Lambda times out

What version of collector/language SDK version did you use? Version: aws-otel-python-amd64-ver-1-20-0:3

What language layer did you use? Config: Python3.9

Additional context Lambda also has layers for Lambda Insights and Python libraries

JachMinen avatar Dec 18 '23 21:12 JachMinen

We've been bumping into this, too. We're using a fastapi python app in a docker-based lambda also using aws-otel-python-amd64-ver-1-20-0:3

drobert avatar Mar 04 '24 18:03 drobert

Same here on aws-otel-collector-arm64-ver-0-90-1:1

Xaaris avatar Mar 08 '24 08:03 Xaaris

@drobert and @JachMinen are you using otlptracegrpc.WithDialOption(grpc.WithBlock()) for your SDK client setup?

jan-xyz avatar Apr 25 '24 08:04 jan-xyz

This issue is stale because it has been open 90 days with no activity. If you want to keep this issue open, please just leave a comment below and auto-close will be canceled

github-actions[bot] avatar Jul 28 '24 20:07 github-actions[bot]

Please keep this open. Unresolved/still an issue.

drobert avatar Jul 28 '24 20:07 drobert