Raspberry Pi 2 Randomly Crashes/Reboots
Alright, so I have this little Pi clicking along happily (or so I thought) on a shelf in a closet. Two cables come out of it: power and ethernet. It's running a small plethora of services ranging from Google Cloud Print server to NAS.
I needed to upload some fairly large files, and on my piddly DSL it will take several days to a week nonstop at least. I've got better things to do than roast the battery in my laptop leaving it running all that time, or for that matter leaving my 650W desktop running. A 5V Pi fit the bill. So it's running Ubuntu MATE (needed to run Chrome headless for the print server), SSH and VNC. But for some reason, it crashes frequently. Just reboots with no explanation. Of course it never reboots when I'm using it. But I can't let this thing go overnight without the dern thing crashing! Pretty sure it's not RAM, using around 350MB/1GB on average. The logs weren't helpful at all. Code:
printsvr@ubuntu-printsvr:~$ last Code:
Xlib: extension "RANDR" missing on display ":1.0". |
Did you overclock it?
Is it running hot? You do know that leaving a laptop plugged in and running does not harm the battery at all, right? Or that just because your desktop has a 650 W power supply that doesn't mean it actually uses anywhere near that just sitting idling. My desktops typically use around 20 W when idling, still more than an RPi, but not bad. |
It's not overclocked, and the case is slightly warmer than the ambient air.
Leaving a laptop plugged in for days/weeks at a time will harm the battery. I'd rather not, I've roasted several doing that. Also my desktop draws about 200W minimum because of older dual Xeons. Even if I did leave it running to do do the uploads, I'd still be down a print server because you need to be logged in and have Chrome (or in my case Chromium) running to keep the print server active. |
You have it in a case? Have you checked the temperature of the processor itself? It has an on-board temp sensor, you should see what it's sitting at. I don't know about Ubuntu, but on Raspbian you can check the temp with:
Code:
/opt/vc/bin/vcgencmd measure_temp I do not agree with that article's suggestion to constantly plug/unplug your power cable as you're using the machine to keep the charge level between 40-80%. Keeping the charge under 80% is good, especially for long term storage, but the heat created by the constant charging/discharging whenever the laptop is in use (charging generates a LOT of heat) would do far more damage to the battery than bringing it up to 100% one time and then letting it float. Not to mention the VAST increase in the number of "charge cycles" created by doing that. Somebody could easily go through 2 charge cycles a day doing that, after a year they've already hit 700+ charge cycles and dropped the battery capacity significantly, when if they would have just left it plugged in and only unplugged it when necessary, they might have gone through 10-20 charge cycles (negligible capacity loss), plus an additional ~20% loss due to floating at 100% for a year. The battery would be in MUCH better condition after that year versus following that article's ridiculous advice, at least for laptops that get used on a regular basis. |
that may be caused by a weak power supply too.
|
Quote:
I don't think that leaving a laptop plugged in is pa particularly good idea as, whilst theoretically just runs from the mains, the battery will lose voltage and will charge. |
+1 power and\or cable-rating
Batteries also have a shelf life... e.g: http://superuser.com/questions/81654...-bad-if-unused |
Add: I had to mod my case from Adafruit so the power cord would go in all the way, otherwise one wrong move and reboot.
|
Quote:
|
Quote:
Quote:
|
Quote:
|
I put a heat sink with silver epoxy on mine or a fan could work if that's the problem.
|
Quote:
Anyway, got the script ready and going to let that run for a bit. Current temp is 38.5 C. EDIT: Bouncing between 37.9 and 38.5. Well below the 80 degree threshold. |
Do you have another power supply?
This is troubleshooting and that is pretty close to number one for the Pi, as I understand it. After that, how's the SD card, do you have another you could clone the system to? Could be you have a faulty Pi, that's certainly not a temperature to be concerned about, but how about some trial and error? Oh, you don't happen to be using some $2 keyboard+mouse from Walmart, do you? OK, I'm kidding a little but be sure that everything needs to be tested. |
|
All times are GMT -5. The time now is 02:29 PM. |