17

I know my problem is too vague to solve the root problem. Please help me on my way.

My problem
I have a Pi setup with owncloud. And a external hard drive with videos on it.
It just functions as a NAS. I use SFTP for all my connections.
But it (seemingly) crashes at random. It crashed last night when it was idling, and does so a few times a week. Pulling the plug and reinserting it creates a successful reboot.

It is up to date.

  • It's a Pi 2 Model B.
  • I tried 2 different power supplies for the Pi. Neither had problems with an older Pi model.
  • The external drive is externally powered.
  • I run the Pi headless.
  • When it crashes I can't login or reach it in any way. The power LED is lit.

My question:

  • Where should I look to narrow this down?
  • What might I do the log this behaviour?
  • Where is a place to get more specific support for this kind of broad, vague problems?

What helped so far

A comment made by Goldilocks to determine the difference if it really crashes or I just can log in.

...by using hdmi_force_hotplug=1 in /boot/config.txt; then plugging in a screen should show an input, and plugging in a keyboard and hitting the space bar a bit should show something on the screen (or not).

Now I at least see when it crashes. Follow-up question here.

Aurora0001
  • 6,357
  • 3
  • 25
  • 39
janw
  • 533
  • 3
  • 8
  • 19

3 Answers3

12

Some places to look for errors:

The command dmesg will return most of the activity of the current boot.

dmesg returns every event after the boot and how long after the boot, in seconds.

The files /var/log/messages /var/log/syslog and /var/log/kern.log will return pretty much every event you could ever need to know to figure out what happened.

goldilocks
  • 60,325
  • 17
  • 117
  • 234
Patrick Cook
  • 6,365
  • 8
  • 38
  • 63
0

It could be something that is running lots of background processes. I once think I crashed a RPI with chromium. I ran lots of instances of it and it froze. I saw the green light and it was holding its light on. disconnect the drive. if that does not work, back up anything you want to keep and reinstall the OS. if that does not work, I got nothing.

0

I don't know if this helps but I read something on Reddit the other day about how reading/writing to the SD card too quickly would result in a system hang on the Pi. I realize you have a hard drive hooked up but maybe the Pi is having the same problem? I'll try to find the post and link it.

Found it: Link to the post