Skip to content
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] failed to send, dropping xxx traces to intake at xxx after 3 retries ([Errno 111] Connection refused) #17310

Open
sachams opened this issue May 25, 2023 · 15 comments

Comments

@sachams
Copy link

sachams commented May 25, 2023

Agent Environment

  • Agent version 3.30.8
  • Python ddtrace version 1.12.6
	"sourceLocation": {
		"file": "/usr/local/lib/python3.10/site-packages/ddtrace/internal/writer.py",
		"line": 464,
		"function": "flush_queue"
	}

Describe what happened:

We frequently see this error in all our environments, for example:

failed to send, dropping 23 traces to intake at http://10.154.0.10:8126/v0.5/traces after 3 retries ([Errno 111] Connection refused)

DataDog is otherwise functioning fine. Would like to stop these errors being generated though.

Describe what you expected:

No errors.

Steps to reproduce the issue:

  • Deploy datadog helm 3.30.8
  • Use ddtrace in a Python application

Additional environment details (Operating System, Cloud provider, etc):

  • Running on python:3.10.10-slim-bullseye on GKE
@darkwind-noveo
Copy link

U should see happening datadog agent logs at this time.
Highly likely your agent is rapidly restarting, because each time it exits for some reason

@ricardodani
Copy link

I'm having the same, would like to stop it too

@vkaracic
Copy link

Same issue here, @sachams have you found a fix for this?

@luciidlou
Copy link

bump

@miguelgf
Copy link

miguelgf commented Jul 9, 2024

Do we have any ETA for this to be solved or a workaround?

@jmborsani
Copy link

+1

@domino14
Copy link

please fix

@victorct-tradeengage
Copy link

Same issue, here but this is the log we have: failed to send, dropping 1 traces to intake at http://localhost:8126/v0.5/traces after 3 retries. Happens on AWS ECS Fargate with Datadog as a sidecar and only on startup so far.

@suemayaheldursi
Copy link

anyone know why this is? traces seem to be coming through ok but I keep getting this:

failed to send, dropping 1 traces to intake at http://localhost:8126/v0.5/traces

Running on python with ecs fargate and datadog agent as sidecar.

Docker image: python:3.10.10-slim
ddtrace: ^2.12.2

@UtpalCerta
Copy link

UtpalCerta commented Oct 7, 2024

Same issue, here we have log as : failed to send, dropping 2 traces to intake at http://10.0.169.74:8126/v0.5/traces after 3 retries

Application running on Python with ECS backed by EC2 instance & datadog agent as daemon agent

Versions
Datadog Image : 7.41.1
Python : 3.9.18
DDtrace : 2.9.2

@yixuanshao1991
Copy link

yixuanshao1991 commented Oct 9, 2024

This error disappeared after holding python app startup for 10s to wait DD agent.
Tested in AWS ECS sidecar DD agent.
DDtrace: 2.11.2
Python: 3.12

@davidwinter
Copy link

What is the status of this issue? Is there no workaround other than to delay the start of the application launching? Currently this error is being caught and captured by our Sentry integration which is not ideal at all.

@pzelnip
Copy link

pzelnip commented Jan 21, 2025

Am getting this as well when running my application's tests with Pytest. ddtrace version 2.18.1 and sentry-sdk 2.20.0. Workaround for me was to set the DD_TRACE_ENABLED environment variable to false for my tests.

@johnecon
Copy link

Also getting this running my app in AWS Lambda

@the-real-mathew-moon
Copy link

Also hitting this when running in AWS Lambda.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests