nodemon -v: 2.0.5node -v: 12.19.0Before this hell started, Nodemon was working fine. I have deleted all Docker images and caches and re-build everything from scratch. So the versions should be the latest.
Nodemon should be monitoring files without issues.
Nodemon reports an error:
...
[nodemon] Internal watch failed: Circular symlink detected: "/sys/class/cpuid/cpu0/subsystem" points to "/sys/class/cpuid"
...
[nodemon] Internal watch failed: Circular symlink detected: "/sys/class/bdi/0:85/subsystem" points to "/sys/class/bdi"
...
Start the image.
If applicable, please append the --dump flag on your command and include the output here ensuring to remove any sensitive/personal details or tokens.
Getting a similar issue here:
node -v: v10.19.0nodemon -v: 2.0.6[nodemon] Internal watch failed: Circular symlink detected: "/usr/bin/X11" points to "/usr/bin"
Getting a similar issue:
node -v: 6.14.8nodemon --watch src -e js,ts --exec "npm run compile"[nodemon] Internal watch failed: Circular symlink detected: "C:\Users\user\AppData\Local\Application Data" points to "C:\Users\user\AppData\Local"
EDIT:
Fixed by navigating to C:\Users\user\AppData\Local\ and doing rmdir "Application Data" since it was an empty folder. Before doing this, make sure Application Data is empty.
@tomhuntley did you resolve this? Getting the same "/usr/bin/X11" points to "/usr/bin" error
@andrewlew1s no, i couldn't resolve it. I've had to temporarily run the app outside docker while developing. It seems ok for me on windows.
Can you add the following to your nodemon.json and let me know how you get on:
{
"watchOptions": {
"followSymlinks": false
}
}
Tried. And without any luck. The same problem still persists.
@AlexeyPlodenko can you provide a pared down repo to replicate from?
@remy Here you go https://hub.docker.com/r/alexeyplodenko/paired-down-repo
@AlexeyPlodenko okay, not being a docker user, can you provide instructions? Assume I know nothing about Docker (which is accurate) (utterly aside, it's pared down)
I am running a nodejs application inside a docker container.
I solved creating a nodemon.json on my project root with this content:
{
"watch": ["src"],
"ext": "js"
}
The watch option only update when anything on my src folder changes. Without it, nodemon watches all files of the system, generating the error. Maybe a possible fix is to make nodemon observe by default the files on current directory and subdirectories.
@dougecomp works great!
We are also using a nodemon.json configuration file:
{
"watch": [
"APIService/",
"shared/"
],
"ext": "js,json"
}
And it does not sort the issue.
This issue has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automtically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and @remy will (try!) to follow up.
Thank you for contributing <3
Most helpful comment
I am running a nodejs application inside a docker container.
I solved creating a nodemon.json on my project root with this content:
The watch option only update when anything on my src folder changes. Without it, nodemon watches all files of the system, generating the error. Maybe a possible fix is to make nodemon observe by default the files on current directory and subdirectories.