DrKK
FreeNAS Generalissimo
- Joined
- Oct 15, 2013
- Messages
- 3,630
So this is interesting. I am posting it for posterity because some sucker out there will run into this I am sure.
I've installed plex on a jail (FreeNAS 9.10/FreeBSD 10), from scratch (not the plugin). I'm messing with DLNA. I notice, my Plex server *DLNA* shows up, generally, not at all, in DLNA clients (e.g., various stuff for the Android phone). I notice if I restart the plex service, then sure enough, the DLNA service *DOES* show up in the client. ONCE! That's it, ONCE. If I exit the client program, restart it (doesn't matter if I watch a movie, or not, just exit the program for any reason), then the next time I run the DLNA client? Doesn't show up.
This was driving me crazy, and since there wasn't shit on this in the Plex forums, I knew it had to be a FreeBSD or FreeNAS idiosyncrasy. The only idiosyncrasy I could think of that could be at once related to a UDP protocol, the fact that something was in a jail, and that it would work exactly once after a restart? I figured the only thing was how the network stack bonds to jails. I have VIMAGE *off* in my jails, generally speaking. Well, hmmm, yes, I can see the lack of VIMAGE causing some shit like this.
Went into the jail config, stopped the jail, turned the VIMAGE on now, so the jail had its own stack for the network, and ***EVERYTHING WAS NOW FINE***.
So this is pretty obscure. 99.4% of people out there would not have turned off a jail's VIMAGE when they made it (I probably shouldn't have, actually), so they will never notice this.
But in case you're out there, and you just Google searched for "Why the hell can I only see my Plex's DLNA server precisely one time after a restart in a FreeBSD jail"? Well, here you go. The solution is to turn on VIMAGE. If someone wants to add some science to this discussion as to what exactly fucked up here, that would be awesome.
Peace.
I've installed plex on a jail (FreeNAS 9.10/FreeBSD 10), from scratch (not the plugin). I'm messing with DLNA. I notice, my Plex server *DLNA* shows up, generally, not at all, in DLNA clients (e.g., various stuff for the Android phone). I notice if I restart the plex service, then sure enough, the DLNA service *DOES* show up in the client. ONCE! That's it, ONCE. If I exit the client program, restart it (doesn't matter if I watch a movie, or not, just exit the program for any reason), then the next time I run the DLNA client? Doesn't show up.
This was driving me crazy, and since there wasn't shit on this in the Plex forums, I knew it had to be a FreeBSD or FreeNAS idiosyncrasy. The only idiosyncrasy I could think of that could be at once related to a UDP protocol, the fact that something was in a jail, and that it would work exactly once after a restart? I figured the only thing was how the network stack bonds to jails. I have VIMAGE *off* in my jails, generally speaking. Well, hmmm, yes, I can see the lack of VIMAGE causing some shit like this.
Went into the jail config, stopped the jail, turned the VIMAGE on now, so the jail had its own stack for the network, and ***EVERYTHING WAS NOW FINE***.
So this is pretty obscure. 99.4% of people out there would not have turned off a jail's VIMAGE when they made it (I probably shouldn't have, actually), so they will never notice this.
But in case you're out there, and you just Google searched for "Why the hell can I only see my Plex's DLNA server precisely one time after a restart in a FreeBSD jail"? Well, here you go. The solution is to turn on VIMAGE. If someone wants to add some science to this discussion as to what exactly fucked up here, that would be awesome.
Peace.