Plex PBI failing DLNA

Status
Not open for further replies.

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
Well I installed the Plex PBI and it's not working for me. Now I may have it configured incorrectly but I haven't really seen any configuration instructions. I was able to get it installed and it scanned all my movies without incident (it displays the movie covers) and it looks fine via the WebGUI.

I open Windows Media Player and my Plex server is listed. :) Then I go to look for the movies and there is no media content. :( And I notice the following messages in the footer of FreeNAS:

Code:
Sep  9 17:39:10 freenas kernel: pid 9963 (Plex DLNA Server), uid 972: exited on signal 11
Sep  9 17:39:11 freenas kernel: pid 10256 (Plex DLNA Server), uid 972: exited on signal 11
Sep  9 17:39:12 freenas kernel: pid 10257 (Plex DLNA Server), uid 972: exited on signal 11


This is very repeatable.

I went and removed Plex plugin (my only plugin) and rebooted, reinstalled Plex, had the same exact results three times.

I know I have some of the configuration correct otherwise I wouldn't be seeing my movies pop up during the scan Plex does.

Questions I have:
Q: Do I need to create a Plex account to use this? I currently do not have an account and left that part alone.
Q: Is there something special in the Plex setup to allow my local network (192.168.1.x) to access the content?

All I can think of is I am not configuring something.

Of course I'm running FreeNAS 9.1.1-RELEASE and the plugin came from the GUI. My signature has my system specs which shouldn't be an issue.
 
J

jkh

Guest
Well I installed the Plex PBI and it's not working for me. Now I may have it configured incorrectly but I haven't really seen any configuration instructions. I was able to get it installed and it scanned all my movies without incident (it displays the movie covers) and it looks fine via the WebGUI.


Hi Joe,

Looks like you're trying something none of us have tried yet - can you tell me how you managed to get Plex to show up in Windows Media Player? When I fired up a WMP instance on my Windows VM (on the same subnet as my FreeNAS box) I was unable to discover anything automatically; is there some special setup option you used for DLNA discovery or export on the Plex side?

I've successfully used the Web UI to watch movies, listen to music and so on, as well as using the Plex App (for Mac - I believe there is also a Windows Plex app) to do it "natively" without crashing Plex, but it sounds like whatever you're doing is making the FreeBSD port of Plex sad. Don't forget, that one is kind of "BETA" and I don't think you've done anything wrong in your setup, I think it's more likely that you've found a crasher in the Plex DLNA server! If we can narrow down the crash and a reproduction scenario, perhaps we (any one of us!) can report it to the Plex folks and, should they roll a fix, update the Plugin accordingly.

Thanks,

- Jordan
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
Jordan,
By default the Plex DLNA server is active, or at least it is on my machine. The Plex server shows up without a problem up until the point that I try to list the media content at which point the DLNA server dies. I will do some more investigation on the matter and post my results. I recall when we first had MiniDLNA that WMP would cause it to crash yet other DLNA players didn't so I'll test that out too. As for this being Beta-ish, I fully understand this. New things need lots of testing to prove themselves and work out any bugs.

The only reason I was trying out Plex was for the DLNA service. It would be nice to see an alternative for MiniDLNA.

-Mark
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
Jordan,
So more testing was done and this problem only appears to occur when using WMP. I do not have this problem when using my Samsung TV and CyberLink PowerDVD player (on same computer as WMP). I haven't tested my Sony Bluray player yet but I'll bet it works fine too.

I recall when we started out with MiniDLNA in the FreeNAS 8.0.x versions that WMP also caused the DLNA server to crash. I don't recall what fixed it so maybe a little more investigative work on my part is needed to dig that up and maybe there will be a clue there.

I tried to gather more information from my FreeNAS system but if there is some failure log, I'm not finding it.

Here is what FreeNAS does report to me...

First I started up the jail and Plex plugin.
Code:
Sep 11 18:25:38 freenas notifier: Performing sanity check on nginx configuration:
Sep 11 18:25:38 freenas notifier: nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
Sep 11 18:25:38 freenas notifier: nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
Sep 11 18:25:38 freenas manage.py: [common.pipesubr:57] Popen()ing: /usr/local/bin/warden start  plex_1
Sep 11 18:25:39 freenas kernel: bridge0: Ethernet address: 02:c9:cb:17:93:00
Sep 11 18:25:39 freenas kernel: em0: promiscuous mode enabled
Sep 11 18:25:39 freenas kernel: bridge0: link state changed to UP
Sep 11 18:25:39 freenas kernel: epair0a: Ethernet address: 02:4b:ad:00:0d:0a
Sep 11 18:25:39 freenas kernel: epair0b: Ethernet address: 02:4b:ad:00:0e:0b
Sep 11 18:25:39 freenas kernel: epair0a: link state changed to UP
Sep 11 18:25:39 freenas kernel: epair0b: link state changed to UP
Sep 11 18:25:39 freenas kernel: em0: link state changed to DOWN
Sep 11 18:25:39 freenas kernel: epair0a: promiscuous mode enabled
Sep 11 18:25:40 freenas ntpd[3554]: bind() fd 28, family AF_INET6, port 123, scope 13, addr  fe80::4b:adff:fe00:d0a, mcast=0 flags=0x11 fails: Can't assign requested address
Sep 11 18:25:40 freenas ntpd[3554]: unable to create socket on epair0a (8) for fe80::4b:adff:fe00:d0a#123
Sep 11 18:25:42 freenas kernel: em0: link state changed to UP
Sep 11 18:25:43 freenas manage.py: [common.pipesubr:57] Popen()ing: /usr/local/bin/warden list  -v
Sep 11 18:26:19 freenas last message repeated 7 times


Then I open WMP and it shows the Plex server. Now I open the link for Plex server in WMP and go to Videos and there are none listed. At this point the following is indicated in FreeNAS.
Code:
Sep 11 18:28:43 freenas kernel: pid 79077 (Plex DLNA Server), uid 972: exited on signal 11
Sep 11 18:28:45 freenas kernel: pid 79235 (Plex DLNA Server), uid 972: exited on signal 11
Sep 11 18:28:46 freenas kernel: pid 79236 (Plex DLNA Server), uid 972: exited on signal 11
Sep 11 18:28:52 freenas kernel: ifa_del_loopback_route: deletion failed
Sep 11 18:28:52 freenas kernel: Freed UMA keg was not empty (90 items).  Lost 9 pages of memory.
Sep 11 18:28:52 freenas kernel: Freed UMA keg was not empty (672 items).  Lost 4 pages of memory.
Sep 11 18:28:52 freenas kernel: Freed UMA keg was not empty (588 items).  Lost 7 pages of memory.
Sep 11 18:28:52 freenas kernel: Freed UMA keg was not empty (1450 items).  Lost 29 pages of memory.
Sep 11 18:28:52 freenas kernel: Freed UMA keg was not empty (1240 items).  Lost 124 pages of memory.
Sep 11 18:28:52 freenas kernel: Freed UMA keg was not empty (202 items).  Lost 2 pages of memory.
Sep 11 18:28:52 freenas kernel: Freed UMA keg was not empty (128 items).  Lost 32 pages of memory.
Sep 11 18:28:52 freenas kernel: Freed UMA keg was not empty (30 items).  Lost 3 pages of memory.
Sep 11 18:28:52 freenas kernel: hhook_vnet_uninit: hhook_head type=1, id=1 cleanup required
Sep 11 18:28:52 freenas kernel: hhook_vnet_uninit: hhook_head type=1, id=0 cleanup required
At this point the DLNA server is dead within Plex. I can still view videos through the web browser Plex GUI without issue.

I did not make any special setup and I do not have a Plex Account.

I did try to search the internet for "(Plex DLNA Server), uid 972: exited on signal 11" but no luck but I feel this is probably a key thing to investigate here.

I am willing to test if you are able to find something for me to test but I guess anyone could test to see if WMP causes it to crash. I am available and willing to do some testing if needed or we could just leave it and call it a known issue.

-Mark
 

igorashu

Cadet
Joined
Oct 1, 2013
Messages
1
Hello,

I'm fairly new to FreeNAS so it took me a bit to find the log (btw, I think that should be enabled by default :) )
I have the exact same problem.

From my *nix programming days, signal 11 == sigsegv (incorrect memory access)

I've also installed Plex from the GUI - what other option do I have to correctly install Plex? (or update to another revision)

Thanks.
 

evilandy

Dabbler
Joined
Sep 26, 2011
Messages
38
Hi, I'm experiencing the same problems. I currently have this working well on Mac, Popcorn Hour but it is failing on a Windows 7 PC and DNLA.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
You can also install MiniDLNA if you need DLNA on those items which Plex is failing to support. So you would end up with two services which isn't a problem. I ran that way for about a month but Plex doesn't offer me anything that I need so I removed it.

This isn't a fix of course but I certainly haven't found one yet.
 

VTecheira

Dabbler
Joined
Aug 11, 2013
Messages
13
I'm seeing similar behavior, but I'm exiting on signal 3.

Code:
Dec 12 13:21:51 fileserver kernel: pid 2981 (Plex DLNA Server), uid 972: exited on signal 3
Dec 12 13:21:51 fileserver kernel: pid 21769 (python), uid 972: exited on signal 3
Dec 12 13:21:51 fileserver kernel: pid 19222 (python), uid 972: exited on signal 3
Dec 12 13:21:51 fileserver kernel: pid 21774 (python), uid 972: exited on signal 3
Dec 12 13:21:51 fileserver kernel: pid 21734 (python), uid 972: exited on signal 3 


A few threads suggest it may actually be an issue with Python.
https://forums.plexapp.com/index.php/topic/84577-freebsd-10-pcbsd-no-agents-or-scanners/
http://bugs.python.org/issue18178

This thread suggests (indirectly) we may be good once we move to 9.2.. but I haven't tried that as yet.
https://forums.plexapp.com/index.php/topic/81290-freebsd-10-support/
 
Status
Not open for further replies.
Top