question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

develop command crashing when default 8000 port in use,

See original GitHub issue

I’ve bumped into a bug only in the last day or two and I’m not sure what update might have caused the change. When running npx gatsby develop and I already have something running on port 8000, I’d get the standard response: Would you like to run the app at another port instead? but now the command crashes.

I can still run my server on another port with npx gatsby develop -p 8001 and I so far assume this issue won’t interfere with anything else. I’ve not found this specific bug reported but there does appear to be recent activity around other yoga-layout-prebuilt bugs… Here’s the error:

/Users/Antonio/code/gatsby-starter-blog/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53
        throw ex;
        ^

Error: listen EADDRINUSE: address already in use :::8000
    at Server.setupListenHandle [as _listen2] (net.js:1313:16)
    at listenInCluster (net.js:1361:12)
    at Server.listen (net.js:1447:7)
    at startDevelopProxy (/Users/Antonio/code/gatsby-starter-blog/node_modules/gatsby/dist/utils/develop-proxy.js:79:10)
    at module.exports (/Users/Antonio/code/gatsby-starter-blog/node_modules/gatsby/dist/commands/develop.js:133:53)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
Emitted 'error' event on Server instance at:
    at emitErrorNT (net.js:1340:8)
    at processTicksAndRejections (internal/process/task_queues.js:84:21) {
  code: 'EADDRINUSE',
  errno: -48,
  syscall: 'listen',
  address: '::',
  port: 8000
}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:6
  • Comments:18 (11 by maintainers)

github_iconTop GitHub Comments

4reactions
polarathenecommented, Jul 20, 2020

Made a PR for you all, hope that helps, tested and it works 😃

2reactions
chrisk8ercommented, Sep 21, 2020

this works for me: sudo lsof -i tcp:8000 and then simply ran kill -9 PID

Read more comments on GitHub >

github_iconTop Results From Across the Web

Artisan Error: Failed to listen on localhost:8000 - Stack Overflow
8000 is the default port. Use instead of : php artisan serve --port=8005.
Read more >
Understand Software-forced Crashes - Cisco
This document explains the most frequent causes of software-forced crashes, and describes the information you must collect in order to ...
Read more >
Manually closing a port from commandline - linux - Super User
The default behaviour of binding a socket to a port (and address) is that when socket is closed by abrupt termination of process,...
Read more >
Docker Compose release notes
cp command: copy to all containers of a service as default behavior. For the full change log or additional information, check the Compose...
Read more >
Port 8000 (tcp/udp) :: SpeedGuide
dll in JetCast Server 2.0.0.4308 allows remote attackers to cause a denial of service (daemon crash) via a long .mp3 URI to TCP...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found