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 null:3000 #2

Open
zygopleural opened this issue Sep 22, 2023 · 0 comments
Open

Error: bind EADDRINUSE null:3000 #2

zygopleural opened this issue Sep 22, 2023 · 0 comments

Comments

@zygopleural
Copy link

Using this configuration causes the api health check to look on port 10000.

Setting

envVars:
      - key: PORT
        value: "3000"

does make the health check now look at :3000/api/healthCheck, but also causes the deployment to crash with the error:

Sep 22 08:29:43 PM  Starting static http server on port 3000
Sep 22 08:29:43 PM  {"address":null,"code":"EADDRINUSE","errno":-98,"level":"error","message":"There was an uncaught error bind EADDRINUSE null:3000","port":3000,"stack":"Error: bind EADDRINUSE null:3000\n    at listenOnPrimaryHandle (node:net:1397:18)\n    at rr (node:internal/cluster/child:155:12)\n    at Worker.<anonymous> (node:internal/cluster/child:109:7)\n    at process.onInternalMessage (node:internal/cluster/utils:49:5)\n    at process.emit (node:events:538:35)\n    at processEmit [as emit] (/snapshot/retool_development/node_modules/signal-exit/index.js:199:34)\n    at emit (node:internal/child_process:938:14)\n    at processTicksAndRejections (node:internal/process/task_queues:84:21)","syscall":"bind","timestamp":"2023-09-22T19:29:43.106Z"}
Sep 22 08:29:43 PM  {"error":{"address":null,"code":"EADDRINUSE","errno":-98,"message":"bind EADDRINUSE null:3000","name":"Error","port":3000,"stack":"Error: bind EADDRINUSE null:3000\n    at listenOnPrimaryHandle (node:net:1397:18)\n    at rr (node:internal/cluster/child:155:12)\n    at Worker.<anonymous> (node:internal/cluster/child:109:7)\n    at process.onInternalMessage (node:internal/cluster/utils:49:5)\n    at process.emit (node:events:538:35)\n    at processEmit [as emit] (/snapshot/retool_development/node_modules/signal-exit/index.js:199:34)\n    at emit (node:internal/child_process:938:14)\n    at processTicksAndRejections (node:internal/process/task_queues:84:21)","syscall":"bind"},"level":"error","message":"There was an uncaught error","timestamp":"2023-09-22T19:29:43.107Z"}
Sep 22 08:29:43 PM  {"address":null,"code":"EADDRINUSE","errno":-98,"level":"error","message":"There was an uncaught error bind EADDRINUSE null:3000","port":3000,"stack":"Error: bind EADDRINUSE null:3000\n    at listenOnPrimaryHandle (node:net:1397:18)\n    at rr (node:internal/cluster/child:155:12)\n    at Worker.<anonymous> (node:internal/cluster/child:109:7)\n    at process.onInternalMessage (node:internal/cluster/utils:49:5)\n    at process.emit (node:events:538:35)\n    at processEmit [as emit] (/snapshot/retool_development/node_modules/signal-exit/index.js:199:34)\n    at emit (node:internal/child_process:938:14)\n    at processTicksAndRejections (node:internal/process/task_queues:84:21)","syscall":"bind","timestamp":"2023-09-22T19:29:43.110Z"}
Sep 22 08:29:43 PM  {"error":{"address":null,"code":"EADDRINUSE","errno":-98,"message":"bind EADDRINUSE null:3000","name":"Error","port":3000,"stack":"Error: bind EADDRINUSE null:3000\n    at listenOnPrimaryHandle (node:net:1397:18)\n    at rr (node:internal/cluster/child:155:12)\n    at Worker.<anonymous> (node:internal/cluster/child:109:7)\n    at process.onInternalMessage (node:internal/cluster/utils:49:5)\n    at process.emit (node:events:538:35)\n    at processEmit [as emit] (/snapshot/retool_development/node_modules/signal-exit/index.js:199:34)\n    at emit (node:internal/child_process:938:14)\n    at processTicksAndRejections (node:internal/process/task_queues:84:21)","syscall":"bind"},"level":"error","message":"There was an uncaught error","timestamp":"2023-09-22T19:29:43.110Z"}
Sep 22 08:29:43 PM  node:events:504
Sep 22 08:29:43 PM        throw er; // Unhandled 'error' event
Sep 22 08:29:43 PM        ^
Sep 22 08:29:43 PM  
Sep 22 08:29:43 PM  Error: bind EADDRINUSE null:3000
Sep 22 08:29:43 PM      at listenOnPrimaryHandle (node:net:1397:18)
Sep 22 08:29:43 PM      at rr (node:internal/cluster/child:155:12)
Sep 22 08:29:43 PM      at Worker.<anonymous> (node:internal/cluster/child:109:7)
Sep 22 08:29:43 PM      at process.onInternalMessage (node:internal/cluster/utils:49:5)
Sep 22 08:29:43 PM      at process.emit (node:events:538:35)
Sep 22 08:29:43 PM      at processEmit [as emit] (/snapshot/retool_development/node_modules/signal-exit/index.js:199:34)
Sep 22 08:29:43 PM      at emit (node:internal/child_process:938:14)
Sep 22 08:29:43 PM      at processTicksAndRejections (node:internal/process/task_queues:84:21)
Sep 22 08:29:43 PM  Emitted 'error' event on Server instance at:
Sep 22 08:29:43 PM   {
Sep 22 08:29:43 PM    errno: -98,
Sep 22 08:29:43 PM    code: 'EADDRINUSE',
Sep 22 08:29:43 PM    syscall: 'bind',
Sep 22 08:29:43 PM    address: null,
Sep 22 08:29:43 PM    port: 3000
Sep 22 08:29:43 PM  }
Sep 22 08:29:43 PM  node:events:504
Sep 22 08:29:43 PM        throw er; // Unhandled 'error' event
Sep 22 08:29:43 PM        ^
Sep 22 08:29:43 PM  
Sep 22 08:29:43 PM  Error: bind EADDRINUSE null:3000
Sep 22 08:29:43 PM      at listenOnPrimaryHandle (node:net:1397:18)
Sep 22 08:29:43 PM      at rr (node:internal/cluster/child:155:12)
Sep 22 08:29:43 PM      at Worker.<anonymous> (node:internal/cluster/child:109:7)
Sep 22 08:29:43 PM      at process.onInternalMessage (node:internal/cluster/utils:49:5)
Sep 22 08:29:43 PM      at process.emit (node:events:538:35)
Sep 22 08:29:43 PM      at processEmit [as emit] (/snapshot/retool_development/node_modules/signal-exit/index.js:199:34)
Sep 22 08:29:43 PM      at emit (node:internal/child_process:938:14)
Sep 22 08:29:43 PM      at processTicksAndRejections (node:internal/process/task_queues:84:21)
Sep 22 08:29:43 PM  Emitted 'error' event on Server instance at:
Sep 22 08:29:43 PM   {
Sep 22 08:29:43 PM    errno: -98,
Sep 22 08:29:43 PM    code: 'EADDRINUSE',
Sep 22 08:29:43 PM    syscall: 'bind',
Sep 22 08:29:43 PM    address: null,
Sep 22 08:29:43 PM    port: 3000
Sep 22 08:29:43 PM  }
Sep 22 08:29:43 PM  {"level":"info","message":"[Master] Worker 239 died (code 1, signal null). 2 workers left","timestamp":"2023-09-22T19:29:43.224Z"}

Any ideas?

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

No branches or pull requests

1 participant