-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Starting inspector on 0.0.0.0:9229 failed: address already in use #1492
Comments
Is the And can you replicate with this script: require('http').createServer((req, res) => res.end('ok')).listen(8000); |
yes, this is the watch entry |
here is my package.json if needed
docker-compose : 1.22.0 |
Can you provide a full working |
you will find a project setup to reproduce the issue here : https://github.com/xDelph/nodemon-issue-inspector just launch |
Sorry - I've just solved the issue (with a lot of messing on the command line). If you do a hard upgrade of nodemon, it should include the latest [email protected] (a quick check with |
the version of pstree.remy seems ok now in my docker
which is very weird |
Yeah, my bad for being a plum. Re-install and .6 is good 😢 |
great, it's ok now |
As described in #1476 I'm still seeing this issue with The issue is intermittent with the following start command:
|
I get this issue all the time. Not sure when exactly it started happening, but it didn't use to happen. node v11.11.0 via alpine-v11
Would be happy to retrieve any logs or additional info to help narrow this down. |
@JonDum - Happens to me as well. See logs below:
|
Happens to me as well:
Not sure why it's happening. Here's my package.json script...: "dev": "nodemon app.js --exec babel-node --inspect --" |
Maybe my workaround can help you guys: |
Sorry for upping this, but I'm having the exact same issue :| [edit]: Seems to be working fine with It's fine in my case because it's running in docker, but that's probably not something fine |
My code is wrong, so it appears. |
Just add https://github.com/remy/nodemon#delaying-restarting |
Thank you, it fixed in my case. |
I fixed my problem by changing the npm
to this:
What must have been happening was that node and/or nodemon was taking over listening on the port, but ts-node was also trying to do the same thing. By setting the environment variable later, that is avoided. |
nodemon -v
: 1.18.8node -v
: 9.4.0Expected behaviour
inspector restart on file change
Actual behaviour
Starting inspector on 0.0.0.0:9229 failed: address already in use
Steps to reproduce
using a dockerfile like :
The text was updated successfully, but these errors were encountered: