[nodemon] Internal watch failed: Circular symlink detected
See original GitHub issuenodemon -v: 2.0.5node -v: 12.19.0- Operating system/terminal environment:
- Using Docker? What image: node:lts-alpine
- Command you ran: CMD [“nodemon”, “–config”, “/app/src/ScheduleService-nodemon.json”, “/app/src/ScheduleService/index.js”]
Before 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.
Expected behaviour
Nodemon should be monitoring files without issues.
Actual behaviour
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” …
Steps to reproduce
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.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:21 (4 by maintainers)
Top Results From Across the Web
Docker Container npm ERR! Internal watch failed
This answer is from Github issue. It is really similar to your problem. [Github Issue] Internal watch failed: Circular symlink detected.
Read more >[nodemon] Internal watch failed: Circular symlink detected
Internal watch failed : Circular symlink detected · Expected behaviour. Nodemon should be monitoring files without issues. · Actual behaviour.
Read more >[Solved]-Docker Container npm ERR! Internal watch failed
This answer is from Github issue. It is really similar to your problem. [Github Issue] Internal watch failed: Circular symlink detected · [Original...
Read more >erro npm nodemon | Rest com NodeJS
[nodemon] watching extensions: js,mjs,json [nodemon] starting `node index.js` [nodemon] Internal watch failed: Circular symlink detected: ...
Read more >Bug listing with status RESOLVED with resolution OBSOLETE ...
Kernel Log: "ACPI: EC: GPE storm detected, transactions will use polling mode"" ... Bug:369463 - "gpe-utils/gpe-clock fails because of underlinking" ...
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 Free
Top 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

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.
Okay I just solved this, although tbh I am not exactly sure what caused the issue in the first place. Seems to be a Docker configuration issue though, not an issue with nodemon.
Or, with docker-compose.yml
Then run