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

Error: bind EADDRINUSE 0.0.0.0 #3885

Open
nubunto opened this issue Dec 14, 2023 · 0 comments
Open

Error: bind EADDRINUSE 0.0.0.0 #3885

nubunto opened this issue Dec 14, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@nubunto
Copy link

nubunto commented Dec 14, 2023

Expected behaviour
The application should not be restarting due to dd-trace usage

Actual behaviour
The application fails with the following:

Error: bind EADDRINUSE 0.0.0.0
    at node:dgram:364:20
    at AsyncResource.runInAsyncScope (node:async_hooks:203:9)
    at bound (node:async_hooks:235:16)
    at /node_modules/.pnpm/dd-trace@4.20.0/node_modules/dd-trace/packages/datadog-instrumentations/src/dns.js:79:12
    at AsyncResource.runInAsyncScope (node:async_hooks:203:9)
    at bound (node:async_hooks:235:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:83:21)
Emitted 'error' event on Socket instance at:
    at node:dgram:366:14
    at AsyncResource.runInAsyncScope (node:async_hooks:203:9)
    [... lines matching original stack trace ...]
    at process.processTicksAndRejections (node:internal/process/task_queues:83:21) {
  errno: -98,
  code: 'EADDRINUSE',
  syscall: 'bind',
  address: '0.0.0.0'
}

It takes the application around ~80min to fail with this. It's a Temporal worker processing around ~300 RPS.

Steps to reproduce
Can't share the exact config, but it's not doing anything different than:

// tracer/index.ts
import tracer from 'dd-trace';

tracer.init({
  logInjection: true,
  tags: {
    team: 'foo',
  },
});

const { TracerProvider } = tracer;
const provider = new TracerProvider();
provider.register();
// main.ts
import './config/tracer';

async function run() {
  // setup a temporal.io worker here and start it
}

Environment

  • Operation system: Debian Bullseye
  • Node.js version: 18
  • Tracer version: 4.20.0
  • Agent version: I have no idea
  • Relevant library versions: Temporal SDK 1.8.6
@nubunto nubunto added the bug Something isn't working label Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant