Skip to content

Docker: will not start, Error: listen EADDRINUSE: address already in use :::3001 #1366

Description

@sabotagebeats

@HenkHui @jairo-bc is this the same issue?

$ docker run -p 3000-3010:3000-3010 -v /$(pwd):/usr/src/app -it ghcr.io/bigcommerce/stencil-cli:lat
est stencil start

...

[Browsersync] Watching files...
node:events:502
      throw er; // Unhandled 'error' event
      ^

Error: listen EADDRINUSE: address already in use :::3001
    at Server.setupListenHandle [as _listen2] (node:net:1908:16)
    at listenInCluster (node:net:1965:12)
    at Server.listen (node:net:2067:7)
    at Object.startServer [as fn] (/usr/local/lib/node_modules/@bigcommerce/stencil-cli/node_modules/browser-sync-ui/lib/async.js:123:39)
    at /usr/local/lib/node_modules/@bigcommerce/stencil-cli/node_modules/browser-sync-ui/lib/UI.js:185:14
    at iterate (/usr/local/lib/node_modules/@bigcommerce/stencil-cli/node_modules/async-each-series/index.js:8:5)
    at /usr/local/lib/node_modules/@bigcommerce/stencil-cli/node_modules/async-each-series/index.js:16:16
    at /usr/local/lib/node_modules/@bigcommerce/stencil-cli/node_modules/browser-sync-ui/lib/UI.js:193:13
    at Object.setUrlOptions [as fn] (/usr/local/lib/node_modules/@bigcommerce/stencil-cli/node_modules/browser-sync-ui/lib/async.js:76:9)
    at /usr/local/lib/node_modules/@bigcommerce/stencil-cli/node_modules/browser-sync-ui/lib/UI.js:185:14
Emitted 'error' event on Server instance at:
    at emitErrorNT (node:net:1944:8)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  code: 'EADDRINUSE',
  errno: -98,
  syscall: 'listen',
  address: '::',
  port: 3001
}

Node.js v20.20.2

Originally posted by @sabotagebeats in #1054

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions