1

I had a Raspberry Pi 2 Model B that I used as a media center, running Plex Media Server, connected to a NAS, where the media was stored, and a couple of scripts that would run once an hour (CRON jobs).

So I decided to upgrade to a Pi 3 Model B+, and install basically the same setup. Since I had to download everything again, OS and applications are most likely to have newer versions than my previous setup (although I used to update packages regularly).

But now, my Pi keeps hanging/freezing/crashing every day, roughly at the same time. And the problem is that I have no idea how to debug this.

In this Gist there are some excerpts of /var/log/syslog showing the last ~30 lines before this happening in the last week.

Setup:

  • Raspberry Pi 3 Model B+
  • 32GB SanDisk microSD card (the same I used in the previous setup)
  • Wired LAN (also the same)

  • Raspbian Stretch Lite Linux pi 4.14.34-v7+ #1110 SMP Mon Apr 16 15:18:51 BST 2018 armv7l GNU/Linux

  • Plex Media Server (installation guide)
  • Sonarr (installation guide)
  • Transmission (apt-get)
  • Two CRON jobs that I disabled, and the freezing still occurs:
    • ISPMonitor: runs a speed test every hour; tweets the results
    • Subtitle downloader: sweeps my video library, search and download missing subtitles

I don't really know how to debug this further. It's hard to debug anything after it's frozen, because I can only access it via SSH (it's not plugged into a monitor), and SSH won't connect.

What can I do?

Update

I included in the Gist today's log, including everything from time 00:00:00 until the final log at 02:17:05.

I also noticed that the board seems to be quite hot and I go pick to unplug and re-plug the power cord. I started logging its temperature every minute and I will analyse it over time to verify if it might be related.

Update 2 After further experimenting, I pinned Plex Media Server as the cause of the freezing. I've disabled one service at a time, and then after verifying that it would not freeze when PMS was disabled, I reenabled everything but PMS, and waited for the next day: it was still working.

Now I was browsing through PMS's settings, and noticed that it had Scheduled Tasks programmed to start at 2 AM, and now it kind of makes a lot of sense. Now I'll try to tune these settings, look for help at Plex forums and try to understand why exactly it's crashing during one of these tasks.

  • Have you looked at this post? Different question, but the answers may be helpful. – Seamus Jul 1 '18 at 19:27
  • @Seamus the temperature seems to be pretty consistent at a 47°C - 50°C range. I'll start logging the core's voltage and clock – Guilherme Jul 1 '18 at 21:44
  • I'm confused. I see 7 different sets of logs in the gist; what are they supposed to tell us? In log 7, you have comments that indicate you think everything is fine until line above, and then said you thought the Pi had rebooted. I see 3 seconds - I don't think Pi reboots that quickly. Also, you have messages that "no MTA installed"... I guess you know that you're missing the MTA? – Seamus Jul 1 '18 at 22:22
  • @Seamus they are all from the same file /var/log/syslog. I just split them by day – Guilherme Jul 1 '18 at 22:23
  • Best guess based on your Update: Heat-related problem. Have you tried not running the speed tests? Does that make any difference? Also, during the reboot, it seems things were going OK ... did it fail to reboot? – Seamus Jul 1 '18 at 22:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.