Plex Package infinite load, needs to be restarted at least daily (not loudness bug)

Plex Media Server Version#: 1.30.1.6497-7000
DSM Version#: DSM 7.7.1-42962 Update 1
DS920+

Hi,
For several months I have intermittently not been able to connect to my plex media server from any client.

The synology package shows as “running” but when I try to connect I get an infinite load. Restarting the plex package from within the synology interface immediately solves the problem and usually works for about a day.

About a week ago, I reinstalled plex and it fixed the issue for a few days (after I turned loudness analysis off due to the recent bug).

Loudness analysis remains off but my server still intermittently hangs when I try to connect. I have a hunch it’s a scanning issue during a scheduled task, but I’m not sure how to figure out what might be corrupted, etc.

There is a script floating around which automatically restarts the plex package when port 32400 stops listening, however this does not fix my issue, as synology thinks the plex package is still running. I just get an infinite load upon trying to connect with a client.

Logs are from after a reboot of the plex media server package; I can try to manually grab them from the synology interface after I notice the server hangs again.
Plex Media Server Logs_2023-01-06_10-54-53.zip (3.5 MB)

You’ve exceeded the number of folders Linux can monitor.

See Synology FAQ 16: Increase the number of folders Plex can monitor.

Jan 06, 2023 09:35:13.707 [0x7f6bdd34ab38] ERROR - [Notify] Failed to add watch for "/var/services/homes/ian/Google Drive/Media_Plex/Music/iTunes/iTunes Media/Music/Panchasila/Panchasila" (28: No space left on device)
Jan 06, 2023 09:35:13.708 [0x7f6bdd34ab38] ERROR - [Notify] Failed to add watch for "/var/services/homes/ian/Google Drive/Media_Plex/Music/iTunes/iTunes Media/Music/Tashi Wada" (28: No space left on device)
Jan 06, 2023 09:35:13.708 [0x7f6bdd34ab38] ERROR - [Notify] Failed to add watch for "/var/services/homes/ian/Google Drive/Media_Plex/Music/iTunes/iTunes Media/Music/Tashi Wada/Alignment" (28: No space left on device)
Jan 06, 2023 09:35:13.708 [0x7f6bdd34ab38] ERROR - [Notify] Failed to add watch for "/var/services/homes/ian/Google Drive/Media_Plex/Music/iTunes/iTunes Media/Music/Tashi Wada/Duets" (28: No space left on device)

Thank you so much, I saw that in the logs a while ago but googling didn’t result in much - as I’m nowhere near out of storage in my NAS - and missed it in the FAQ.

I’ve ran the script and will update with results after waiting a few days to verify I’m not encountering the same issue.

@ijb

To add to @FordGuy61 ,

You can pull the logs after a few minutes to confirm you no longer see the “Failed to add watch” message.

I believe I’ve fixed the above mentioned issue, but I woke up today to find my server experiencing the same behavior - infinite load when trying to access from any client, says it’s “running” on synology, I had to manually restart the synology package.

Here are the updated logs after a restart:
Plex Media Server Logs_2023-01-08_11-50-22.zip (3.3 MB)

Let me know if you have any other ideas, I haven’t seen anything in the logs but not really an expert. Thanks!

Thanks for the updated log files.

The Notify problem is fixed.

Question: You have a lot of media in /var/services/homes/ian/Google Drive. Are you using rclone or similar tools to mount Google Drive on your NAS?

It appears Plex is having a problem analyzing some of your music files as part of nightly maintenance (scheduled tasks).

There are ~165 entries such as:
Jan 08, 2023 02:11:59.996 [0x7f0430e46b38] ERROR - [Butler/MusicAnalysis] Error decoding analysis input files (exit code: 1)

Jan 08, 2023 08:11:06.978 [0x7f042c52fb38] ERROR - [MusicAnalysis] Error decoding analysis input files (exit code: 69).

Also, the log entries stop at 08:11 (end of Plex Media Server.1.log) until Plex restarts at 11:49 (top of Plex Media Server.log).

Suggestion: In Settings → Library, setAnalyze audio tracks for sonic features = never, and keep loudness analysis disabled as well.

This will stop Plex from analyzing the files during scheduled maintenance.

Then see if Plex makes it through the maintenance window overnight.

This is not a fix. Just trying to identify the problem.

Hey, thanks for the thoughtful reply!

Yes, basically my entire NAS is hybrid cloud with google drive via the built-in synology service “Cloud Sync.” All of my plex libraries are just Drive folders. It worked pretty well for a few months but might be the culprit now? Maybe I should try rclone, I’ve used it a few times but am not super experienced with it.

Yes, I bet the period from ~8-11am was when it crashed. I know when I manually restarted it, it was at 11:49.

In the meantime I have turned off Analyze audio tracks for sonic features and will report back if I get another crash.

Seems to be working now, at least thru two nights. Here are updated logs.

Plex Media Server Logs_2023-01-10_09-02-10.zip (4.1 MB)

Following up on this, I have not experienced a crash in 15 days, so it was definitely “Analyze audio tracks for sonic features”. However this is one of my favorite features about plex, so I would quite like to get it working properly. If anyone can advise on how to do this, it would be much appreciated.

Try updating to the 1.30.2.6563, which went from beta to public today.

1.30.1.6562 included a fix for loudness analysis which may have also fixed the problem with sonic analysis.

FYI, I loaded 1.30.2.6563 on my DS918+, added a library with 25 albums, and scheduled loudness & sonic analysis to run during the maintenance window.

Plex was still running this morning and the music plays OK.

Thank you! Appears this fixed the issue with sonic analysis as well. I have re-enabled both loudness and sonic analysis and everything is working great.

I regret to say it but I spoke too soon. My server has required restarts the past two mornings again, after re-enabling loudness and sonic analysis.

Please find attached updated logs:
Plex Media Server Logs_2023-02-01_11-19-25.zip (3.8 MB)

The crash at 11:07 shows up at the end of Plex Media Server.1.log.

Plex is analyzing the music files, a user logs in with a mobile phone, then the system crashes.

Plex was having trouble analyzing some of the music files right before the crash.

Two suggestions, admittingly both a bit of a shot in the dark.

  1. Remove the album Autechre - AE_LIVE (2019) from Plex. That is the album that was being analyzed when the system crashed.

    Sometimes a bad file can cause problems for Plex during analysis. I don’t know that any of the music files from that album are bad, but removing it will help test things.

  2. Delete the codecs. Plex will download latest versions when needed.

  • Stop Plex Media Server
  • In File Station (or SSH if you prefer), navigate to /PlexMediaServer/AppData/Plex Media Server/Codecs.
  • Do not delete the device ID file.
  • Delete any other folders in the Codecs folder.
  • Start Plex Media Server

Give things a try and see if Plex makes it through the night without crashing.

If it still crashes I’ll reach out for additional assistance.

Hey, thanks so much for your ongoing help with this.

I thought your above reply fixed my issues, however, Plex has again crashed twice in the past day or so, after working fine for two weeks!

Here are updated logs:
Plex Media Server Logs_2023-02-16_07-40-11.zip (3.1 MB)

Update:

Another crash, first time in four days, strangely. Had to restart the Plex package again. Below are updated logs.

Plex Media Server Logs_2023-02-20_11-12-42.zip (3.9 MB)

Hi all,

Unfortunately after working fairly consistently for the past few months, my server has been requiring a manual restart every morning again. The issue appears to be the same one as before. Any insights?

I generally keep my server updated to the latest version of plex media server. A recent update may have re-introduced the issue, as previous versions seemed to be more stable…

Logs:
Plex Media Server Logs_2023-04-18_08-15-32.zip (3.4 MB)

Hi all,

After working ok for a few months, Plex is once again requiring manual restarts daily. It seems to be related to the overnight analysis period again. I found this in the logs:

Jun 27, 2023 23:23:16.257 [140402614487864] ERROR - [MusicAnalysis] Error decoding analysis input files (exit code: 69)

I always keep my server updated to the latest stable version.

Here are the full logs:
Plex Media Server Logs_2023-06-28_05-18-31.zip (3.3 MB)

Any insight appreciated - is there another analysis bug going around? How can I figure out if any files are corrupt?

Thanks!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.