Page 1 of 1

Pi 2 crashes every 2 days or so. The original lasted months.

Posted: Thu Mar 05, 2015 10:44 pm
by pwalden
I replaced a dependable Pi Model B 512MB for a Model B Pi 2.

The original was a head-less home webserver and "motion" server. It ran months at a time without issues. I'd only stop it periodically to backup the SDHC card.

The upgrade to the Pi 2 was simple, apt-get update/upgrade and a rpi-update. Copy the SDHC image over to a micro-SD card, swap in the box. and it was up and running.

However, the new set up only stays up for 2-5 days at a time and then seems to crash. I check the log/message after restart, but nothing pops out. It just seems to die. It seems to run great otherwise, cpu loading is way down. Used to run at 90% consistently. Now its 20%.

I did change the physical setup by eliminating a powered USB hub that held two 64GB USB 3 memory sticks. These were directly plugged into the PI 2's USB ports. I had heard the B+ and Pi 2 had more USB oomph. Otherwise the physical setup is identical; same power supply, LAN connect, etc.

Is there a monitoring tool that can capture system vitals to try to track down memory leaks, swap overflows, etc?

Code: Select all

pwalden@walden1 ~ $ lsusb
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. 
Bus 001 Device 004: ID 046d:c529 Logitech, Inc. diNovo Keyboard for notebooks
Bus 001 Device 005: ID 8564:1000  
Bus 001 Device 006: ID 8564:1000  
pwalden@walden1 ~ $ uname -a
Linux walden1 3.18.5-v7+ #225 SMP PREEMPT Fri Jan 30 18:53:55 GMT 2015 armv7l GNU/Linux

Re: Pi 2 crashes every 2 days or so. The original lasted mon

Posted: Thu Mar 05, 2015 10:56 pm
by DougieLawson
Try adding

Code: Select all

max_usb_current=1
to /boot/config.txt to compensate for the lack of the powered hub.

Try another rpi-update because the latest firmware/kernel is 3.18.8-v7+ & #765. There's been a lot of updates for the RPi2 including one that changes the memory split to get the full 1GB (minus the GPU share) available.

Look at memory usage, pick the top ten tasks, is one of them leaking memory?

Re: Pi 2 crashes every 2 days or so. The original lasted mon

Posted: Thu Mar 05, 2015 10:58 pm
by fruitoftheloom
pwalden wrote: apt-get update/upgrade and a rpi-update.
Did you also undertake an apt-get dist-upgrade :?:

Re: Pi 2 crashes every 2 days or so. The original lasted mon

Posted: Sat Mar 14, 2015 6:25 pm
by pwalden
Thanks for the suggestions and I will pursue them.

I can report it was a power problem. I re-added the powered hub and have not had a problem since.

So I will look into the power-related + USB solutions.

Re: Pi 2 crashes every 2 days or so. The original lasted mon

Posted: Fri Apr 24, 2015 10:02 pm
by pwalden
I had one more problem, but I do not know if it was power supply related. The microSD I as using had a hard crash. Meaning the Pi went off line and would reboot. I removed the SD card and tried to mount it on a PC via a USB card reader. The SD card was not even recognized..DOA.

Since I replaced the card I have been up 24 days counting.

I don't know if it was a bad card or whether the previous power failures caused the card failure.