You are not logged in.

#1 2019-03-12 01:34:23

TioDuke
Member
Registered: 2009-08-06
Posts: 25

[Solved] Unable to see my plex dlna server

Hi,

I have been successfully running Plex Media Server without major issues for a couple of months now. This is "standard" PMS access using clients like the Plex Kodi plugin or Roku Media Server.

Today, I decided that I wanted to give DLNA (uPnP) support a try in order to access my media via VLC on my laptop. Unfortunately, vlc does not seem to be able to discover the DLNA server on the network.

I followed the archwiki and opened the listed DLNA ports and also checked if DLNA was enabled in PMS settings. I even tried to open all ports by stopping iptables. But nothing seems to make the DLNA server discoverable.

This is what I cound find in /var/lib/plex/Plex Media Server/Logs/Plex\ DLNA\ Server.log:

Mar 11, 2019 19:51:51.166 [0x7fc33e0cd700] INFO - Plex DLNA Server v1.14.1.5488-cc260c476 - ubuntu PC x86_64 - build: linux-ubuntu-x86_64 - GMT -04:00
Mar 11, 2019 19:51:51.248 [0x7fc33e0cd700] INFO - Linux version: 5.0.0-arch1-1-ARCH (#1 SMP PREEMPT Mon Mar 4 14:11:43 UTC 2019), language: LC-CTYPE=en-CA
Mar 11, 2019 19:51:51.248 [0x7fc33e0cd700] INFO - Processor         Intel(R) Core(TM) i3-2120 CPU @ 3.30GHz
Mar 11, 2019 19:51:51.133 [0x7fc33ede27c0] DEBUG - Unique device name = 3fe23a9b-6ca8-dfa3-053b-082d2e3985fe
Mar 11, 2019 19:51:51.133 [0x7fc33ede27c0] DEBUG - DLNA server port: 32469
Mar 11, 2019 19:51:51.133 [0x7fc33ede27c0] DEBUG - PMS: http://127.0.0.1:32400/
Mar 11, 2019 19:51:51.133 [0x7fc33ede27c0] DEBUG - MyPlex: https://plex.tv/
Mar 11, 2019 19:51:52.055 [0x7fc33ede27c0] DEBUG - Reading system DLNA client profiles
Mar 11, 2019 19:51:55.104 [0x7fc33ede27c0] DEBUG - Read 22 DLNA client profiles
Mar 11, 2019 19:51:55.163 [0x7fc33ede27c0] DEBUG - [PERF] Slowest insertShortKey in 20.000000 ms.
Mar 11, 2019 19:51:55.170 [0x7fc33ede27c0] DEBUG - DLNA device discovery enabled every 60 seconds
Mar 11, 2019 19:51:55.171 [0x7fc33ede27c0] DEBUG - Initialization complete
Mar 11, 2019 19:51:55.256 [0x7fc33ede27c0] ERROR - Unable to open named mutex 9334581e-7251-4ef7-a8ec-5bfe8e89ff68 with option 2: Read-only file system

I suspect that the ERROR line in the logs has something to do with the problem, but neither searching here nor in Google did throw any significant information.

Also, I happen to have configured the mediaplexserve.service as it is suggested in the archwiki:

[Service]
MemoryMax=4G
ReadOnlyDirectories=/
ReadOnlyDirectories=/data
ReadOnlyDirectories=/home/myuser
ReadWriteDirectories=/var/lib/plex /tmp

I don't know which read-only filesystem the log is referencing to.

Any help, would be highly appreciated. Thank you.

Last edited by TioDuke (2019-03-19 02:03:30)


[img]http://boincstats.com/signature/-1/user/2670943/sig.png[/img]

Offline

#2 2019-03-12 02:00:05

bugsmanagement
Member
Registered: 2017-04-21
Posts: 201

Re: [Solved] Unable to see my plex dlna server

Hello there,

Out of curiosity, which wiki are you referring to?

Regards

Offline

#3 2019-03-12 10:00:10

TioDuke
Member
Registered: 2009-08-06
Posts: 25

Re: [Solved] Unable to see my plex dlna server


[img]http://boincstats.com/signature/-1/user/2670943/sig.png[/img]

Offline

#4 2019-03-12 10:17:05

bugsmanagement
Member
Registered: 2017-04-21
Posts: 201

Re: [Solved] Unable to see my plex dlna server

TioDuke wrote:

Also, I happen to have configured the mediaplexserve.service as it is suggested in the archwiki:

[Service]
MemoryMax=4G
ReadOnlyDirectories=/
ReadOnlyDirectories=/data
ReadOnlyDirectories=/home/myuser
ReadWriteDirectories=/var/lib/plex /tmp

Hey, It doesn't seem to me to be from the ArchWiki you've linked to? Is that from https://aur.archlinux.org/packages/plex-media-server/?

Offline

#5 2019-03-12 16:04:06

loqs
Member
Registered: 2014-03-06
Posts: 19,103

Re: [Solved] Unable to see my plex dlna server

bugsmanagement wrote:

Hey, It doesn't seem to me to be from the ArchWiki you've linked to? Is that from https://aur.archlinux.org/packages/plex-media-server/?

.
You can see the service file supplied by AUR plex-media-server here
Applying the concepts from Plex#Security and literally copy the entry from Plex#Resource_Management to that service file.
To me it seems possible to generate the snippet TioDuke posted.  Although I would much rather the entire service file was posted.

Offline

#6 2019-03-19 02:02:51

TioDuke
Member
Registered: 2009-08-06
Posts: 25

Re: [Solved] Unable to see my plex dlna server

Thank you for your replies @loqs and @bugsmanagement.

I finally found the problem and the solution. The problem was in the client machine and not in the one running plex-media-server: iptables rules on the client machine were blocking incoming connections from the Plex server. As it happens, the server machine receives a connection request form the client, and then tries to establish a connection on a **random** udp port on the client side. All i have to do is create an iptables rule that accepts any incoming udp connection request from the server's ip adress (it is a static adress in my case, so not that difficult to implement).


[img]http://boincstats.com/signature/-1/user/2670943/sig.png[/img]

Offline

Board footer

Powered by FluxBB