Jump to content

Unclean shutdown in 6.9.2 and Plex will not start


dchamb

Recommended Posts

I upgraded to 6.9.2 recently after being up for 462 days 7 hours on 6.8.3. Initial impressions are that 6.8.3 was more stable. 

 

I just ran into a problem where my Plex docker seemed to be hung up (never had this problem before) and I tried to restart with clean shutdown with no success. I then tried shutting down the array and had no success with that either. Eventually I was forced to shutdown the system hard which caused a Parity Check to start. My Plex docker will not start and shows it is stopped. 

 

Any help will be most welcome!

 

Dale

tower-diagnostics-20211127-1421.zip

Link to comment

Update: I forced an update to the stopped Plex container and it allowed me to start the Plex docker. However, the Plex clients do not see the server, even though it shows started. I am using the linuxserver/plex container. In addition, there is an (orphan image) that is stopped. I am not sure if it is interfering in any way or what is the best way to remove it other than remove it.

 

Here is the Plex log:

 


[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] 01-envfile: executing...
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 10-adduser: executing...

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


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

To support LSIO projects visit:
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] 45-plex-claim: executing...
[cont-init.d] 45-plex-claim: exited 0.
[cont-init.d] 50-gid-video: executing...
[cont-init.d] 50-gid-video: exited 0.
[cont-init.d] 60-plex-update: executing...
Atempting to upgrade to: 1.25.0.5246-cb2507e4d
2021-11-27 15:43:02 URL:https://downloads.plex.tv/plex-media-server-new/1.25.0.5246-cb2507e4d/debian/plexmediaserver_1.25.0.5246-cb2507e4d_amd64.deb [76591506/76591506] -> "/tmp/plexmediaserver_1.25.0.5246-cb2507e4d_amd64.deb" [1]
(Reading database ... 10560 files and directories currently installed.)
Preparing to unpack .../plexmediaserver_1.25.0.5246-cb2507e4d_amd64.deb ...
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Docker detected. Preinstallation validation not required.
Unpacking plexmediaserver (1.25.0.5246-cb2507e4d) over (1.24.5.5173-8dcc73a59) ...
Setting up plexmediaserver (1.25.0.5246-cb2507e4d) ...
PlexMediaServer install: Docker detected. Postinstallation tasks not required. Continuing.
[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
Starting Plex Media Server.
[services.d] done.
Critical: libusb_init failed
connect: Operation timed out

Edited by dchamb
Link to comment

i think it's related to the latest plex version (1.25.0.5282-2edd3c44d), mine do the same (hang-up while i was watching a movie and then completely frozen my unraid server).

 

Fortunately it still operating after a forced reboot, to prevent this to occur again i've downgraded plex to the anterior version (edit the container and put : "plexinc/pms-docker:1.24.5.5173-8dcc73a59" in repository).

Link to comment
58 minutes ago, dchamb said:

I rolled back to unRaid 6.8.3 and kept my Plex at 125.0.5282-2edd3c44d. Everything is running fine. So if it is something in that version of Plex, it is being triggered by 6.9.2.

Not sure of that, but thank for testing this version of plex on Unraid 6.8.3.

For information the latest version of plex crashed my system only after a dozenhours...

Just wait and we will see.

Link to comment
  • 4 months later...
40 minutes ago, simo241 said:

How do i remove the orphan image

Turn on Advanced View in the Docker tab.  That should show you any orphan images. 

 

If you can't get rid or orphan images that way.  You can always delete docker.img, recreate it and add all your docker containers back from Apps --> Previous Apps (this preserves all prior settings).

Link to comment

This was an old thread from another user and you haven't given us any real information about your specific problem. You just jumped in here asking how to remove orphans.

14 hours ago, simo241 said:

i still get the error

Were there actually any orphans to remove?

 

You need to tell us more about what your problem is, what you have tried to fix it, and what the results were.

 

First, did you ever have plex working?

 

Give your docker run for plex and attach diagnostics to your NEXT post in this thread.

 

 

Link to comment

I was trying to install plex linux server but every time i am going to start the web ui i got the below error:

I also completely remove the libvirt image and all doker app data but i still get the below

 

 

<MediaContainer size="25" allowCameraUpload="0" allowChannelAccess="1" allowMediaDeletion="1" allowSharing="1" allowSync="0" allowTuners="1" backgroundProcessing="1" companionProxy="1" countryCode="" diagnostics="logs,databases,streaminglogs" eventStream="1" friendlyName="Zeus" hubSearch="1" itemClusters="1" livetv="7" machineIdentifier="f333f223ca0b19a89de5ac40ad60fb5defa7f607" mediaProviders="1" multiuser="1" musicAnalysis="2" myPlex="1" myPlexMappingState="mapped" myPlexSigninState="none" myPlexSubscription="0" ownerFeatures="06d14b9e-2af8-4c2b-a4a1-ea9d5c515824,1417df52-986e-4e4b-8dcd-3997fbc5c976,16d69c53-4c40-4821-b9f3-57ca690b2d4d,22b27e12-472e-4383-92ea-2ec3976d8e72,24b4cf36-b296-4002-86b7-f1adb657e76a,2ea0e464-ea4f-4be2-97c1-ce6ed4b377dd,300231e0-69aa-4dce-97f4-52d8c00e3e8c,34e182bd-2f62-4678-a9e9-d13b3e25019d,39dbdd84-8339-4736-96a1-0eb105cc2e08,4b522f91-ae89-4f62-af9c-76f44d8ef61c,547514ab-3284-46e5-af77-bbaff247e3fc,567033ef-ffee-44fb-8f90-f678077445f9,5d819d02-5d04-4116-8eec-f49def4e2d6f,5e2a89ec-fb26-4234-b66e-14d37f35dff2,65685ff8-4375-4e4c-a806-ec1f0b4a8b7f,68747f3a-ce13-46ce-9274-1e0544c9f500,6b85840c-d79d-40c2-8d8f-dfc0b7d26776,6d7be725-9a96-42c7-8af4-01e735138822,78643fe5-d192-40c7-8e93-5ccf04c0b767,7e7596aa-6e2c-41d1-a460-1e13cf0b62f2,849433b0-ef60-4a71-9dd9-939bc01f5362,85ebfb7b-77fb-4afd-bb1a-2fe2fefdddbe,86da2200-58db-4d78-ba46-f146ba25906b,96cac76e-c5bc-4596-87eb-4fdfef9aaa11,98872b06-2ff3-4b71-96bc-039e2ebe7adc,a3d2d5c4-46a0-436e-a2d6-80d26f32b369,abd37b14-706c-461f-8255-fa9563882af3,adaptive_bitrate,b20d91ca-1b2f-45a2-a115-c1ad24c66ac5,b227c158-e062-4ff1-95d8-8ed11cecafb1,b2403ac6-4885-4971-8b96-59353fd87c72,b46d16ae-cbd6-4226-8ee9-ab2b27e5dd42,b5874ecb-6610-47b2-8906-1b5a897acb02,b77e6744-c18d-415a-8e7c-7aac5d7a7750,bfeaee4e-965a-4d24-b163-020c3c57d936,c7ae6f8f-05e6-48bb-9024-c05c1dc3c43e,c9d9b7ee-fdd9-474e-b143-5039c04e9b9b,collections,dab501df-5d99-48ef-afc2-3e839e4ddc9a,f83450e2-759a-4de4-8b31-e4a163896d43,fec722a0-a6d4-4fbd-96dc-4ffb02b072c5,federated-auth,home,kevin-bacon,livetv,radio,tuner-sharing,unsupportedtuners" photoAutoTag="1" platform="Linux" platformVersion="5.15.30-Unraid" pluginHost="1" pushNotifications="0" readOnlyLibraries="0" startState="startingPlugins" streamingBrainABRVersion="3" streamingBrainVersion="2" sync="1" transcoderActiveVideoSessions="0" transcoderAudio="1" transcoderLyrics="1" transcoderPhoto="1" transcoderSubtitles="1" transcoderVideo="1" transcoderVideoBitrates="64,96,208,320,720,1500,2000,3000,4000,8000,10000,12000,20000" transcoderVideoQualities="0,1,2,3,4,5,6,7,8,9,10,11,12" transcoderVideoResolutions="128,128,160,240,320,480,768,720,720,1080,1080,1080,1080" updatedAt="-1" updater="1" version="1.25.9.5721-965587f64" voiceSearch="1">

<Directory count="1" key="actions" title="actions"/>

<Directory count="1" key="activities" title="activities"/>

<Directory count="1" key="butler" title="butler"/>

<Directory count="1" key="channels" title="channels"/>

<Directory count="1" key="clients" title="clients"/>

<Directory count="1" key="devices" title="devices"/>

<Directory count="1" key="diagnostics" title="diagnostics"/>

<Directory count="1" key="hubs" title="hubs"/>

<Directory count="3" key="library" title="library"/>

<Directory count="3" key="livetv" title="livetv"/>

<Directory count="3" key="media" title="media"/>

<Directory count="3" key="metadata" title="metadata"/>

<Directory count="1" key="neighborhood" title="neighborhood"/>

<Directory count="1" key="playQueues" title="playQueues"/>

<Directory count="1" key="player" title="player"/>

<Directory count="1" key="playlists" title="playlists"/>

<Directory count="1" key="resources" title="resources"/>

<Directory count="1" key="search" title="search"/>

<Directory count="1" key="server" title="server"/>

<Directory count="1" key="servers" title="servers"/>

<Directory count="1" key="statistics" title="statistics"/>

<Directory count="1" key="system" title="system"/>

<Directory count="1" key="transcode" title="transcode"/>

<Directory count="1" key="updater" title="updater"/>

<Directory count="1" key="user" title="user"/>

</MediaContainer>

Link to comment
  • 6 months later...

Hello all, 

 

I am having the same error and wanted to see what the solution was for this situation. I do not have any orphan images to remove. 

 

"

Critical: libusb_init failed

"

after this error shows in the log, the ram usage slowly creeps up to about 23GB and then the whole image freezes. 

Link to comment

Docker Run-

"

docker run
  -d
  --name='binhex-plex'
  --net='host'
  --cpuset-cpus='1,2,3,4,5,6,7,8,9,10,11,12,13,14,15'
  -e TZ="America/Los_Angeles"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="Tower"
  -e HOST_CONTAINERNAME="binhex-plex"
  -e 'TRANS_DIR'='/config/transcode1'
  -e 'UMASK'='000'
  -e 'PUID'='99'
  -e 'PGID'='100'
  -e 'TCP_PORT_HTTP://192.168.86.49:32400/'='HTTP://192.168.86.49:32400/'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.webui='https://app.plex.tv/desktop#'
  -l net.unraid.docker.icon='https://raw.githubusercontent.com/binhex/docker-templates/master/binhex/images/plex-icon.png'
  -v '/mnt/user/Plex Media/':'/media':'rw'
  -v '/mnt/user/appdata/binhex-plex/':'/config':'rw'
  --log-opt max-size=50m
  --log-opt max-file=1
  --cpu-shares=971 'binhex/arch-plex'

9a4ebb96316c3909d81b3a8f4a0d7159cb36bd7825cdb3c8f40f3615a643d2dd

The command finished successfully!

"

Diag file attached

tower-diagnostics-20221018-2138.zip

Link to comment
  • 1 year 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...