-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[nodemon] app crashed - waiting for file changes before starting... #1066
Comments
There is a server that's already running, so you cannot start another server. |
Restart the server [Ctrl+C then nodemon server.js] |
No |
Check all things in render paths EX:- |
Reinstall all dependencies $ npm install |
Fixed. |
Thanks for the fix! |
Thank you too. Fixed
|
Summary: We're seeing some errors where an instance can't be shut down cleanly by google. This is in the logs when that happens, according to https://enterprise.google.com/supportcenter/managecases#Case/0016000000QWp9w/9115921 ``` app crashed - waiting for file changes before starting... "FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory" ``` 'waiting for file changes before starting' sure sounds like something nodemon would say (linnovate/mean#1066 supports this). My guess is google is killing the process, then nodemon is trying to restart it, and trouble ensues. So don't run nodemon, just depend on the normal google process for monitoring health to do restarting when need be. We still use nodemon in `dev` and `serve_local` modes because it's super-useful there to notice file changes. Test Plan: Fingers crossed Reviewers: john, emily Reviewed By: emily Differential Revision: https://phabricator.khanacademy.org/D28109
Hi, I encountered with the same problem. How do you fix it? Could you describe it in detail? Thanks a lot! |
Thank you, I had the same problem, |
I encountered with the same problem, but npm install didn't fixed the problem (I tryed a lot of times). |
Same fucking problem! Still happening after |
@Aimanizales please post the full error message you see, or we can't really help you @Jipsian that stack trace is not from meanio - the error says your local mongod is not running |
It could be that nodemon is using a server.js that try to connect with mongodb and if you don't have mongod up and running then nodemon fails to start |
I want to it restart automatically after app crashed. I use nodemon in live project. so it is not possible every time to restart server. |
I need help..new to this. |
Seems your mongodb is down or mongo is not installed.
Try to connect via the cli and verify it's up
Lior
…On Sat, Mar 18, 2017 at 9:46 PM, Sandra Hamel ***@***.***> wrote:
I need help..new to this.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1066 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAO9I8Y7HS6f7M0DGyf6bahs-TwasI5Sks5rnDSpgaJpZM4DjLuL>
.
--
Lior Kesos - http://www.linnovate.net
Linnovate - Community Infrastructure Care
mail: lior@linnovate.net
office: +972 722500881
cell: +972 524305252
skype: liorkesos
|
I am also having this same issue...anyone solved this issue??? |
Hi all, |
Have you tried with PM2 plugin. This plugin is best solution ever. Once you start with this plugin, after then never required to start it again. Have a look this link: PM2 npm |
@Jipsian did you found how to fix the problem ? Please can you help me 2 ? |
stiil now no solution for this?? |
i am facing problem regarding this any solutn?? |
Upgrade your node version |
I encountered with the same problem, but npm install didn't fixed the problem and my mongodb is running , don't know the reason. |
I solved same problem. I didn't require. so I add require code and solved it. |
esta es la solución del problema hay que instalar bien babel... { |
fixed for me : |
pkill node worked for me, thanks ! |
"scripts": { here, after "nodemon" write file name which you want to run like I have written "script.js" in package.json. |
I think you just need to check over your code. it worked for me i had some code mistakes... and now that i looked over my code |
True! For me was it! Thanks :) |
I got the same error, so the solution for me was grep all processes that node.js connect with, and then kill all these processes, restart my server, and voila everything went without error:
your output will be something like that:
and just using kill command + PID:
I hope that's will help |
None of the solutio worked. Im still trying. Please update me if anyone have the latest solution |
did you try killing the server? ...i had the same issue ,but using (pkill node) worked with me .. maybe you should check if you have any minor mistakes in the code or so ! hope this helps! |
app.listen(newport) |
hola.... estoy empezando a programar y estuve buscando un buen rato la solución, tenia un problema en mis rutas, me faltaba exportar en modulo para poder cargarlo en mi index.js espero le ayude a alguien. |
options retrywrites , w are not supported |
instale express |
thank you for your time, I had a memory issue |
Solve by change node / nvm with version 10.0.0 nvm install 10.0.0 |
if you are using EJS, TypeScript and Node |
I had the same problem and the issue was I hadn't imported a route correctly: I was importing: ' import postRoutes from './routes/posts' I fixed it by importing including .js at the end: import postRoutes from './routes/posts.js' |
events.js:292 Error: listen EACCES: permission denied 2000; Can any one help me in solving this problem.... I have tried everything as above but still I'm getting this error. |
Hi, solved with: |
Hello everyone, if anyone can help me please. |
Pour moi j ai juste tuer tous les processus Node avec pkill node et apres j ai relance le server et ça fonction mais apres ça depend parfois c est a cause de manque de mongoose .. |
I was dealing with this error for a few days, the compile time errors were not showing up and the only thing I was getting on the console is the nice message: |
you are awesome man |
I have installed MEAN , it was working yesterday but today it stops working..
http://localhost:3000 is not opening
I don't understand what is wrong?
see the terminal screenshot :
The text was updated successfully, but these errors were encountered: