[Support] Linuxserver.io - Plex Media Server


Recommended Posts

No idea.  Was searching for that myself both here and on Plex.  Supposedly, it can be done but it appears to me, it wouldn't delete your files or alter them, but you'd have to go through the entire process of loading the docker image and creating paths, containers, etc....which means all your data will need to back through Metadata search and tagging.

 

Link to comment

Having an issue with my Plex docker...happens on linuxIO build, binhex and PMS.  IDK what happened but woke up this morning to Plex not running.  The log just keeps repeating "starting plex media server" forever.  I tried rebooting my server and obviously deleting the container and image.  

I didnt try deleting the plex appdata folder though because I would prefer not to have to rebuild my library and such.  That took all day yesterday.

 

Here is what the log says.

 

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 10-adduser: executing...
usermod: no changes

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


Brought to you by linuxserver.io
We gratefully accept donations at:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

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

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 40-chown-files: executing...
[cont-init.d] 40-chown-files: exited 0.
[cont-init.d] 50-gid-video: executing...
[cont-init.d] 50-gid-video: exited 0.
[cont-init.d] 60-plex-update: executing...
No update required
[cont-init.d] 60-plex-update: exited 0.
[cont-init.d] 99-custom-scripts: executing...
[custom-init] no custom scripts found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
Starting Plex Media Server.
[services.d] done.
No update required
[cont-init.d] 60-plex-update: exited 0.
[cont-init.d] 99-custom-scripts: executing...
[custom-init] no custom scripts found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
Starting Plex Media Server.
[services.d] done.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.

Link to comment
32 minutes ago, sittingmongoose said:

Having an issue with my Plex docker...happens on linuxIO build, binhex and PMS.  IDK what happened but woke up this morning to Plex not running.  The log just keeps repeating "starting plex media server" forever.  I tried rebooting my server and obviously deleting the container and image.  

I didnt try deleting the plex appdata folder though because I would prefer not to have to rebuild my library and such.  That took all day yesterday.

 

Here is what the log says.

 

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 10-adduser: executing...
usermod: no changes

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


Brought to you by linuxserver.io
We gratefully accept donations at:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

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

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 40-chown-files: executing...
[cont-init.d] 40-chown-files: exited 0.
[cont-init.d] 50-gid-video: executing...
[cont-init.d] 50-gid-video: exited 0.
[cont-init.d] 60-plex-update: executing...
No update required
[cont-init.d] 60-plex-update: exited 0.
[cont-init.d] 99-custom-scripts: executing...
[custom-init] no custom scripts found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
Starting Plex Media Server.
[services.d] done.
No update required
[cont-init.d] 60-plex-update: exited 0.
[cont-init.d] 99-custom-scripts: executing...
[custom-init] no custom scripts found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
Starting Plex Media Server.
[services.d] done.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.

Check your Plex server log. Likely corrupt database

Link to comment
1 hour ago, aptalca said:

Check your Plex server log. Likely corrupt database

May 09, 2019 10:56:41.632 [0x1525ab617700] INFO - Plex Media Server v1.15.5.994-4610c6e8d - Docker Docker Container x86_64 - build: linux-x86_64 debian - GMT -04:00
May 09, 2019 10:56:41.632 [0x1525ab617700] INFO - Linux version: 4.19.37-Unraid, language: C
May 09, 2019 10:56:41.632 [0x1525ab617700] INFO - Processor Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
May 09, 2019 10:56:41.632 [0x1525ab617700] INFO - /usr/lib/plexmediaserver/Plex Media Server
May 09, 2019 10:56:41.631 [0x1525b7c9f740] DEBUG - BPQ: [Idle] -> [Starting]
May 09, 2019 10:56:41.632 [0x1525b7c9f740] DEBUG - FeatureManager: Using cached data for features list
May 09, 2019 10:56:41.632 [0x1525b7c9f740] DEBUG - Opening 20 database sessions to library (com.plexapp.plugins.library), SQLite 3.26.0, threadsafe=1
May 09, 2019 10:56:41.650 [0x1525b7c9f740] DEBUG - Running migrations. (EPG 0)
May 09, 2019 10:56:41.658 [0x1525b7c9f740] ERROR - SQLITE3:(nil), 11, database corruption at line 65066 of [bf8c1b2b7a]
May 09, 2019 10:56:41.658 [0x1525b7c9f740] ERROR - SQLITE3:(nil), 11, statement aborts at 10: [select max(max(metadata_items.changed_at),max(metadata_items.resources_changed_at)) from metadata_items] database disk image is malformed
May 09, 2019 10:56:41.659 [0x1525b7c9f740] ERROR - Database corruption: sqlite3_statement_backend::loadOne: database disk image is malformed

 

 

Thats in the server logs.  Any way to fix this?  I do kinda have a backup but its not pretty.

Link to comment
6 hours ago, sittingmongoose said:

May 09, 2019 10:56:41.632 [0x1525ab617700] INFO - Plex Media Server v1.15.5.994-4610c6e8d - Docker Docker Container x86_64 - build: linux-x86_64 debian - GMT -04:00
May 09, 2019 10:56:41.632 [0x1525ab617700] INFO - Linux version: 4.19.37-Unraid, language: C
May 09, 2019 10:56:41.632 [0x1525ab617700] INFO - Processor Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
May 09, 2019 10:56:41.632 [0x1525ab617700] INFO - /usr/lib/plexmediaserver/Plex Media Server
May 09, 2019 10:56:41.631 [0x1525b7c9f740] DEBUG - BPQ: [Idle] -> [Starting]
May 09, 2019 10:56:41.632 [0x1525b7c9f740] DEBUG - FeatureManager: Using cached data for features list
May 09, 2019 10:56:41.632 [0x1525b7c9f740] DEBUG - Opening 20 database sessions to library (com.plexapp.plugins.library), SQLite 3.26.0, threadsafe=1
May 09, 2019 10:56:41.650 [0x1525b7c9f740] DEBUG - Running migrations. (EPG 0)
May 09, 2019 10:56:41.658 [0x1525b7c9f740] ERROR - SQLITE3:(nil), 11, database corruption at line 65066 of [bf8c1b2b7a]
May 09, 2019 10:56:41.658 [0x1525b7c9f740] ERROR - SQLITE3:(nil), 11, statement aborts at 10: [select max(max(metadata_items.changed_at),max(metadata_items.resources_changed_at)) from metadata_items] database disk image is malformed
May 09, 2019 10:56:41.659 [0x1525b7c9f740] ERROR - Database corruption: sqlite3_statement_backend::loadOne: database disk image is malformed

 

 

Thats in the server logs.  Any way to fix this?  I do kinda have a backup but its not pretty.

Plex does automatic backups of its database every three days. Their website/forum has instructions on how to restore

Link to comment

I just moved my plex server to unraid and am having issues streaming 4k material to a Nvidia Shield now.  The movie will start but it pauses multiple times.  Usually it just freezes for a few seconds and then starts again.  Occasionally I'll get a message saying "the server isn't fast enough".  This problem did not exist when I was running the plex server on a Windows 10 PC.  Both the Shield and the unraid sever are wired into a gigabit switch.  The shield shows that it is using direct play so it isn't a transcoding speed issue. 

 

The unraid server specs are:

Gigabyte GA-7PESH2

E5-2650 V2 x 2

128GB ram

1TB SSD cache drive

10TB Western Digital parity drive

10 TB Western Digital data drive x 2

 

Both nic's on the motherboard are plugged into the swtich and set to bonded active / failover.  

 

I can post this in a gernarl plex forum but since everthing worked great when I had plex server running on a Windows 10 PC and the issue only started when I moved it to an unraid docker I thought I would start here.  I've looked at the logs and haven't found anything useful but I may not be looking in the right place so if logs would help, please let me know which one to post.


 

Link to comment
38 minutes ago, Illini2000 said:

Both nic's on the motherboard are plugged into the swtich and set to bonded active / failover. 

Are you sure your server networking is working correctly? Maybe try simplifying by using only one nic/port and checking to see if it is actually getting a GBe connection.

Link to comment

I'll try taking it down to one nic and see what happens.  I am getting 120MB transfer speeds when pushing files to the server or pulling them off from my Windows PC so I thought I should be good there.  Sometimes I'll go an hour without an issue, sometimes it happens every couple minutes.  

Link to comment

I feel like a child relearning computing all over again... There's just 2 dockers that worked frictionless so far...

 

That being said, this might not be a Docker issue... Basically what happened is this:

 

I have a PMS already set up on my Mac, now I want to move its settings, play counts, media to my new unRAID server and use Plex in a docker, this docker.

 

I followed this tutorial: https://forums.plex.tv/t/migrate-from-osx-to-ubuntu/168608/13

 

And after restoring my profile folder to the correct location and putting my media in the share that is mapped to the container path /media I cannot access my server anymore whatsoever.

 

It's certainly started and remains started, but when I click on it and go to WebUI all I get is a nasty "Cannot connect" page. :(

 

Before restoring my old profile the server WAS accessible using the same address, port, browser constellation... :/

Link to comment
4 minutes ago, Glassed Silver said:

Basically what happened is this

See if you can setup this plex docker from scratch, without trying to migrate anything. If that works, you can compare the plex appdata of that new install with the plex library you are trying to migrate and maybe get a better idea what needs to be done for the migration.

Link to comment
1 hour ago, trurl said:

See if you can setup this plex docker from scratch, without trying to migrate anything. If that works, you can compare the plex appdata of that new install with the plex library you are trying to migrate and maybe get a better idea what needs to be done for the migration.

I still have my old docker appdata folder for Plex, I could compare the two folders. Any file in particular I should take a more intensive look at? Like a file the configs the internal webserver or something?

 

Before the migration I could access the WebUI just fine...

 

Edit: I think I meant too well for my Plex config... I carried over ALL entries of the plist to the XML. The conversion itself was alright, because I did it manually one by one, but I should have only replaced the entries' values that the default Preferences.xml file had. After that fix permissions (unRAID > Tools > New Permissions | select all disks and feel free to only fix the appdata share). Fire up Plex, boom! Works!

 

The rest of the guide I linked works perfectly fine. Importantly, take care of the location of your media content as outlined there. Keep old places in the settings, let it all scan and then I think you're free to remove the old locations.

 

Now my weekend project shall be to migrate my iTunes library to Plex. *gulp* Going cross-plat, cross-device, cross-application, cross-anything. That's gonna be a wild ride. :D

Edited by Glassed Silver
solved it!
Link to comment
23 hours ago, trurl said:

Are you sure your server networking is working correctly? Maybe try simplifying by using only one nic/port and checking to see if it is actually getting a GBe connection.

Went down to one nic and the problem continued.  I setup Kodi on the Shield to directly access the file shares on the Unraid server and that seems to work without any isssues.  Looks like something in Plex.  I try to troubleshoot more this weekend.

Link to comment
15 hours ago, Illini2000 said:

Went down to one nic and the problem continued.  I setup Kodi on the Shield to directly access the file shares on the Unraid server and that seems to work without any isssues.  Looks like something in Plex.  I try to troubleshoot more this weekend.

I’m having the same issue as you. My 4K files are stuttering, freezing, and pausing. It was working perfectly fine before the latest Unraid update. No one in my family can watch any 4K movie since the update. 

Link to comment

I'm having some serious problems with running plex in the Unraid environment, I've tried both this linuxserver, and the plexinc images, both always end up with a corrupt database. How are you supposed to run this to be able to use your PMS? I've run it for many many years on my server but found Unraid recently and thought I'd give it a go, but it seems pretty useless if this is going to be happen all the time (not to mention that it goes to 103% cpu usage all the time making everything unusable...)

Link to comment
1 hour ago, pether said:

I'm having some serious problems with running plex in the Unraid environment, I've tried both this linuxserver, and the plexinc images, both always end up with a corrupt database. How are you supposed to run this to be able to use your PMS? I've run it for many many years on my server but found Unraid recently and thought I'd give it a go, but it seems pretty useless if this is going to be happen all the time (not to mention that it goes to 103% cpu usage all the time making everything unusable...)

Since many people are using this without these complaints, perhaps it is something with your setup.

 

Go to Tools - Diagnostics and attach the complete diagnostics zip file to your next post. Also, your docker run command as explained here:

 

https://forums.unraid.net/topic/57181-real-docker-faq/#comment-564345

 

Link to comment
16 minutes ago, trurl said:

Since many people are using this without these complaints, perhaps it is something with your setup.

 

Go to Tools - Diagnostics and attach the complete diagnostics zip file to your next post. Also, your docker run command as explained here:

 

https://forums.unraid.net/topic/57181-real-docker-faq/#comment-564345

 

I've got a Primergy TX100 s3, 10tb parity disk and a 10tb data disk, and last night i added a 500gb cache disk. I've done no special config for the dockers, only linked them to a media share, else everything default.
First corruption was sometime during the night after first run on linuxserver image, second one was also on same image, but i turned off automatic update when adding media, still corrupted database image. Third time i moved to plexinc image and it was online for almost 2 days, but resulting in corruption a few hours ago. Trying to fix the corruption by tips given by plexinc doesn't solve anything, and causes the docker not to be able to run at all.

After first corruption i saved plex logs via tautulli and they are filled with lines such as this, other corruptions have had other statements and lines:

Quote

May 17, 2019 05:39:39.144 [0x153c097eb700] ERROR - SQLITE3:(nil), 11, database corruption at line 79051 of [bf8c1b2b7a]
May 17, 2019 05:39:39.144 [0x153c097eb700] ERROR - SQLITE3:(nil), 11, statement aborts at 9: [select statistics_bandwidth.id as 'statistics_bandwidth_id', statistics_bandwidth.account_id as 'statistics_bandwidth_account_id', statistics_bandwidth.device_id as 'statistics_bandwidt
May 17, 2019 05:39:39.144 [0x153c097eb700] ERROR - Thread: Uncaught exception running async task which was spawned by thread 0x153c6293d700: sqlite3_statement_backend::loadOne: database disk image is malformed
May 17, 2019 05:39:39.144 [0x153bde7f3700] ERROR - SQLITE3:(nil), 11, database corruption at line 79051 of [bf8c1b2b7a]
May 17, 2019 05:39:39.144 [0x153bde7f3700] ERROR - SQLITE3:(nil), 11, statement aborts at 9: [select statistics_bandwidth.id as 'statistics_bandwidth_id', statistics_bandwidth.account_id as 'statistics_bandwidth_account_id', statistics_bandwidth.device_id as 'statistics_bandwidt
May 17, 2019 05:39:39.144 [0x153bde7f3700] ERROR - Thread: Uncaught exception running async task which was spawned by thread 0x153c6273c700: sqlite3_statement_backend::loadOne: database disk image is malformed

 

tower-diagnostics-20190519-1139.zip

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.