I have (had) a Discord bot living on my Raspbery Pi 3 B+, and all was well for about a week. Then the bot crashed mysteriously (and the Pi stopped responding to SSH). I plugged the Pi into a monitor and poked around the filesystem a bit and everything seemed normal, but when I went to dig into raspi-config to see if anything looked funny it showed an empty blue screen instead of the settings dialog and stopped responding to input altogether. No command line, no "quit" command, no nothing.
I've seen a few fixes on the Internet for ssh/WiFi not working, but testing them sort of relies on the Pi being functional so my main concern is the blank screen and apparent crash. I'm reluctant to pull the plug and start it up again because I know that can brick the OS but I'm suspecting the damage might already be done.
(Googling around suggested the Pi might not be getting enough power, but I'm using the power supply from the official web site so I'm doubtful that that's the issue.)
edit: turned if off and turned it on again to see what's probably some SD card corruption (see comment thread) so this likely can't be fixed in this go-round, but if/when it happens again I'd like to know what I can do about it . . .
sudo systemctl status ssh
- that'll tell you if ssh is running (or why it failed) ... other things to look at are various log files in/var/log
to see if there's any errors, the output ofsudo dmesg
to see if anything fails during boot etc - to getraspi-config
working, you could also trysudo apt-get install raspi-config --reinstall
- as long as you have a network connection of course – Jaromanda X Jul 30 '18 at 01:02not syncing: VFS: unable to mount root fs on unknown- block(179,2)
kernel panic. (Also, this trick didn't seem to do anything.)At this point I may as well just reinstall the whole thing and hope it doesn't happen again, though it'd be cool if I could figure out what happened so if/when it does I know what to do.
– Dragonite Jul 30 '18 at 03:43(179, 2)
error seemed to be caused by the image not being written to the card properly, but it was running without any issue for five days so that's also probably not it this time. – Dragonite Jul 30 '18 at 04:04