Server-linux Plex Media Scan segmentation faults

My scanner is configured to run every 15 minutes minutes, but I only see segfaults every 2-4 hours. I have 9628 videos (7.73 TB) in my libraries so maybe that is why I see the issue more often.

Hm, okay, I have more than 45.000 videos in my libraries but my Scanner runs only every hour. Should be roughly the same as in videos scanned per hour. But maybe it is more like “number of times the scanner ran”.

Was running PMS v1.16.3.1402 for a while and never had this problem. Upgraded to PMS v1.17.0.1709 and that’s when the problem started. (Skipped all the PMS versions in-between.)

My server reboots every morning at 7:30am and library scans happen every hour and when changes are detected. I got the seg fault around 12:30pm’ish.

Doesn’t make a lot of sense, but upgrading from 1.16.4 -> 1.17.0 is running fine so far.

1.16.3, - works fine
1.17.0 (verify still fails) - fails
1.16.4 (verify good) - works fine
1.17.0 (verify still fails) - no seg faults yet
1.16.5 (verify still good)

I think I understand better. This is looking more and more like a Database migrations problem.

When it faults, Please download the DB as well as the logs. Please keep separate and clearly identify it as the “faulty” one.

With the next version installed (which should work), Do the same immediately after you verify it works.

We will have a 'What fails" and “what works” database image.

I was able to download the library of versions using the filename list provided above by sica. Thanks a TON! This helped a lot.
I can confirm the plexmediaserver_1.16.5.1488-deeb86e7f_amd64.deb package does not throw these errors.
I look forward to a long term solution, as the 1.17.1709 transcoder is nothing short of phenomenal.

I can also confirm that 1.16.5 is running fine. I tried to switch to 1.16.4 and then to 1.17.0 but 1.17.0 still segfaults. So I understand you will need a copy of the database at 1.16.4 (or .5) and a “crashed” one at 1.17.0?

I don’t need a copy of the database to find the problem

What I/we need is to isolate, as tightly as possible, down to filenames which cause it.

From what I’ve been able to determine so far, odd/non-perfect naming is the issue.

I’ve scanned 120,000 files, all of which are perfect, without failure.

So far so good on 1.18.0.1846 - I installed this morning and there hasn’t been a single segfault.

or we can just try the new version :wink:

I just installed 1.18.0.1846 and I will let you know how it runs.

Version 1.17.0.1841

[36023.560904] Plex Media Scan[28489]: segfault at 300000010 ip 00007feecb018097 sp 00007feebbffe0d0 error 4 in libcrypto.so.1.0.0[7feecaf07000+204000]
[36023.560908] Code: 8b 4f 1c 31 d2 4c 89 e0 48 f7 f1 49 8b 07 48 63 ca 4c 8b 2c c8 4d 85 ed 74 37 49 8b 6f 08 48 8d 1c c8 90 49 ff 87 a0 00 00 00 <4d> 39 65 10 75 11 49 ff 47 68 49 8b 7d 00 4c 89 f6 ff d5 85 c0 74

EDIT: Also this
[53456.952543] traps: Plex Media Scan[11280] general protection ip:7faaf0e2a097 sp:7faae24fdfe0 error:0 in libcrypto.so.1.0.0[7faaf0d19000+204000]

Please try 1.18.0 ?

I was getting faults with plexmediaserver-1.17.0.1709-982421575.x86_64.rpm, but it took a while before I saw them in dmesg.

[16530.732696] traps: Plex Media Scan[2658] general protection fault ip:7f7652698097 sp:7f7637ffdfe0 error:0 in libcrypto.so.1.0.0[7f7652587000+204000]
[21330.514178] traps: Plex Media Scan[8646] general protection fault ip:7fb3e5fd9097 sp:7fb3cbdf90d0 error:0 in libcrypto.so.1.0.0[7fb3e5ec8000+204000]
[44431.000625] traps: Plex Media Scan[26742] general protection fault ip:7f8e9b43c097 sp:7f8e812620d0 error:0 in libcrypto.so.1.0.0[7f8e9b32b000+204000]

No faults with plexmediaserver-1.18.0.1846-f62172e99.x86_64.rpm so far.

This issue is resolved for me in 1.18.0.1846 . It’s been a couple of days and there isn’t a single error to be seen.
Good job! Thanks for resolving this so quickly.

Same here, 1.18.0.1846 has been stable for me over the past couple of days. ChuckPA, thanks for all your efforts in getting the issue fixed.

Any chance of getting a copy of plexmediaserver_1.14 from you. I cant find a copy and I have the player randomly stopping. The suggestion resolution is to downgrade to 1.14 as all the later version seem to have this issue. I have tried 1.15 and it still stops.

The last stable linux PMS had 1.14.1.5488 version number. Try searching for that.

@geustace I uploaded the file at https://gofile.io/?c=XdCcwi

Thanks, but another user has already provided a copy. Pity Plex don’t have an archive of previous version accessible on the download page.