-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
v2 Branch - Application force closes after 12 - 24 hours of running #150
Comments
Thanks for reporting! It doesn't seem to close with an error, so hard to debug. I'll put the current version in my real mirror today, so I can start long-time testing. I'm running it using PM2 so it automatically recovers after a failure. Keep me posted on your findings. |
i have had this happen as well, nothing in the log. I've relaunched with silly log level to see if anything turns up. (so far been running for about 14 hours) could you elaborate on how to setup PM2 to run MM. |
I got mine up and running now for 30 hours. |
Nice will test your autostart method :) |
It's very handy, especially since it allows you to easily start, stop and restart your mirror via SSH. |
Running for 47 hour steady now. @pvyParts, how is your mirror running? |
it hasn't stopped since my last comment. which i guess is a good thing lol |
Good to hear! :) |
Mine appeared to be restarted 4 hours ago. After 53 hours of uptime. No clue what happened. No signs of errors in the logs. |
Mine is still running. Haha, I've actually lost count now. so i'm guessing it is pretty random. i'll keep my mirror on silly log level tho and if it does stop let you know. |
If I run |
Thanks for the info! Could you share the full log? |
Here is the basic gist of what happens: events.js:72
throw er; // Unhandled 'error' event
^
Error: read ECONNRESET
at errnoException (net.js:904:11)
at Pipe.onread (net.js:558:19) |
I pushed an update this morning which probably solves this issue: bef5b48 Could you please upgrade to the latest version and try again? |
The core app now includes a catch all for all exceptions. So this issue should be solved. I close this issue for now, but feel free to let me know if I need to reopen the issue. |
Hey Thanks for the codes. ` Failed at the [email protected] postinstall script 'node install.js'. npm ERR! Please include the following file with any support request: The Whole Error is like this `Downloading electron-v0.37.7-linux-arm.zip Error: read ECONNRESET npm ERR! [email protected] postinstall: npm ERR! Please include the following file with any support request: Any Solution? Please Need Help Immediately, Gotta Gift this to My Girl |
Check your internet connection!
|
Update node to v5.11.0 |
it was the Bad Internet. also how do i get rid of the notification (Welcom, start was successful) |
See the documentation of the alert module.
|
What is an easy way to edit files and modules and get them updated on the raspberry. |
Hey, unfortunately, I am still having the same problems. I don't have logs on this one, as it was setup to automatically start after boot, but it did crash sometime between 2:00 AM and 8:30 AM after I woke up. This was after pulling the latest files yesterday (from around 4:00 PM PT), and reconfiguring the setup (it had been about a month since I had changed anything). Maybe it was just the way that I started the MagicMirror so I will give it a shot with the pm2 way this time. But it definitely crashed by itself. Is there any way that you can possibly have it output logfiles in the working directory of whever npm start is run, so that there is a constant place for log files? Or maybe there is a place where npm stores logfiles, and I don't know about it. For record I was on bc2f2f5 when this occured, I have now just upgraded to 4338cb3. Just for reference, for future things if it is still broken, install pm2 on my Pi results in:
This is completely unrelated to MagicMirror itself, but, if something happens and that component is required, I want it to be known. |
@vanimesh76 You only need to edit the config file. You need to do that on the Raspberry. @delize: you can use |
@MichMich I just started using pm2 after the crash. I would expect the logs would not show there unless I was using PM2 from the start, wouldn't that be correct? |
Indeed. |
|
Hi @MichMich , Question about your commit:
I see you catch all the exceptions, that's ok, so there will be no more exception popup on the screen, and maybe no more crash. I mean maybe it is a better idea to catch the uncaughtException, then exit, and pm2 will restart the whole app nice and clean. |
The reason I built it in, was that a lot of crashes were caused by the fact the internet connection was down (dns exception). Maybe we should check if that's the reason, and if not: restart. I must admit it was a bit of a hot-fix. So a PR with a more sophisticated solution is welcome. |
In Python you can name exceptions and only continue running in some cases, is that possible in JavaScript?
|
You get a error back which you can evaluate. |
I have just checked your module documentation. |
I have experienced the same issue, almost consistently. I'm running MM2 in Raspi 3 Model B. I just pulled from the master and restarted the mirror. Will submit the logs if it crashes again. BTW, great jobs everyone. |
Since I've executed the following update commands, MM2 hasn't crashed. It's been running for more than 54 hours now. |
Hi MichMich I reached to below point after complete installation, I see a black screen on Pi (Raspberry Pi 2), none of the applications are loaded, can you please let me know what could be the issue? pi@raspberrypi ~/MagicMirror $ npm start
Starting MagicMirror: v2.1.1 |
#222 |
I cant see such lines after launching application, does it take too much time to load? looking at interval?? Create new calendar fetcher for url: http://calendar.google.com/calendar/ical/de.german%23holiday%40group.v.calendar.google.com/public/basic.ics - Interval: 300000 |
I found a solution after digging a lot, The problem was a warning during npm install as below Black screen is defnitely because of config.js file issue. but this time, js file was not loading at the time of execution because of moments being not installed in vendor directory. In order to find this you will have to use npm start dev command (dont forget to use sudo if you are not running as admin). Once this command is executed, it will open electron browser in debug mode. check the console log for the errors, there you will find that moments are not being loaded because of reference is not found for js files. for.e.g Clock.js 77 to to resolve this you will have to execute npm install command inside vendor directory, the only mistake I did was ignoring the warnings during installations of npm. warning clearly says to execute npm install inside vendor directory, when you have it resolved. try executing npm start again and it will do a magic as expected ! |
cannot run in wd %s %s (wd=%s) can be avoided by |
I am continuously getting these errors help me! C:\Users\Bisma\Desktop\MagicMirror>npm install
npm WARN invalid config loglevel="notice"
'sh' is not recognized as an internal or external command, npm ERR! A complete log of this run can be found in: C:\Users\Bisma\Desktop\MagicMirror> |
The installer is meant for the Raspberry Pi and can only run on Linux.
… Am 07.07.2017 um 13:45 schrieb BismaGhaffar ***@***.***>:
I am continuously getting these errors help me!
C:\Users\Bisma\Desktop\MagicMirror>npm install
***@***.*** install C:\Users\Bisma\Desktop\MagicMirror
cd vendor && npm install
npm WARN invalid config loglevel="notice"
up to date in 0.44s
***@***.*** postinstall C:\Users\Bisma\Desktop\MagicMirror
sh installers/postinstall/postinstall.sh
'sh' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ***@***.*** postinstall: sh installers/postinstall/postinstall.s h
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ***@***.*** postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional log
ging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Bisma\AppData\Roaming\npm-cache_logs\2017-07-07T11_36_20_
182Z-debug.log
C:\Users\Bisma\Desktop\MagicMirror>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
So,How can I run on my windows |
Few month ago i run this on my window via npm start command easily but now i am getting error what is the solution. |
Use the manual installation guide as reference :)
… Am 07.07.2017 um 14:11 schrieb BismaGhaffar ***@***.***>:
Few month ago i run this on my window via npm start command easily but now i am getting error what is the solution.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
windows cmd cannot run sh by default, take a look here https://forum.magicmirror.builders/topic/2191/won-t-start-on-windows-after-upgrade |
Hello,
I have noticed that after running for v2 Branch for extended periods of time (basically anything longer than 10 hours), the application decides to force quit, itself.
It quits with the following lines in the console when running "npm start":
I have tested this on the lastest version I had which was yesterday, but due to the amount of time required to make this occur, I can't be on the most up to date version constantly. I have done a git pull now, and will test again with todays code release.
The text was updated successfully, but these errors were encountered: