GithubHelp home page GithubHelp logo

Comments (20)

remy avatar remy commented on May 21, 2024

Any chance you could provide a sample script so I can replicate the issue.

Obviously that's not normal behaviour!

from nodemon.

ramseydsilva avatar ramseydsilva commented on May 21, 2024

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.

ramseydsilva avatar ramseydsilva commented on May 21, 2024

http://www.pastie.org/pastes/1553420/text

from nodemon.

ramseydsilva avatar ramseydsilva commented on May 21, 2024

http://www.pastie.org/pastes/1553422/text

from nodemon.

 avatar commented on May 21, 2024

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.

ramseydsilva avatar ramseydsilva commented on May 21, 2024

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.

ramseydsilva avatar ramseydsilva commented on May 21, 2024

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.

 avatar commented on May 21, 2024

@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.

remy avatar remy commented on May 21, 2024

@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.

 avatar commented on May 21, 2024

@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.

remy avatar remy commented on May 21, 2024

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.

graysonchao avatar graysonchao commented on May 21, 2024

I had this issue and fixed it by correcting the timestamps of the files in question with touch *.

from nodemon.

tapsboy avatar tapsboy commented on May 21, 2024

@graysonc Thanks.

nodemon app.js was working fine but nodemon -L app.js was continuously restarting. touch * worked for me

from nodemon.

remy avatar remy commented on May 21, 2024

@tapsboy can you share what your working environment is?

from nodemon.

tapsboy avatar tapsboy commented on May 21, 2024

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.

remy avatar remy commented on May 21, 2024

@tapsboy two extra questions:

  1. Which platform are you running nodemon, on the host machine or the virtual machine?
  2. Which platform are you changing the files, on the host machine or the virtual machine?

from nodemon.

tapsboy avatar tapsboy commented on May 21, 2024
  1. I am running nodemon on Linux VM
  2. Editing files using Sublime on OS X

from nodemon.

cwouter avatar cwouter commented on May 21, 2024

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.

remy avatar remy commented on May 21, 2024

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.

cwouter avatar cwouter commented on May 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.