develop command crashing when default 8000 port in use,
See original GitHub issueI’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:
- Created 3 years ago
- Reactions:6
- Comments:18 (11 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Made a PR for you all, hope that helps, tested and it works 😃
this works for me: sudo lsof -i tcp:8000 and then simply ran kill -9 PID