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.

Guilherme
  • 131
  • 5

0 Answers0