[Support] Linuxserver.io - Plex Media Server


Recommended Posts

On 5/25/2022 at 2:23 AM, goodyear said:

Latest Linuxserver Plex container release introduces permission errors in unRAID (maybe related to 6.10?).

 

Upgraded to 6.10.1 a few days ago with no major issues, Plex was working fine last night, and this morning Plex from Linuxserver stopped working with permission errors:

 

****** PLEX MEDIA SERVER CRASHED, CRASH REPORT WRITTEN: /config/Library/Application Support/Plex Media Server/Crash Reports/1.26.2.5797-5bd057d2b/PLEX MEDIA SERVER/48e796f0-ca99-405e-6d6b99b6-b191e5f8.dmp
Starting Plex Media Server.
libc++abi: terminating with uncaught exception of type std::runtime_error: Codecs: Initialize: 'boost::filesystem::create_directory: Permission denied: "/config/Library/Application Support/Plex Media Server/Codecs/994f4ee-4302-linux-x86_64"'

 

I have containers on auto-update, and the Plex container updated during the night, so I rolled back to version 1.26.1 (edited repository to linuxserver/plex:1.26.1) and no more errors.

 

Question is if this is an issue on Linuxserver's Plex latest release, or if 6.10 introduced something which breaks new releases?

 

EDIT: Reddit made me aware that the error was local, ran the following as a user script and it solved the permission issue, will check back if it reappears:

 

#!/bin/sh

 

for dir in "/mnt/user/appdata/plex/"

do

`echo $dir` `chmod -R ug+rw,ug+X,o-rwx $dir`

chown -R nobody:users $dir

done

 

This fixed this for me.

After Unraid updated to 6.10.3. plex blew up (linuxserver build), same permissions error.

 

plex log

 

***** PLEX MEDIA SERVER CRASHED, CRASH REPORT WRITTEN: /config/Library/Application Support/Plex Media Server/Crash Reports/1.27.1.5916-6b0e31a64/PLEX MEDIA SERVER/d8e7a7b9-9c5f-44c4-0b0ab38c-bc4b6eac.dmp
Warning:/config/Library/Application Support/Plex Media Server/Crash Reports/1.27.1.5916-6b0e31a64 is not found or not a directory.
Starting Plex Media Server.
libc++abi: terminating with uncaught exception of type std::runtime_error: Codecs: Initialize: 'boost::filesystem::create_directory: Permission denied: "/config/Library/Application Support/Plex Media Server/Codecs/d53cb63-4323-linux-x86_64"'
****** PLEX MEDIA SERVER CRASHED, CRASH REPORT WRITTEN: /config/Library/Application Support/Plex Media Server/Crash Reports/1.27.1.5916-6b0e31a64/PLEX MEDIA SERVER/294892d2-f0ad-4821-cfce8ba1-9b610837.dmp
Warning:/config/Library/Application Support/Plex Media Server/Crash Reports/1.27.1.5916-6b0e31a64 is not found or not a directory.
Starting Plex Media Server.
libc++abi: terminating with uncaught exception of type std::runtime_error: Codecs: Initialize: 'boost::filesystem::create_directory: Permission denied: "/config/Library/Application Support/Plex Media Server/Codecs/d53cb63-4323-linux-x86_64"'
****** PLEX MEDIA SERVER CRASHED, CRASH REPORT WRITTEN: /config/Library/Application Support/Plex Media Server/Crash Reports/1.27.1.5916-6b0e31a64/PLEX MEDIA SERVER/12cbb93b-0e16-4a1b-7e945588-80593f08.dmp
Warning:/config/Library/Application Support/Plex Media Server/Crash Reports/1.27.1.5916-6b0e31a64 is not found or not a directory.
Starting Plex Media Server.
libc++abi: terminating with uncaught exception of type std::runtime_error: Codecs: Initialize: 'boost::filesystem::create_directory: Permission denied: "/config/Library/Application Support/Plex Media Server/Codecs/d53cb63-4323-linux-x86_64"'
****** PLEX MEDIA SERVER CRASHED, CRASH REPORT WRITTEN: /config/Library/Application Support/Plex Media Server/Crash Reports/1.27.1.5916-6b0e31a64/PLEX MEDIA SERVER/f4f53198-318d-4f74-ab9f29a2-83e66ae8.dmp
Warning:/config/Library/Application Support/Plex Media Server/Crash Reports/1.27.1.5916-6b0e31a64 is not found or not a directory.
Starting Plex Media Server.
libc++abi: terminating with uncaught exception of type std::runtime_error: Codecs: Initialize: 'boost::filesystem::create_directory: Permission denied: "/config/Library/Application Support/Plex Media Server/Codecs/d53cb63-4323-linux-x86_64"'
****** PLEX MEDIA SERVER CRASHED, CRASH REPORT WRITTEN: /config/Library/Application Support/Plex Media Server/Crash Reports/1.27.1.5916-6b0e31a64/PLEX MEDIA SERVER/cb745128-fe3f-4c35-28a8abaf-68b40732.dmp
Warning:/config/Library/Application Support/Plex Media Server/Crash Reports/1.27.1.5916-6b0e31a64 is not found or not a directory.
Starting Plex Media Server.
libc++abi: terminating with uncaught exception of type std::runtime_error: Codecs: Initialize: 'boost::filesystem::create_directory: Permission denied: "/config/Library/Application Support/Plex Media Server/Codecs/d53cb63-4323-linux-x86_64"'
****** PLEX MEDIA SERVER CRASHED, CRASH REPORT WRITTEN: /config/Library/Application Support/Plex Media Server/Crash Reports/1.27.1.5916-6b0e31a64/PLEX MEDIA SERVER/a9def54c-8084-41be-25acc19b-e2ff0d55.dmp
Warning:/config/Library/Application Support/Plex Media Server/Crash Reports/1.27.1.5916-6b0e31a64 is not found or not a directory.
Starting Plex Media Server.

 

Edited by Retched1
Link to comment

For some reason my Plex docker will not start now, this is the output whenI try to start it.

 

 Not sure why it is saying unknown paramater 'Nvidia' I've had a p2000 card in my server working with Plex just fine for ages.

 

I managed to get Plex running by removing the Nvidia parameters and am currently using Quicksync, just not sure what happened to the Nvidia plugin or driver?

 

Any help would be appreciated.

 

 

Managed to get the Nvidia driver reinstalled and everything is back to norma, was just spooked as this has never happened to me in using unRAID for 6 years and at least four with this P2000.

Screen Shot 2022-06-29 at 1.51.48 PM.png

Edited by ashman70
Link to comment
Posted (edited)

Hi All,

 

Is it me or has something started cause the plex db to corrupt on a regular basis ??

 

I have to either repair or use a backup almost weekly now.

 

I have all of my meta and app data on a separate SSD (Using unassigned devices) & reference it using "appdata: /mnt/disks/plexssd/" in the docker settings and im on version 6.10.3 of unraid.

 

I do use Plex meta manager, but i dont think its that.

 

I turned off nightly docker updates to weekly in case that was the issue, but the DB still corrupts on a weekly basis, sometimes within hours of my repairing it!

 

Is it just me or have others started noticing this behavior ?? 

Edited by BigDanT
Link to comment
On 6/29/2022 at 10:13 AM, ashman70 said:

For some reason my Plex docker will not start now, this is the output whenI try to start it.

 

 Not sure why it is saying unknown paramater 'Nvidia' I've had a p2000 card in my server working with Plex just fine for ages.

 

I managed to get Plex running by removing the Nvidia parameters and am currently using Quicksync, just not sure what happened to the Nvidia plugin or driver?

 

Any help would be appreciated.

 

 

Managed to get the Nvidia driver reinstalled and everything is back to norma, was just spooked as this has never happened to me in using unRAID for 6 years and at least four with this P2000.

Screen Shot 2022-06-29 at 1.51.48 PM.png

 

I had the same thing happen when I went from 6.10.1 to 6.10.3 - The nvidia plugin had to be deleted and re-installed. once that was done, I would get this error. An extra reboot (likely so the NVidia driver can load properly) fixed it and I was able to re-add the Plex docker container from the old template.

Link to comment
Posted (edited)

Friday I fixed my DB.

 

Tonight it corrupted again 6 days later !!

 

Any help would be greatly received ?

 

I used to run my Plex server on an intel nuc windows machine for like 3 years solid and never had these types of issues.


would love to know if it’s my unraid set or a bug in unraid or the docker or something I’m doing with either backups or PMM ?

 

Help !

 

Thanks

Edited by Big Dan T
Link to comment

I am in the process of creating a backup-scheme for all my servers and data, but when it comes to plex I am not sure what would be the best way. I was thinking of maybe using rsync and just copy everything to my backup server. But I se that my metadata-folder is 22Gb and hundreds of thousands (if not millions) of tiny files. I guess this is just things like thumbnails etc? Is this something that I need to backup? If I need to do a disaster recovery I would like to get my plex up and running with all the userdata and watchprogress etc, but I don't have any problems re-downloading things like thumbnails and other non-essential data. I have a 1gbit internet connection and a beefy server. My total appdata/plex folder is 33GB. 22GB of this is the /appdata/plex/Library/Application Support/Plex Media Server/Metadata folder. Can I just exclude this folder from the backup without breaking it? 

Link to comment

Posting to document my findings and possibly save other people time if they run into the same thing.

 

Hardware transcoding (quicksync) doesn’t work in 1.27.2.5929 when HDR tone mapping is enabled. Hardware transcoding works when disabling HDR tone mapping.

 

Reverting back to 1.27.1.5916 restores full functionality. Hardware transcoding works with HDR tone mapping enabled.

  • Upvote 2
Link to comment
On 7/16/2022 at 4:28 PM, FDM80 said:

Posting to document my findings and possibly save other people time if they run into the same thing.

 

Hardware transcoding (quicksync) doesn’t work in 1.27.2.5929 when HDR tone mapping is enabled. Hardware transcoding works when disabling HDR tone mapping.

 

Reverting back to 1.27.1.5916 restores full functionality. Hardware transcoding works with HDR tone mapping enabled.

 

Same problem here, disabling tone mapping and hardware transcoding works again.

Link to comment
  • 2 weeks later...

Having an Issue. In plex I sort the movies by duplicates. I have allow deletion turned on in the settings. I go to get info for the duplicate movie delete one of the files. That movie disappears from the list. A few minute's later it shows back up. Its not actually deleting the files. Need some help on what is causing this.

Link to comment

Having an issue with any form of playback since the 1.28.0 update. Seems to be a transcoding issue but has something to do with a codec? Not 100% sure so I'm attaching the log file from plex itself here and posting what I see in the console while trying to playback.

 

No settings or permissions were changed by myself that caused the issue. Has been working flawlessly since setup many years ago.

 

Aug 03, 2022 12:13:50.687 [0x14ad17fe1b00] Error — [Req#572/Transcode] [FFMPEG] - Cannot load libcuda.so.1

 

Aug 03, 2022 12:13:50.694 [0x14ad17fe1b00] Error — [Req#572/Transcode] [FFMPEG] - Could not dynamically load CUDA

 

Aug 03, 2022 12:14:03.001 [0x14ad1849cb00] Error — [Req#63b/Transcode/1CD7D580-4AD7-415F-A940-2E2274960D75/9e85868d-51ba-4eb9-bd25-29b6d9c44bd5] [eac3_eae @ 0x1528ea5bb600] error reading output

 

Aug 03, 2022 12:14:06.000 [0x14ad1849cb00] Error — [Req#641/Transcode/1CD7D580-4AD7-415F-A940-2E2274960D75/9e85868d-51ba-4eb9-bd25-29b6d9c44bd5] [eac3_eae @ 0x1528ea5bb600] EAE timeout! EAE not running, or wrong folder? Could not read '/tmp/pms-59fc5c1c-0190-4e62-9601-842055dac868/EasyAudioEncoder/Convert to WAV (to 8ch or less)/1CD7D580-4AD7-415F-A940-2E2274960D75_539-0-2.wav'

 

Aug 03, 2022 12:14:06.001 [0x14ad1849cb00] Error — [Req#647/Transcode/1CD7D580-4AD7-415F-A940-2E2274960D75/9e85868d-51ba-4eb9-bd25-29b6d9c44bd5] Error while decoding stream #0:1: I/O error

Plex Media Server Logs_2022-08-03_12-13-03.zip

Edited by Brandonb1987
Link to comment

Plex no longer will work:

 

1) Power outage today - Server connected to UPS and shutdown was successful. No warnings or errors on restart.

2) All dockers came back just fine, plex was slow to start (not uncommon for me)

3) after 45 min I noticed it was still not loading the WebUI, but appeared to be running. (sometimes I need to restart app for it to load, still not uncommon)

4) After a few stop/start and restarts, still no luck - this is new for me

5) looking online and previously in this thread I tried to repair a corrupt db.

6) Followed along with SpaceInvaderOne video 

7) On db check no errors were reported and showed ok - I continued on anyway, just in case

8)-Still no luck

9) Pulled down new instance of docker, set up config to match existing paths

10) Started docker and WebUI was accessible

11) Changed certain paths in original config to match new pull (like 'Container Version - Docker') - No luck

12) Moved over library from non-working version and tried again - No luck

 

I feel like something in my library is causing an issue but I am not sure what. I have been using plex for years and would like to retain my watch history, and would also like to not need to rescan all of my media... Are there any ideas of things to try here? The logs show no errors 

Container Log:

s6-svwait: fatal: timed out
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service init-services: stopping
s6-rc: info: service 00-legacy: stopping
s6-rc: info: service init-services successfully stopped
s6-rc: info: service init-mods-end: stopping
s6-rc: info: service 00-legacy successfully stopped
s6-rc: info: service init-mods-end successfully stopped
s6-rc: info: service init-mods-package-install: stopping
s6-rc: info: service init-mods-package-install successfully stopped
s6-rc: info: service init-mods: stopping
s6-rc: info: service init-mods successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service 00-legacy: starting
s6-rc: info: service 00-legacy successfully started
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/01-envfile
cont-init: info: /etc/cont-init.d/01-envfile exited 0
cont-init: info: running /etc/cont-init.d/01-migrations
cont-init: info: /etc/cont-init.d/01-migrations exited 0
cont-init: info: running /etc/cont-init.d/02-tamper-check
cont-init: info: /etc/cont-init.d/02-tamper-check exited 0
cont-init: info: running /etc/cont-init.d/10-adduser
cont-init: info: /etc/cont-init.d/10-adduser exited 0
cont-init: info: running /etc/cont-init.d/40-chown-files
cont-init: info: /etc/cont-init.d/40-chown-files exited 0
cont-init: info: running /etc/cont-init.d/45-plex-claim
cont-init: info: /etc/cont-init.d/45-plex-claim exited 0
cont-init: info: running /etc/cont-init.d/50-gid-video
cont-init: info: /etc/cont-init.d/50-gid-video exited 0
cont-init: info: running /etc/cont-init.d/60-plex-update
cont-init: info: /etc/cont-init.d/60-plex-update exited 0
cont-init: info: running /etc/cont-init.d/90-custom-folders
cont-init: info: /etc/cont-init.d/90-custom-folders exited 0
cont-init: info: running /etc/cont-init.d/99-custom-scripts
cont-init: info: /etc/cont-init.d/99-custom-scripts exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service init-mods: starting
s6-rc: info: service init-mods successfully started
s6-rc: info: service init-mods-package-install: starting
s6-rc: info: service init-mods-package-install successfully started
s6-rc: info: service init-mods-end: starting
s6-rc: info: service init-mods-end successfully started
s6-rc: info: service init-services: starting
s6-rc: info: service init-services successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun plex (no readiness notification)
s6-rc: info: service legacy-services successfully started
s6-rc: info: service 99-ci-service-check: starting
s6-rc: info: service 99-ci-service-check successfully started
Failed to load preferences at /config/Library/Application Support/Plex Media Server/Preferences.xml
Failed to load preferences at /config/Library/Application Support/Plex Media Server/Preferences.xml
[migrations] started
[migrations] no migrations found
usermod: no changes

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/


Brought to you by linuxserver.io
-------------------------------------

To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid:    99
User gid:    100
-------------------------------------

Docker is used for versioning skip update check
[custom-init] no custom files found exiting...
[ls.io-init] done.
Starting Plex Media Server.
 

 

If I can provide anything else to assist in the diagnosis please let me know. thanks!

Edited by gcalaway
Edit made for clarification on #3
Link to comment
On 8/11/2022 at 8:05 AM, gcalaway said:

Plex no longer will work:

 

1) Power outage today - Server connected to UPS and shutdown was successful. No warnings or errors on restart.

2) All dockers came back just fine, plex was slow to start (not uncommon for me)

3) after 45 min I noticed it was still not loading the WebUI, but appeared to be running. (sometimes I need to restart app for it to load, still not uncommon)

4) After a few stop/start and restarts, still no luck - this is new for me

5) looking online and previously in this thread I tried to repair a corrupt db.

6) Followed along with SpaceInvaderOne video 

7) On db check no errors were reported and showed ok - I continued on anyway, just in case

8)-Still no luck

9) Pulled down new instance of docker, set up config to match existing paths

10) Started docker and WebUI was accessible

11) Changed certain paths in original config to match new pull (like 'Container Version - Docker') - No luck

12) Moved over library from non-working version and tried again - No luck

 

I feel like something in my library is causing an issue but I am not sure what. I have been using plex for years and would like to retain my watch history, and would also like to not need to rescan all of my media... Are there any ideas of things to try here? The logs show no errors 

Container Log:

s6-svwait: fatal: timed out
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service init-services: stopping
s6-rc: info: service 00-legacy: stopping
s6-rc: info: service init-services successfully stopped
s6-rc: info: service init-mods-end: stopping
s6-rc: info: service 00-legacy successfully stopped
s6-rc: info: service init-mods-end successfully stopped
s6-rc: info: service init-mods-package-install: stopping
s6-rc: info: service init-mods-package-install successfully stopped
s6-rc: info: service init-mods: stopping
s6-rc: info: service init-mods successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service 00-legacy: starting
s6-rc: info: service 00-legacy successfully started
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/01-envfile
cont-init: info: /etc/cont-init.d/01-envfile exited 0
cont-init: info: running /etc/cont-init.d/01-migrations
cont-init: info: /etc/cont-init.d/01-migrations exited 0
cont-init: info: running /etc/cont-init.d/02-tamper-check
cont-init: info: /etc/cont-init.d/02-tamper-check exited 0
cont-init: info: running /etc/cont-init.d/10-adduser
cont-init: info: /etc/cont-init.d/10-adduser exited 0
cont-init: info: running /etc/cont-init.d/40-chown-files
cont-init: info: /etc/cont-init.d/40-chown-files exited 0
cont-init: info: running /etc/cont-init.d/45-plex-claim
cont-init: info: /etc/cont-init.d/45-plex-claim exited 0
cont-init: info: running /etc/cont-init.d/50-gid-video
cont-init: info: /etc/cont-init.d/50-gid-video exited 0
cont-init: info: running /etc/cont-init.d/60-plex-update
cont-init: info: /etc/cont-init.d/60-plex-update exited 0
cont-init: info: running /etc/cont-init.d/90-custom-folders
cont-init: info: /etc/cont-init.d/90-custom-folders exited 0
cont-init: info: running /etc/cont-init.d/99-custom-scripts
cont-init: info: /etc/cont-init.d/99-custom-scripts exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service init-mods: starting
s6-rc: info: service init-mods successfully started
s6-rc: info: service init-mods-package-install: starting
s6-rc: info: service init-mods-package-install successfully started
s6-rc: info: service init-mods-end: starting
s6-rc: info: service init-mods-end successfully started
s6-rc: info: service init-services: starting
s6-rc: info: service init-services successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun plex (no readiness notification)
s6-rc: info: service legacy-services successfully started
s6-rc: info: service 99-ci-service-check: starting
s6-rc: info: service 99-ci-service-check successfully started
Failed to load preferences at /config/Library/Application Support/Plex Media Server/Preferences.xml
Failed to load preferences at /config/Library/Application Support/Plex Media Server/Preferences.xml
[migrations] started
[migrations] no migrations found
usermod: no changes

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/


Brought to you by linuxserver.io
-------------------------------------

To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid:    99
User gid:    100
-------------------------------------

Docker is used for versioning skip update check
[custom-init] no custom files found exiting...
[ls.io-init] done.
Starting Plex Media Server.
 

 

If I can provide anything else to assist in the diagnosis please let me know. thanks!

I'm facing the same problem after a reboot of unraid without error.

I tried reparing DB but no error

No error on log files

I tried reinstalling the docker container

Without success. I cannot access the webUI for http://localIP:32400/web

 

If someone has a solution it would be awesome

Link to comment
9 hours ago, maximushugus said:

I'm facing the same problem after a reboot of unraid without error.

I tried reparing DB but no error

No error on log files

I tried reinstalling the docker container

Without success. I cannot access the webUI for http://localIP:32400/web

 

If someone has a solution it would be awesome

After trying everything I could find online and think of, I am now rebuilding a new image of the docker from scratch and rebuilding my library... Ugh.

 

The final thing I attempted before throwing in the towel was restoring my appdata from my backup made on 08/02/22. I anticipated this would be successful but had wanted to avoid the time that would take. To my surprise upon rebuilding and starting, this error was flooding my logs.

 

Error: Unable to set up server: sqlite3_statement_backend::prepare: database disk image is malformed for SQL: PRAGMA cache_size=2000 (N4soci10soci_errorE)

 

I did just choose a new name and location for the new plex appdata folder and can restore to my old one if this gets sorted. would really love to as I have some playlists and metadata I really do not see myself doing again. :) 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.