Comments (20)
Any chance you could provide a sample script so I can replicate the issue.
Obviously that's not normal behaviour!
from nodemon.
Here is my hello_world.js file: http://www.pastie.org/pastes/1553422/text
Here is the output from shell when running nodemon: http://www.pastie.org/pastes/1553420/text
The recurring restart problem happens mostly when starting nodemon. Sometimes nodemon starts ok, but the recurring problem happens when the file has been edited.
from nodemon.
http://www.pastie.org/pastes/1553420/text
from nodemon.
http://www.pastie.org/pastes/1553422/text
from nodemon.
I had situation like this before. I have server with nodemon. And I change files through connection on ssh. And because on server and on PC different Time Zone file .monitor always was in future time.
Or, if it's not your situation please give result of command "ls -la" in working directory when this happen.
from nodemon.
Thanks for the reply. I will test this. But you are probably right as I am located in Toronto and server is located in Germany. Is there a remedy for the problem?
from nodemon.
I just tested this and it is definitely the case! I will see what I can do to sync my ftp software and the server time. Thanks again.
from nodemon.
@ramseydsilva We can ask @remy for add option to nodemon like "timechange=+2" than nodemon can save file and than change "edit time" +2 hour.
@remy if you have not any time for this but think that is nice, than tell me and I can write this option. But now after many years of life with python - my javascript code is a little ugly :)
from nodemon.
@presidentua I'd like to avoid adding some kind of arguments to tweak the behaviour, and rather try to fix the root cause of the problem you're seeing.
I've been considering moving nodemon to use https://github.com/c4milo/node-inotify - but looking at your sample code - I'm not totally sure that'll fix it.
Also, can you try testing with nodemon version 0.1.8 - that was the version before I made the fix for node v0.3.8. It might be that...
Thanks for hanging in there!
from nodemon.
@remy
Now I fully agree with you. Code of Nodemon is really clear and nice with "find" command.
About this case I just change my local time to equal server time :)
Remy, thx for Nodemon! :)
from nodemon.
I know it's been a while, but are you still seeing this issue - or rather: are you still able to replicate this issue? If so, I think I may have a fix.
from nodemon.
I had this issue and fixed it by correcting the timestamps of the files in question with touch *
.
from nodemon.
@graysonc Thanks.
nodemon app.js
was working fine but nodemon -L app.js
was continuously restarting. touch *
worked for me
from nodemon.
@tapsboy can you share what your working environment is?
from nodemon.
OS X host with Vagrant Virtualbox based Ubuntu Guest.
When files are edited on OS X, nodemon running on my VM doesn't restart the app, unless I use -L, which worked fine, but after a day or two, it went in an endless restart cycle till I ran touch *
. Running nodemon without -L was not causing the endless cycle, but is unusable for me
That said, I do know that suspended/halted Vagrant machines fall behind on system time unless ntpd'ed back, if that is related anyhow to the above problem.
from nodemon.
@tapsboy two extra questions:
- Which platform are you running nodemon, on the host machine or the virtual machine?
- Which platform are you changing the files, on the host machine or the virtual machine?
from nodemon.
- I am running nodemon on Linux VM
- Editing files using Sublime on OS X
from nodemon.
I have the exact same issue. Server now restarts 2 to 4 times (random) after running sudo touch ./
I am running nodemon on a Vagrant puphpet/debian75-x64 VM and editing files using PHPStorm
from nodemon.
Can you confirm the time on the VM and the local mac machine? (I'm looking
for time drift)
On 2 Jan 2015 09:23, "Wouter cleymans" [email protected] wrote:
I have the exact same issue. Server now restarts 2 to 4 times (random)
after running sudo touch ./—
Reply to this email directly or view it on GitHub
#11 (comment).
from nodemon.
It looks like the problem is gone now. I haven't changed anything on my VM or host os. Probably vagrant reload or restart of host os fixed the issue.
Time:
Guest os: mon Jan 5 06:29:04 UTC 2015
Host os: mon 5 jan 2015 07:28:51 CET
from nodemon.
Related Issues (20)
- When I Use Nodemailer to send rest password to email the nodemailer crashed app server and the server are down but the message send HOT 2
- When I Use Nodemailer to send rest password to email the nodemailer crashed app server and the server are down but the message send HOT 3
- Adding copy button to the code given on main website HOT 4
- ⭐ [FEATURE REQUEST] : Add Scroll to Top Button to NODEMON Webpage HOT 3
- FEATURE: Add scroll-up button (Hacktober Fest) HOT 2
- nodemon can't kill process under win10 HOT 5
- Cannot read properties of undefined (reading 'filename') in Node v20.6.0 (yarn2) HOT 7
- nodemon can not be stopped by Ctrl-C with --no-stdin after restart with terminal in raw mode HOT 9
- catch global error not working HOT 1
- ignore everything except repeated specific sub directories HOT 3
- Old version of `debug` dependency introduces `CVE-2017-16137` vulnerability HOT 1
- Workflows failing - not even getting to tests… HOT 2
- I need some assistance. it‘s not a bug but I didn't find the discussion tag. So I have to raise a question as an issue:does nodemon support running ts files? HOT 5
- Issue on a dependency - CVE-2022-25883 HOT 3
- Graceful shutdown of Docker container not respected HOT 6
- Nodemon support for native .env file loading (Remy edit: was always supported) HOT 4
- nodemon called as a subprocess within a subprocess breaks stdin after SIGINT HOT 5
- Nodemon TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" HOT 4
- Nodemon the `punycode` module is deprecated in node js 21 HOT 2
- ts-node should not be default when `--import` flag is present HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nodemon.