FreeBSD Plex Media Server version 1.23.0.4459: no settings access

Server Version#: 1.22.3.4392
Player Version#: 4.54.5

Hi!

I’ve been running Plex Media Server in a FreeNAS jail for years. Since today I’m unable to upgrade from the previous version (1.22.3.4392) to the new one (1.23.0.4459).

If I do the upgrade, I lose access to the server settings.

What changed between these two versions?

Thanks.
Regards.

I am also curious about this. I have been having the same issue. I am also unable to match media for new items added to my server. I am able to access the server from the plex.tv site or apps. However, if I attempt to access the server on my LAN via browser, I just get the server XML config file

<MediaContainer size="23" allowCameraUpload="1" allowChannelAccess="1" allowMediaDeletion="0" allowSharing="1" allowSync="1" allowTuners="1" backgroundProcessing="1" certificate="1" companionProxy="1" countryCode="gbr" diagnostics="logs,databases,streaminglogs" eventStream="1" friendlyName="PlexServer" hubSearch="1" itemClusters="1" livetv="7" machineIdentifier="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" mediaProviders="1" multiuser="1" myPlex="1" myPlexMappingState="mapped" myPlexSigninState="ok" myPlexSubscription="1" myPlexUsername="xxxxx@xxx.com" offlineTranscode="1" ownerFeatures="002c9f1a-2fc0-4812-b85b-0e6140f21a0f,044a1fac-6b55-47d0-9933-25a035709432,04d7d794-b76c-49ef-9184-52f8f1f501ee,05690239-443e-43fb-bc1a-95b5d916ca63,06d14b9e-2af8-4c2b-a4a1-ea9d5c515824,07f804e6-28e6-4beb-b5c3-f2aefc88b938,0a348865-4f87-46dc-8bb2-f37637975724,0de6151c-e0dd-47c8-a81e-1acb977c7f0f,0eee866d-782b-4dfd-b42b-3bbe8eb0af16,13056a62-9bd2-47cf-aba9-bab00095fd08,1417df52-986e-4e4b-8dcd-3997fbc5c976,16d69c53-4c40-4821-b9f3-57ca690b2d4d,1844737f-1a87-45c3-ab20-01435959e63c,1b3a63e4-c2f4-4011-a181-2343d3a97ef7,1dd846ed-7cde-4dc5-8ef6-53d3ce8c4e9d,222020fb-1504-492d-af33-a0b80a49558a,228a6439-ee2f-4a9b-b0fc-1bfcd48b5095,22d52c96-9e2b-45c0-9e2a-1d6c66ad3474,24b4cf36-b296-4002-86b7-f1adb657e76a,2797e341-b062-46ed-862f-0acbba5dd522,298a11d3-9324-4104-8047-0ac10df4a8a6,2ea0e464-ea4f-4be2-97c1-ce6ed4b377dd,300231e0-69aa-4dce-97f4-52d8c00e3e8c,32cc8bf5-b425-4582-a52d-71b4f1cf436b,34e182bd-2f62-4678-a9e9-d13b3e25019d,39dbdd84-8339-4736-96a1-0eb105cc2e08,3a2b0cb6-1519-4431-98e2-823c248c70eb,3bfd3ccf-8c63-4dbb-8f87-9b21b402c82b,3c376154-d47e-4bbf-9428-2ea2592fd20a,4742780c-af9d-4b44-bf5b-7b27e3369aa8,4b522f91-ae89-4f62-af9c-76f44d8ef61c,4ca03b04-54c1-4f9f-aea2-f813ae48f317,4cd4dc0e-6cbe-456c-9988-9f073fadcd73,4e27cf82-9fb6-4ebe-8e10-c48bfe6fbbb6,55b9f6ed-5d26-4d2d-a436-68882a9901b5,567033ef-ffee-44fb-8f90-f678077445f9,5b6190a9-77a4-477e-9fbc-c8118e35a4c1,5c1951bf-ccf1-4821-8ee7-e50f51218ae7,5d819d02-5d04-4116-8eec-f49def4e2d6f,5e2a89ec-fb26-4234-b66e-14d37f35dff2,62b1e357-5450-41d8-9b60-c7705f750849,6380e085-02fe-43b5-8bff-380fa4f2423c,644c4466-05fa-45e0-a478-c594cf81778f,65152b75-13a9-408a-bd30-dbd23a259183,65685ff8-4375-4e4c-a806-ec1f0b4a8b7f,68747f3a-ce13-46ce-9274-1e0544c9f500,6d7be725-9a96-42c7-8af4-01e735138822,6f82ca43-6117-4e55-ae0e-5ea3b3e99a96,78643fe5-d192-40c7-8e93-5ccf04c0b767,7e7596aa-6e2c-41d1-a460-1e13cf0b62f2,7ee1495c-2798-4288-94e2-9cd98e67d441,82999dd3-a2be-482e-9f44-357879b4f603,849433b0-ef60-4a71-9dd9-939bc01f5362,84a754b0-d1ca-4433-af2d-c949bf4b4936,850f3d1e-3f38-44c1-9c0c-e3c9127b8b5a,8536058d-e1dd-4ae7-b30f-e8b059b7cc17,85ebfb7b-77fb-4afd-bb1a-2fe2fefdddbe,86da2200-58db-4d78-ba46-f146ba25906b,88aba3a3-bd62-42a5-91bb-0558a4c1db57,8e8dd5c8-14a4-4208-97d4-623e09191774,95149521-f64b-46ea-825c-9114e56afd2c,96cac76e-c5bc-4596-87eb-4fdfef9aaa11,98872b06-2ff3-4b71-96bc-039e2ebe7adc,9a67bff2-cb80-4bf9-81c6-9ad2f4c78afd,9c982beb-c676-4d6f-a777-ff5d37ec3081,9dc1df45-fb45-4be1-9ab2-eb23eb57f082,a19d495a-1cef-4f7c-ab77-5186e63e17f7,a3d2d5c4-46a0-436e-a2d6-80d26f32b369,a4bc568b-477f-4f36-894b-49e19f34353f,a536a6e1-0ece-498a-bf64-99b53c27de3a,a548af72-b804-4d05-8569-52785952d31d,a6e0a154-4735-4cbb-a6ec-7a0a146c8216,a6f3f9b3-c10c-4b94-ad59-755e30ac6c90,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,b58d7f28-7b4a-49bb-97a7-152645505f28,b612f571-83c3-431a-88eb-3f05ce08da4a,b77e6744-c18d-415a-8e7c-7aac5d7a7750,b83c8dc9-5a01-4b7a-a7c9-5870c8a6e21b,b8cf9f40-4f8a-4de4-b203-5bbcf8b09f5a,bb50c92f-b412-44fe-8d8a-b1684f212a44,bbf73498-4912-4d80-9560-47c4fe212cec,bc8d1fca-deb0-4d0a-a6f4-12cfd681002d,bfeaee4e-965a-4d24-b163-020c3c57d936,c2409baa-d044-45c7-b1f4-e9e7ccd2d128,c55d5900-b546-416d-a8c5-45b24a13e9bc,c5adf9dc-af13-4a85-a24b-98de6fa2f595,c7ae6f8f-05e6-48bb-9024-c05c1dc3c43e,c92d4903-bc06-4715-8ce4-4a22674abac8,camera_upload,cc9bea3b-11ab-4402-a222-4958bb129cab,cloudsync,collections,content_filter,d14556be-ae6d-4407-89d0-b83953f4789a,d1477307-4dac-4e57-9258-252e5b908693,d20f9af2-fdb1-4927-99eb-a2eb8fbff799,d413fb56-de7b-40e4-acd0-f3dbb7c9e104,d8810b38-ec9b-494c-8555-3df6e365dfbd,d9f42aea-bc9d-47db-9814-cd7a577aff48,dab501df-5d99-48ef-afc2-3e839e4ddc9a,db965785-ca5c-46fd-bab6-7b3d29c18492,ddd730e1-a0a0-429f-a7d3-7c5001d24497,download_certificates,dvr,e45bc5ae-1c3a-4729-922b-c69388c571b7,e66aa31c-abdd-483d-93bc-e17485d8837f,e8230c74-0940-4b91-9e20-6571eb068086,e954ef21-08b4-411e-a1f0-7551f1e57b11,ec64b6f6-e804-4ef3-b114-9d5c63e1a941,ee352392-2934-4061-ba35-5f3189f19ab4,f3235e61-c0eb-4718-ac0a-7d6eb3d8ff75,f3a99481-9671-4274-a0d3-4c06a72ef746,f83450e2-759a-4de4-8b31-e4a163896d43,f8ea4f37-c554-476a-8852-1cbd2912f3f6,fb34e64d-cd89-47b8-8bae-a6d20c542bae,fd6683b9-1426-4b00-840f-cd5fb0904a6a,fec722a0-a6d4-4fbd-96dc-4ffb02b072c5,federated-auth,hardware_transcoding,home,hwtranscode,item_clusters,kevin-bacon,livetv,loudness,lyrics,music_videos,pass,photo_autotags,photos-v5,photosV6-edit,photosV6-tv-albums,premium_music_metadata,radio,server-manager,session_bandwidth_restrictions,session_kick,shared-radio,sync,trailers,tuner-sharing,type-first,unsupportedtuners,webhooks" photoAutoTag="1" platform="FreeBSD" platformVersion="12.2-RELEASE-p6" pluginHost="1" pushNotifications="0" readOnlyLibraries="0" requestParametersInCookie="1" 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="1619885059" updater="1" version="1.23.0.4459-20536d6fc" 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="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="transcode" title="transcode"/>
<Directory count="1" key="updater" title="updater"/>
<Directory count="1" key="user" title="user"/>
</MediaContainer>```
1 Like

This picture… same for me.

Thanks I’ll look into this tomorrow.

2 Likes

FWIW I bumped into this too and export LD_LIBRARY_PATH="${SCRIPTPATH}/lib" this should not be needed though and likely means something regress in deps linkage.

add this to your rc.d script as a work arround if you don’t want to downgrade.

4 Likes

Yep, same for me. I replied here, since I only found this thread now. Won’t double post tho.

Same issue here with FreeBSD version running in an IOCage jail in TrueNAS

noob here … which script would this go into?

/usr/local/etc/rc.d/plexmediaserver or /usr/local/etc/rc.d/plexmediaserver_plexpass

Add it in the plex_precmd() section, right after the export SCRIPTPATH... statement.

If you’re using the iXsystems Plex Plugin, the provided rc.d script already includes LD_LIBRARY_PATH.

4 Likes

That did the trick …Thanks a BUNCH!!
I was looking in another rc.d folder that had a billion other scripts in it
I used to run the plugin, but I install manually now to be able to keep the jail up to date as well as Plex

Thanks for the assist. problem fixed after making the config changes, :upside_down_face:

People having this issue … how have you installed Plex?

Did you start by installing the FreeBSD pkg?
Or did you start with the TrueNAS/FreeNAS iXsystems plugin?
Or did you start by downloading from Plex directly?

And then are you downloading and extracting Plex manually?
Or are you using the PMS_Updater script?

Mine was a download from plex and extract. This has been my upgrade process via script for the last 10 months. Never had any issues before.

Plex doesn’t distribute an rc.d script; do you know where you first got yours? I’m assuming it’s either from the pkg or the iX plugin.


I’m very curious about this change in the pkg. @feld was this you? It seems like it was removed when the ancient compat libs were removed from Plex?


The PMS_Updater script makes an odd (and currently useless/harmless) libpython symlink, too. (Ignoring the grossness of breaking a pkg.)


Plex folks - should the start.sh script be a model for setting up the runtime environment? It doesn’t seem complete.

@volts Yes that was me. I was contacted by Miguel from Plex 6 months ago to remove it:

Hi Mark,

We no longer require LD_LIBRARY_PATH in PMS (in fact we haven’t since some time ago, however having this set can potentially cause issues with future versions.

Could you please make sure in the next update (beta/public) you remove this from the rc.d script?

Thanks.

1 Like

My initial install was via the pkg package manager

Good question.

I first installed the PKG version in order to have the rc script in /usr/local/etc/rc.d

Then I did a backup of this file, removed the PKG and installed the version from Plex site.

Then I restored the rc script in order to have the service started automatically at system/jail start.

I only had to make a symlink from “Plex Media Server” to “Plex_Media_Server” but I could had change the script instead. It was a matter of choice.

Now, regarding the “Remove the no longer needed LD_LIBRARY_PATH from startup env per upstream req”… is this the solution? Or just an workaround?

The reason for this is that with spaces in the binary name it fails when checking if the process name matches what we expect for the PID during shutdown of the service via the rc script. We could disable checking the process name as an extra safety measure, but I opted to just work around it with the symlink so we know for sure we’re signaling the correct process.

2 Likes

This should work without setting LD_LIBRARY_PATH, it’s not a pkg or port issue, we shouldn’t need to set it.

Unfortunately something broke in deps linkage that is now causing this.

Setting it manually is simply a work arround but depending on other issues it can potentially cause trouble anyway.

:crossed_fingers: it’s fixed in a future build.

1 Like

Thanks for the details!

I feel like it’s been necessary on-and-off over the years. It’s been added and removed from different rc.d scripts.

And it’s mentioned (in the Linux section) in the Scanner CLI support page.

(Did you guys see Linus’s recent rant about dynamic linking? I thought you guys might be amused/vindicated.)