Have to stop and restart Plex for it work!

Does someone know why i have to stop and restart the Plex app every time i want to use the app?

When i first built the system, it all worked perfectly fine however over time it has developed this issue …
The system isn’t always on, there could be times where i don’t use it for a week or so , So i turn off the system when im not using it ,
but every time i want to use plex i have wait for the system to boot ( granted it isn’t long ) but i have manually go in to the UI then go in to Applications and stop Plex wait a little while then turn it back on again and im good to start watching some thing …

Anyone know of a fix please ?

Have you Just taked a look on logs?

Logs ? forgive me this is still all new to me :frowning:

How do you have installed Plex?
Maybe i can help you find this info

FWIW, my system almost always does this, too, it just very rarely gets rebooted.

Plex never starts correctly at system boot, I always need to go in stop, then restart it. It’s never been a huge problem, so I didn’t bother trying to fix it.

Looking at the logs (from memory), its always in a loop restarting the main plex service in the docker container. I can’t remember what error it’s throwing at the time.

1 Like

Plex is stalled on the system , i added it from the Applications section on truenas …

I rebooted my system this morning (after applying the new .2 OS hot patch). Here’s a sample of the Plex log output after restart:

2024-09-20T10:05:54.605176988+01:00 [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
2024-09-20T10:05:54.867794011+01:00 [s6-init] ensuring user provided files have correct perms...exited 0.
2024-09-20T10:05:54.872988434+01:00 [fix-attrs.d] applying ownership & permissions fixes...
2024-09-20T10:05:54.879039033+01:00 [fix-attrs.d] done.
2024-09-20T10:05:54.881173740+01:00 [cont-init.d] executing container initialization scripts...
2024-09-20T10:05:54.887906521+01:00 [cont-init.d] 40-plex-first-run: executing... 
2024-09-20T10:05:55.376214115+01:00 Plex Media Server first run setup complete
2024-09-20T10:05:55.379540125+01:00 [cont-init.d] 40-plex-first-run: exited 0.
2024-09-20T10:05:55.379609813+01:00 [cont-init.d] 45-plex-hw-transcode-and-connected-tuner: executing... 
2024-09-20T10:05:55.384927160+01:00 [cont-init.d] 45-plex-hw-transcode-and-connected-tuner: exited 0.
2024-09-20T10:05:55.385954392+01:00 [cont-init.d] 50-plex-update: executing... 
2024-09-20T10:05:55.570729046+01:00 Could not get update version
2024-09-20T10:05:55.572430217+01:00 [cont-init.d] 50-plex-update: exited 0.
2024-09-20T10:05:55.572798867+01:00 [cont-init.d] done.
2024-09-20T10:05:55.573886287+01:00 [services.d] starting services
2024-09-20T10:05:55.589044925+01:00 [services.d] done.
2024-09-20T10:05:55.590131033+01:00 Starting Plex Media Server.
2024-09-20T10:05:55.600897932+01:00 s6-applyuidgid: fatal: unable to exec /usr/lib/plexmediaserver/Plex Media Server: No such file or directory
2024-09-20T10:05:55.607327082+01:00 Stopping Plex Media Server.
2024-09-20T10:05:55.622858672+01:00 kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
2024-09-20T10:06:00.636892066+01:00 Starting Plex Media Server.
2024-09-20T10:06:00.642002469+01:00 s6-applyuidgid: fatal: unable to exec /usr/lib/plexmediaserver/Plex Media Server: No such file or directory
2024-09-20T10:06:00.646885346+01:00 Stopping Plex Media Server.
2024-09-20T10:06:00.652116616+01:00 kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
2024-09-20T10:06:05.664625673+01:00 Starting Plex Media Server.
2024-09-20T10:06:05.669742575+01:00 s6-applyuidgid: fatal: unable to exec /usr/lib/plexmediaserver/Plex Media Server: No such file or directory
2024-09-20T10:06:05.674036689+01:00 Stopping Plex Media Server.
2024-09-20T10:06:05.679509777+01:00 kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
2024-09-20T10:06:10.692900937+01:00 Starting Plex Media Server.
2024-09-20T10:06:10.698039732+01:00 s6-applyuidgid: fatal: unable to exec /usr/lib/plexmediaserver/Plex Media Server: No such file or directory
2024-09-20T10:06:10.703330191+01:00 Stopping Plex Media Server.

And it just keeps looping through that start/stop loop. When I stop the app and restart it all is good.

FWIW, my system also complains that it can’t update the app catalog when it first boots. Manually updating it completes successfully.

I don’t know if the two are connected, but this smells of TrueNAS trying to start services before the network is available. I know that the Plex docker image always tries to download a fresh version of the main executable every time it launches.

I found this, the error Is different but give It a try

Change /usr/lib/plexmediaserver to /usr/lib/plexmediaserver/lib in /etc/services.d/plex/run

Is that not for unraid ?

As his running in docker, should work the same.
Btw probably you Will receive better follow up on Plex forums than here :pensive:

Thanks you l’ll have a look at the plex forums :slight_smile: