-
Notifications
You must be signed in to change notification settings - Fork 50
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
Program crashed #19
Comments
Hello, Ground Control logs to STDOUT by default, so where ever you've redirected it is where your logs should be (e.g. |
I looked it up and i am not sure, I am not an expert in linux... I'd love an example. Will the log keep appending? Eventually it would get pretty big wouldn't it? I am all about headless and touchless with my pi. Perhaps this could be a feature request, to log the output to file for x days or something? |
Yes, logs on the Pi can do 2 bad things - (1) grow without attention (2) trash the SD card with needless I/O. So to solve (1) there's what's called 'log rotating'. Everyone likes to do their own policies and there's also built-in Linux tools to do that. Additionally each distribution may decide to its own how to do log rotating. A good option might be to log to syslog assuming most if not all Pi distros already logrotate that. For now as long as Ground Control is under an init script, even if it crashes due to some exceptional case, init should bring it back up. |
Yup I got it going again by restarting the init script. Just curious on
|
ok it keeps going down after a couple of days. i think i need some help redirecting output to /var/log please? |
yea mine also crashed after running for a day. not sure how to see why. could I just the command in init.d to this? command="${gc_bin} -- -config ${gc_conf} > /var/log/groundcontrol.log" and then /etc/init.d/groundcontrol restart? then the next time it crashes, there should be some output in the log |
Hey guys. It can also be very simple if you choose not to use
Note that we're sending the process to background with |
Not alone, my groundcontrol goes down every once in a while. Since my Pi has been taken down because of corrupted SD card, I'll send you the error next time it occurs on my other computer. |
Hey Candunc, which distro are you using for your RPi? |
Raspbain, Groundcontrol has been stable today, don't see a crash. Simple sudo reboot and it died (Although groundcontrol reported an 85 C spike on the last working boot) Crashes occur on non-raspberry pi versions more than the Pi, although it has crashed in the past. |
I had a ton of SD corruption with Raspbmc (like almost every other day), but since moving to Xbian (for my streamer Pi), I haven't had any for months. I suspect the 85c spike is something that has to do with the Pi's sensor, I've had it a couple times as well so I think it's a false one. I've been monitoring Groundcontrol closely since this issue and haven't gotten a crash like described yet.. hoping for a log. |
Left it running over the weekend and it crashed. In my init.d file, I have but when I check in /var/log there is no groundcontrol.log so maybe it just didn't write anything to stdout. I ran |
Crashed today ... here is my nohup.out 2013/07/02 11:36:52 Reporters: TempoDB OK. goroutine 7 [running]: goroutine 1 [IO wait]: goroutine 1404 [select]: goroutine 1407 [select]: goroutine 1406 [IO wait]: goroutine 1403 [IO wait]: |
Thanks, that's a very very useful trace. I'll be working on it right away. |
OK I think I got to the root of the problem. This may be due to network interruption or the TempoDB API being unavailable momentarily. I'll be pushing a fix in the next few minutes, as well as a new binary build. Thanks for the help guys! 👍 |
woohoo thanks jondot!! you're the man 👍 |
Binary is now up. Here's a direct link - http://jondot.github.io/groundcontrol/groundcontrol-0.0.3.tar.gz Very happy we were able to solve this :) |
also, don't forget to update init.d required start & stop ... I had to set it to $all for it to start on bootup properly. |
Yup, it's already packed in the new tarball - thanks. I've eventually taken what ever preconditions sickbeard was using: https://github.com/midgetspy/Sick-Beard/blob/master/init.ubuntu And here's the new commit: https://github.com/jondot/groundcontrol/blob/master/support/init.d/groundcontrol |
oh I see it now ... didn't realize it was in the tarball. thanks! |
Yep, I remembered your other issue just a few minutes before building the new tar so I managed to sneak it in :) |
Question: i just moved the new 0.03 version to opt/groundcontrol/groundcontrol, chmod and chown appropriately... do i need to update my init.d as well? |
Nope. if it was working before, after the rename you did looks like you're good to go. |
Happy to report that groundcontrol has been running smooth for 3 days now no issues 👍 |
Where are the logs stored so I can find out why groundcontrol suddently stopped working after a few days?
The text was updated successfully, but these errors were encountered: