Jump to content

Plex not working after upgrading to 6.10.0


Recommended Posts

After upgrading from 6.9.2 to 6.10.0 the official Plex image no longer works. The container is giving the same sqlite error message over and over

 

16:38:38[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
16:38:38[s6-init] ensuring user provided files have correct perms...exited 0.
16:38:38[fix-attrs.d] applying ownership & permissions fixes...
16:38:38[fix-attrs.d] done.
16:38:38[cont-init.d] executing container initialization scripts...
16:38:38[cont-init.d] 40-plex-first-run: executing... 
16:38:38[cont-init.d] 40-plex-first-run: exited 0.
16:38:38[cont-init.d] 45-plex-hw-transcode-and-connected-tuner: executing... 
16:38:38[cont-init.d] 45-plex-hw-transcode-and-connected-tuner: exited 0.
16:38:38[cont-init.d] 50-plex-update: executing... 
16:38:38[cont-init.d] 50-plex-update: exited 0.
16:38:38[cont-init.d] done.
16:38:38[services.d] starting services
16:38:38Starting Plex Media Server.
16:38:38[services.d] done.
16:38:39Error: Unable to set up server: sqlite3_statement_backend::loadOne: attempt to write a readonly database (N4soci10soci_errorE)
16:38:39Stopping Plex Media Server.
16:38:39kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
16:38:44Starting Plex Media Server.
16:38:44Error: Unable to set up server: sqlite3_statement_backend::loadOne: attempt to write a readonly database (N4soci10soci_errorE)
16:38:44Stopping Plex Media Server.
16:38:44kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
16:38:49[cont-finish.d] executing container finish scripts...
16:38:49[cont-finish.d] done.
16:38:49[s6-finish] waiting for services.
16:38:49[s6-finish] sending all processes the TERM signal.
16:38:52[s6-finish] sending all processes the KILL signal and exiting.
16:39:19Container stopped

 

"plex-first--run" is mentioned, maybe the container mistakenly believes this is the first time running? I do not see anything wrong in the syslog, or wrong file permissions. Have anyone else run into this problem?

 

Edit: working again after giving everyone write access to db file.

Edited by Ademar
  • Upvote 1
Link to comment
1 hour ago, Zorlofe said:

Mine is not working now either. Plex will run but it can't play any media as if it has no permissions. Where is the db file that you changed permissions on Ademar?

It was in /mnt/user/appdata/Plex-Media-Server/Library/Application Support/Plex Media Server/Plug-in Support/Databases

But in my situation I couldn't even load the webui, so it might be a different issue.

  • Like 1
Link to comment

Had a very similar issue after 6.10 upgrade for Plex. Plex (official image) could no longer find most of library, whenever you selecetd a show you would get a "Not Available" message.

 

All media was there it just could not play it.

 

Fix for me was to force apply access to the shared folder and all its subdirectories and files. I accessd via console and "chmod 777 -R tv" (tv beign the share in mnt/user and all was restored.

 

I suspect the access rights were wrong before, but docker in 6.10 maybe enforcing rules a bit better? Just a guess.

  • Like 1
Link to comment

I had the same issue after upgrading to 6.10. For some reason the permission got messed up under /mnt/user/appdata/Plex-Media-Server/ ...... root became the owner in my case. For now I reinitialized the permission to users/nobody and it fixed my issues but now I'll have to tight the permission as they're all 777 for now.

 

Anyone knows what are the standard / recommended permission for Plex? Any tool to reinitialize those permissions?

 

Thanks!

Link to comment
6 hours ago, idscomm said:

Anyone knows what are the standard / recommended permission for Plex? Any tool to reinitialize those permissions?

This is a really good question.  I think there has been a few times when I have wondered the same and done something probably wrong to get it going again.  Perhaps a few of us (or anyone with a standard install that hasn't been messed with should post back here what they have.

Mine is set to nobody.users with 777 on everything - so I guess I did that in the past some time.  I do note that preferences.xml plexmediaserver.pid and the scripts folder are set to 644.  I have a myriad of different permissions in the cache folder - which I guess is right because that will create it's defaults as it creates them.

Probably a good idea will be to set one up from scratch and have a look at those defaults.

Link to comment
10 hours ago, idscomm said:

I had the same issue after upgrading to 6.10. For some reason the permission got messed up under /mnt/user/appdata/Plex-Media-Server/ ...... root became the owner in my case. For now I reinitialized the permission to users/nobody and it fixed my issues but now I'll have to tight the permission as they're all 777 for now.

 

Anyone knows what are the standard / recommended permission for Plex? Any tool to reinitialize those permissions?

 

Thanks!

Here

 

 

Link to comment

I've just update to 6.10.1 and my Plex docker can't start.

Attach log from Plex anyone manage to resolve the Plex Issue?

 

[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] 45-plex-claim: executing...
[cont-init.d] 45-plex-claim: exited 0.
[cont-init.d] 50-gid-video: executing...
**** creating video group videoyeom with id 18 ****
**** adding /dev/dri/renderD128 to video group videoyeom with id 18 ****
**** permissions for /dev/dri/card0 are good ****
[cont-init.d] 50-gid-video: exited 0.
[cont-init.d] 60-plex-update: executing...
Docker is used for versioning skip update check
[cont-init.d] 60-plex-update: exited 0.
[cont-init.d] 90-custom-folders: executing...
[cont-init.d] 90-custom-folders: exited 0.
[cont-init.d] 99-custom-scripts: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Starting Plex Media Server.
Critical: libusb_init failed
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.

** Press ANY KEY to close this window **

Link to comment
  • 3 weeks later...
On 5/18/2022 at 10:52 AM, Ademar said:

After upgrading from 6.9.2 to 6.10.0 the official Plex image no longer works. The container is giving the same sqlite error message over and over

 

16:38:38[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
16:38:38[s6-init] ensuring user provided files have correct perms...exited 0.
16:38:38[fix-attrs.d] applying ownership & permissions fixes...
16:38:38[fix-attrs.d] done.
16:38:38[cont-init.d] executing container initialization scripts...
16:38:38[cont-init.d] 40-plex-first-run: executing... 
16:38:38[cont-init.d] 40-plex-first-run: exited 0.
16:38:38[cont-init.d] 45-plex-hw-transcode-and-connected-tuner: executing... 
16:38:38[cont-init.d] 45-plex-hw-transcode-and-connected-tuner: exited 0.
16:38:38[cont-init.d] 50-plex-update: executing... 
16:38:38[cont-init.d] 50-plex-update: exited 0.
16:38:38[cont-init.d] done.
16:38:38[services.d] starting services
16:38:38Starting Plex Media Server.
16:38:38[services.d] done.
16:38:39Error: Unable to set up server: sqlite3_statement_backend::loadOne: attempt to write a readonly database (N4soci10soci_errorE)
16:38:39Stopping Plex Media Server.
16:38:39kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
16:38:44Starting Plex Media Server.
16:38:44Error: Unable to set up server: sqlite3_statement_backend::loadOne: attempt to write a readonly database (N4soci10soci_errorE)
16:38:44Stopping Plex Media Server.
16:38:44kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
16:38:49[cont-finish.d] executing container finish scripts...
16:38:49[cont-finish.d] done.
16:38:49[s6-finish] waiting for services.
16:38:49[s6-finish] sending all processes the TERM signal.
16:38:52[s6-finish] sending all processes the KILL signal and exiting.
16:39:19Container stopped

 

"plex-first--run" is mentioned, maybe the container mistakenly believes this is the first time running? I do not see anything wrong in the syslog, or wrong file permissions. Have anyone else run into this problem?

 

Edit: working again after giving everyone write access to db file.

root@Holodeck:~# ls /mnt/user/appdata/PlexMediaServer/Library/Application\ Support/Plex\ Media\ Server/Plug-in\ Support/Databases/ -lhatotal 4.6G
drwxrwxrwx 1 nobody users 1.1K Jun 15 04:52 ./
drwxrwxrwx 1 nobody users  100 Apr  3  2020 ../
-rw-rw-rw- 1 nobody users 744M Jun 14 23:31 com.plexapp.plugins.library.blobs.db
-rw-rw-rw- 1 nobody users 734M Jun  6 02:05 com.plexapp.plugins.library.blobs.db-2022-06-06
-rw-rw-rw- 1 nobody users 735M Jun  9 02:05 com.plexapp.plugins.library.blobs.db-2022-06-09
-rw-r--r-- 1 nobody users 744M Jun 15 04:52 com.plexapp.plugins.library.blobs.db-2022-06-15
-rw-rw-rw- 1 nobody users  32K Jun 15 04:45 com.plexapp.plugins.library.blobs.db-shm
-rw-rw-rw- 1 nobody users    0 Jun 15 04:45 com.plexapp.plugins.library.blobs.db-wal
-rw-rw-rw- 1 nobody users 347M Jun 15 04:53 com.plexapp.plugins.library.db
-rw-rw-rw- 1 nobody users 332M May  7 02:04 com.plexapp.plugins.library.db-2022-05-07
-rw-rw-rw- 1 nobody users 333M May 10 02:04 com.plexapp.plugins.library.db-2022-05-10
-rw-rw-rw- 1 nobody users 335M May 13 02:01 com.plexapp.plugins.library.db-2022-05-13
-rw-rw-rw- 1 nobody users 341M May 19 02:03 com.plexapp.plugins.library.db-2022-05-19
-rw-rw-rw- 1 nobody users  32K Jun 15 05:01 com.plexapp.plugins.library.db-shm
-rw-rw-rw- 1 nobody users 1.1M Jun 15 05:01 com.plexapp.plugins.library.db-wal

 

i change this that one file too RW-RW-RW but still have the same problems with plex where library's aren't showing up.

 

below is the logs on plex 

ill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
Connection to 104.200.30.183 closed by remote host.
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
Connection to 50.116.60.94 closed by remote host.
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
[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] 40-plex-first-run: executing... 
Plex Media Server first run setup complete
[cont-init.d] 40-plex-first-run: exited 0.
[cont-init.d] 45-plex-hw-transcode-and-connected-tuner: executing... 
[cont-init.d] 45-plex-hw-transcode-and-connected-tuner: exited 0.
[cont-init.d] 50-plex-update: executing... 
[cont-init.d] 50-plex-update: exited 0.
[cont-init.d] done.
[services.d] starting services
Starting Plex Media Server.
[services.d] done.
Stopping Plex Media Server.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[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] 40-plex-first-run: executing... 
[cont-init.d] 40-plex-first-run: exited 0.
[cont-init.d] 45-plex-hw-transcode-and-connected-tuner: executing... 
[cont-init.d] 45-plex-hw-transcode-and-connected-tuner: exited 0.
[cont-init.d] 50-plex-update: executing... 
[cont-init.d] 50-plex-update: exited 0.
[cont-init.d] done.
[services.d] starting services
Starting Plex Media Server.
[services.d] done.
Stopping Plex Media Server.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[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] 40-plex-first-run: executing... 
[cont-init.d] 40-plex-first-run: exited 0.
[cont-init.d] 45-plex-hw-transcode-and-connected-tuner: executing... 
[cont-init.d] 45-plex-hw-transcode-and-connected-tuner: exited 0.
[cont-init.d] 50-plex-update: executing... 
[cont-init.d] 50-plex-update: exited 0.
[cont-init.d] done.
[services.d] starting services
Starting Plex Media Server.
[services.d] done.
Stopping Plex Media Server.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[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] 40-plex-first-run: executing... 
[cont-init.d] 40-plex-first-run: exited 0.
[cont-init.d] 45-plex-hw-transcode-and-connected-tuner: executing... 
[cont-init.d] 45-plex-hw-transcode-and-connected-tuner: exited 0.
[cont-init.d] 50-plex-update: executing... 
[cont-init.d] 50-plex-update: exited 0.
[cont-init.d] done.
[services.d] starting services
Starting Plex Media Server.
[services.d] done.
 

Edited by Coolant
Link to comment
  • 3 weeks later...
On 7/7/2022 at 1:38 AM, DonaldColeman said:

Deleted Plex Docker and reset up fixed the issue for me.

Has anyone found a way other than to delete and re-install? I was running fine then updated to 6.10.3 then the plex docker stopped working. I have tried running the permissions tool with no luck. 

 

This is my plex log,

 

Jul 08, 2022 16:13:53.863 [0x147433d75b38] INFO - /usr/lib/plexmediaserver/Plex Media Server
Jul 08, 2022 16:13:54.001 [0x14743755b0d0] INFO - Running migrations. (EPG 0)
Jul 08, 2022 16:13:54.005 [0x14743755b0d0] INFO - Running forward migration 20211027132200.
Jul 08, 2022 16:13:54.005 [0x14743755b0d0] ERROR - SQLITE3:0x80000001, 8, statement aborts at 17: [INSERT INTO schema_migrations (version) VALUES (20211027132200)] attempt to write a readonly database
Jul 08, 2022 16:13:54.005 [0x14743755b0d0] ERROR - Exception inside transaction (inside=1) (/data/jenkins/server/3535212772/Library/DatabaseMigrations.cpp:295): sqlite3_statement_backend::loadOne: attempt to write a readonly database
Jul 08, 2022 16:13:54.009 [0x14743755b0d0] ERROR - Exception thrown during migrations, aborting: sqlite3_statement_backend::loadOne: attempt to write a readonly database
Jul 08, 2022 16:13:54.435 [0x14743755b0d0] ERROR - SQLITE3:0x80000001, 8, statement aborts at 23: [update activities set finished_at=started_at where finished_at is null] attempt to write a readonly database
Jul 08, 2022 16:13:54.435 [0x14743755b0d0] ERROR - Database corruption: sqlite3_statement_backend::loadOne: attempt to write a readonly database

 

 

Edited by engin33rh3r3
Link to comment

Update: Guess it was a permission issue that Unraid 'permission tool' couldn't fix. 

 

Issued these commands via PuTTy

 

This fixed Plex:

 

Stopper Docker

ls -la /mnt/user/appdata/PlexMediaServer

(View permissions before)

sudo chmod -R 777 /mnt/user/appdata/PlexMediaServer/

(Wait a couple mins then check with)

ls -la /mnt/user/appdata/PlexMediaServer

(view permissions after)

Start Docker & Wait a couple mins before attempting to access Plex (does some sort of cleanup routine) 

 

This fixed Tautulli:

 

ls -la /mnt/user/appdata/tautulli

(View permissions before)

sudo chmod -R 777 /mnt/user/appdata/tautulli

(Wait a moment then check with)

ls -la /mnt/user/appdata/tautulli

(view permissions after)

Start Docker

 

 

 

  • Like 3
  • Upvote 1
Link to comment
  • 1 month later...

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.

×
×
  • Create New...