Home
Forums
New posts
Search forums
What's new
New posts
New resources
New profile posts
Latest activity
Resources
Latest reviews
Search resources
Members
Current visitors
New profile posts
Search profile posts
DMCA Policy
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
FEEL FREE TO SHARE TUTORIALS, YOUR SKILS & KNOWLEDGE ON CODING, SCRIPTS, THEMES, PLUGINS OR ANY RESOURCES YOU HAVE WITH THE COMMUNITY-
Click Here To Post Your Request,
JOIN COMPUTER REPAIR FORUM
Home
Forums
TUTORIALS
CODING TUTORIALS
Node.js
Node EADDRINUSE (Address Already in Use) Error
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="codeguru" data-source="post: 59" data-attributes="member: 2"><p>Every once in a while my MacBook Pro freaks out and a process goes rogue. This oftentimes happens when I’m working on the excellent debugger.html project; I attempt to start the server side of the debugger and suddenly I’m hit with an error that resembles the following, leading to the process not starting from that time forward:</p><p></p><p></p><p>Error: listen EADDRINUSE 0.0.0.0:9000</p><p> at Object._errnoException (util.js:1026:11)</p><p> at _exceptionWithHostPort (util.js:1049:20)</p><p> at Server.setupListenHandle [as _listen2] (net.js:1343:14)</p><p> at listenInCluster (net.js:1391:12)</p><p> at doListen (net.js:1500:7)</p><p> at _combinedTickCallback (internal/process/next_tick.js:141:11)</p><p> at process._tickCallback (internal/process/next_tick.js:180:9)</p><p> at Function.Module.runMain (module.js:667:11)</p><p> at startup (bootstrap_node.js:201:16)</p><p> at bootstrap_node.js:626:3 </p><p></p><p></p><p>The best way to fix this issue is by killing the Node.js process that’s running for the rogue task. Start by finding a listing of all of the node processes:</p><p></p><p></p><p>ps aux | grep node</p><p></p><p></p><p>You’ll see a listing similar to this:</p><p></p><p></p><p>davidwalsh 12413 0.0 0.0 2592088 3888 ?? S 7:38PM 0:20.45 /Users/davidwalsh/Projects/debugger.html/node_modules/flow-bin/flow-osx-v0.52.0/flow</p><p>davidwalsh 12412 0.0 0.0 29739356 2372 ?? S 7:38PM 0:00.12 /Users/davidwalsh/Projects/debugger.html/node_modules/flow-bin/flow-osx-v0.52.0/flow</p><p>davidwalsh 12411 0.0 0.0 29732188 2372 ?? S 7:38PM 0:00.07 /Users/davidwalsh/Projects/debugger.html/node_modules/flow-bin/flow-osx-v0.52.0/flow</p><p>davidwalsh 12410 0.0 0.0 29732188 2372 ?? S 7:38PM 0:00.07 /Users/davidwalsh/Projects/debugger.html/node_modules/flow-bin/flow-osx-v0.52.0/flow</p><p>davidwalsh 12409 0.0 0.0 29731164 2372 ?? S 7:38PM 0:00.06 /Users/davidwalsh/Projects/debugger.html/node_modules/flow-bin/flow-osx-v0.52.0/flow</p><p></p><p></p><p>When you identify the rogue process, use the [ICODE]kill[/ICODE] command along with the process number to remove it:</p><p></p><p></p><p>#kill -9 {process_number}</p><p>kill -9 12413</p><p></p><p></p><p>With the process killed you can now start up the server as normal!</p><p></p><p>The post <a href="https://davidwalsh.name/node-eaddrinuse" target="_blank">Node EADDRINUSE (Address Already in Use) Error</a> appeared first on <a href="https://davidwalsh.name" target="_blank">David Walsh Blog</a>.</p><p></p><p><a href="https://tkjs.us/dwb" target="_blank"><img src="https://davidwalsh.name/demo/tjs_block-1.svg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></a></p><p></p><p><a href="https://davidwalsh.name/node-eaddrinuse" target="_blank">Continue reading...</a></p></blockquote><p></p>
[QUOTE="codeguru, post: 59, member: 2"] Every once in a while my MacBook Pro freaks out and a process goes rogue. This oftentimes happens when I’m working on the excellent debugger.html project; I attempt to start the server side of the debugger and suddenly I’m hit with an error that resembles the following, leading to the process not starting from that time forward: Error: listen EADDRINUSE 0.0.0.0:9000 at Object._errnoException (util.js:1026:11) at _exceptionWithHostPort (util.js:1049:20) at Server.setupListenHandle [as _listen2] (net.js:1343:14) at listenInCluster (net.js:1391:12) at doListen (net.js:1500:7) at _combinedTickCallback (internal/process/next_tick.js:141:11) at process._tickCallback (internal/process/next_tick.js:180:9) at Function.Module.runMain (module.js:667:11) at startup (bootstrap_node.js:201:16) at bootstrap_node.js:626:3 The best way to fix this issue is by killing the Node.js process that’s running for the rogue task. Start by finding a listing of all of the node processes: ps aux | grep node You’ll see a listing similar to this: davidwalsh 12413 0.0 0.0 2592088 3888 ?? S 7:38PM 0:20.45 /Users/davidwalsh/Projects/debugger.html/node_modules/flow-bin/flow-osx-v0.52.0/flow davidwalsh 12412 0.0 0.0 29739356 2372 ?? S 7:38PM 0:00.12 /Users/davidwalsh/Projects/debugger.html/node_modules/flow-bin/flow-osx-v0.52.0/flow davidwalsh 12411 0.0 0.0 29732188 2372 ?? S 7:38PM 0:00.07 /Users/davidwalsh/Projects/debugger.html/node_modules/flow-bin/flow-osx-v0.52.0/flow davidwalsh 12410 0.0 0.0 29732188 2372 ?? S 7:38PM 0:00.07 /Users/davidwalsh/Projects/debugger.html/node_modules/flow-bin/flow-osx-v0.52.0/flow davidwalsh 12409 0.0 0.0 29731164 2372 ?? S 7:38PM 0:00.06 /Users/davidwalsh/Projects/debugger.html/node_modules/flow-bin/flow-osx-v0.52.0/flow When you identify the rogue process, use the [ICODE]kill[/ICODE] command along with the process number to remove it: #kill -9 {process_number} kill -9 12413 With the process killed you can now start up the server as normal! The post [URL='https://davidwalsh.name/node-eaddrinuse']Node EADDRINUSE (Address Already in Use) Error[/URL] appeared first on [URL='https://davidwalsh.name']David Walsh Blog[/URL]. [URL='https://tkjs.us/dwb'][IMG]https://davidwalsh.name/demo/tjs_block-1.svg[/IMG][/URL] [url="https://davidwalsh.name/node-eaddrinuse"]Continue reading...[/url] [/QUOTE]
Insert quotes…
Verification
Post reply
Richest Freecoded User
Most Freecoin
freecoded
4,976 Freecoin
J
Johnhendrick
736 Freecoin
S
Smith16
683 Freecoin
Davy200
590 Freecoin
P
Peterparker87
475 Freecoin
nathan69
426 Freecoin
Laureine
415 Freecoin
A
anajeen
395 Freecoin
C
codeguru
282 Freecoin
Tekera
267 Freecoin
Home
Forums
TUTORIALS
CODING TUTORIALS
Node.js
Node EADDRINUSE (Address Already in Use) Error
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top