Page 1 of 2

[SOLVED] WDTV Live loses connection to Serviio

PostPosted: Thu Mar 28, 2013 6:51 pm
by efitol
I'm running Serviio on an HP MicroServer N40L with Windows 7 Ultimate 32-bit.

Ever since I upgraded to 1.2 I've been having some issues with my 3 WDTV Live media players losing connection to Serviio with the message "The last content source has been removed. Please select a new content source." while watching a video or even just browsing. I will then have to re-select the Serviio media server. The problem has persisted with 1.2.1.

I've installed Serviio on another machine to eliminate the first server as a problem and I still get the error.

The log entries when this happens are


  Code:
2013-03-28 19:36:40,628 DEBUG [DiscoverySSDPMessageListener] Received a valid NOTIFY (ssdp:alive) message from Renderer 95471c78-0090-a9c1-da18-9980e5a8f497 from address /192.168.10.24:1900
2013-03-28 19:36:40,630 DEBUG [DiscoverySSDPMessageListener] Received a valid NOTIFY (ssdp:alive) message from Renderer 95471c78-0090-a9c1-da18-9980e5a8f497 from address /192.168.10.24:1900
2013-03-28 19:37:02,115 DEBUG [DiscoverySSDPMessageListener] Received a valid NOTIFY (ssdp:byebye) message from Renderer aba03080-0090-a9c3-cc8e-c87de3753a9f from address /192.168.10.26:1900
2013-03-28 19:37:02,115 DEBUG [DiscoverySSDPMessageListener] Received a valid NOTIFY (ssdp:byebye) message from Renderer aba03080-0090-a9c3-cc8e-c87de3753a9f from address /192.168.10.26:1900
2013-03-28 19:37:02,116 DEBUG [DiscoverySSDPMessageListener] Received a valid NOTIFY (ssdp:byebye) message from Renderer aba03080-0090-a9c3-cc8e-c87de3753a9f from address /192.168.10.26:1900
2013-03-28 19:37:02,116 DEBUG [DiscoverySSDPMessageListener] Received a valid NOTIFY (ssdp:byebye) message from Renderer aba03080-0090-a9c3-cc8e-c87de3753a9f from address /192.168.10.26:1900
2013-03-28 19:37:02,116 DEBUG [DiscoverySSDPMessageListener] Received a valid NOTIFY (ssdp:byebye) message from Renderer aba03080-0090-a9c3-cc8e-c87de3753a9f from address /192.168.10.26:1900
2013-03-28 19:37:02,116 DEBUG [DiscoverySSDPMessageListener] Received a valid NOTIFY (ssdp:byebye) message from Renderer aba03080-0090-a9c3-cc8e-c87de3753a9f from address /192.168.10.26:1900
2013-03-28 19:37:02,117 DEBUG [DiscoverySSDPMessageListener] Received a valid NOTIFY (ssdp:byebye) message from Renderer aba03080-0090-a9c3-cc8e-c87de3753a9f from address /192.168.10.26:1900
2013-03-28 19:37:02,117 DEBUG [DiscoverySSDPMessageListener] Received a valid NOTIFY (ssdp:byebye) message from Renderer aba03080-0090-a9c3-cc8e-c87de3753a9f from address /192.168.10.26:1900
2013-03-28 19:37:02,121 DEBUG [RendererManager] Removing renderer aba03080-0090-a9c3-cc8e-c87de3753a9f from list of active renderers
2013-03-28 19:37:02,122 DEBUG [WebServer] I/O error: Connection reset by peer: socket write error
2013-03-28 19:37:02,132 DEBUG [DiscoverySSDPMessageListener] Received a valid NOTIFY (ssdp:alive) message from Renderer aba03080-0090-a9c3-cc8e-c87de3753a9f from address /192.168.10.26:1900
2013-03-28 19:37:02,132 DEBUG [DiscoverySSDPMessageListener] Received a valid NOTIFY (ssdp:alive) message from Renderer aba03080-0090-a9c3-cc8e-c87de3753a9f from address /192.168.10.26:1900
2013-03-28 19:37:02,134 DEBUG [RendererManager] Adding renderer Renderer [uuid=aba03080-0090-a9c3-cc8e-c87de3753a9f, ipAddress=192.168.10.26, name=WD TV Live, profileId=14, manuallyAdded=false, forcedProfile=true, enabled=true, accessGroupId=1] to list of active renderers


Can any please assist? I'm not sure what could be causing this.

Re: WDTV Live loses connection to Serviio

PostPosted: Thu Mar 28, 2013 6:54 pm
by efitol
And below are the log entries when the same thing happened on the second machine running Serviio:

  Code:
2013-03-28 20:33:46,805 DEBUG [DiscoverySSDPMessageListener] Received a valid NOTIFY (ssdp:byebye) message from Renderer aba03080-0090-a9c3-cc8e-c87de3753a9f from address /192.168.10.26:1900
2013-03-28 20:33:46,806 DEBUG [RendererManager] Removing renderer aba03080-0090-a9c3-cc8e-c87de3753a9f from list of active renderers
2013-03-28 20:33:46,806 DEBUG [DiscoverySSDPMessageListener] Received a valid NOTIFY (ssdp:byebye) message from Renderer aba03080-0090-a9c3-cc8e-c87de3753a9f from address /192.168.10.26:1900
2013-03-28 20:33:46,807 DEBUG [DiscoverySSDPMessageListener] Received a valid NOTIFY (ssdp:byebye) message from Renderer aba03080-0090-a9c3-cc8e-c87de3753a9f from address /192.168.10.26:1900
2013-03-28 20:33:46,807 DEBUG [WebServer] I/O error: Connection reset by peer: socket write error
2013-03-28 20:33:46,807 DEBUG [DiscoverySSDPMessageListener] Received a valid NOTIFY (ssdp:byebye) message from Renderer aba03080-0090-a9c3-cc8e-c87de3753a9f from address /192.168.10.26:1900
2013-03-28 20:33:46,819 DEBUG [DiscoverySSDPMessageListener] Received a valid NOTIFY (ssdp:alive) message from Renderer aba03080-0090-a9c3-cc8e-c87de3753a9f from address /192.168.10.26:1900
2013-03-28 20:33:46,819 DEBUG [RendererManager] Adding renderer Renderer [uuid=aba03080-0090-a9c3-cc8e-c87de3753a9f, ipAddress=192.168.10.26, name=WD TV Live, profileId=1, manuallyAdded=false, forcedProfile=false, enabled=true, accessGroupId=1] to list of active renderers

Re: WDTV Live loses connection to Serviio

PostPosted: Thu Mar 28, 2013 7:33 pm
by zip
this means the WDTV sends byebye message (ie is turning off). Did you change firmware on the player recently?

Re: WDTV Live loses connection to Serviio

PostPosted: Thu Mar 28, 2013 8:21 pm
by efitol
zip wrote:this means the WDTV sends byebye message (ie is turning off). Did you change firmware on the player recently?

I may have updated all the WDTV Live players to the latest firmware around the same time I updated Serviio. I'll see if I can find the previous firmware and load that.

I've been testing from my Samsung TV and so far no connection loss occurred so it does indeed look like a fault with the WDTVs.

Re: WDTV Live loses connection to Serviio

PostPosted: Mon Apr 01, 2013 9:33 am
by efitol
I did a bit more digging on this since rolling back the firmware on the WDTV Live didn't help, and it seems that this is a case of both Serviio and the WDTV Live not playing nice together.

Apparently the WDTV Live expects the SSDP broadcast more often than Serviio sends it, so in the end the WDTV Live doesn't receive it in time and then decides that Serviio is no longer available.

Is there a way that I can change the frequency that Serviio sends out the broadcast? From my logs it looks like the broadcast is sent every 4 minutes, maybe if I can change it to every minute and see if that fixes this.

Re: WDTV Live loses connection to Serviio

PostPosted: Mon Apr 01, 2013 11:02 am
by efitol
OK after even more digging, I discovered the option

-Dserviio.advertisementDuration=<NumberOfSeconds>

which can be added to ServiioService.exe.vmoptions. The default value for this is 1800 seconds which is 30 minutes, and I noticed that my WDTV Live disconnects every 30 minutes or so. Initially I set this to

-Dserviio.advertisementDuration=60

and my WDTV Live disconnected every minute. So I have now set it to

-Dserviio.advertisementDuration=864000

which should mean that I'll be good for 24 hours. Busy watching some stuff now so I'll see if this "fixes" it.

Re: WDTV Live loses connection to Serviio

PostPosted: Mon Apr 01, 2013 10:57 pm
by zip
Fine.

As you said, Serviio notifies at random interval around 3-4 minutes and sets duration of each of these messages to 30 minutes. It looks like the WDTV ignores all the other messages, other than the first one.

Re: [SOLVED] WDTV Live loses connection to Serviio

PostPosted: Tue Apr 02, 2013 6:56 am
by efitol
Well that seems to have fixed it, no disconnects so far. Marking this as solved. Thanks for the help.

Re: [SOLVED] WDTV Live loses connection to Serviio

PostPosted: Mon Apr 08, 2013 1:48 pm
by the_hamburger
I seem to be having the same problem.

Where do I find / change the setting? -Dserviio.advertisementDuration

Thanks

Re: [SOLVED] WDTV Live loses connection to Serviio

PostPosted: Mon Apr 08, 2013 2:44 pm
by the_hamburger
I've kind of got there.

First read the F.A.Q. !

Look for this section How to pass system properties to Serviio

Then I open (on a mac) Contents/Info.plist in textedit and see the following

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<plist version="1.0">
<dict>
<key>CFBundleName</key>
<string>Serviio</string>
<key>CFBundleShortVersionString</key>
<string>1.2</string>
<key>CFBundleGetInfoString</key>
<string>1.2 (c) 2009 - 2011 Petr Nejedly</string>
<key>CFBundleAllowMixedLocalizations</key>
<string>false</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleExecutable</key>
<string>JavaApplicationStub</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleIconFile</key>
<string>serviio.icns</string>
<key>Java</key>
<dict>
<key>MainClass</key>
<string>org.serviio.MediaServer</string>
<key>JVMVersion</key>
<string>1.6+</string>
<key>ClassPath</key>
<array>
<string>$JAVAROOT/commons-codec.jar</string>
<string>$JAVAROOT/commons-io.jar</string>
<string>$JAVAROOT/commons-jxpath.jar</string>
<string>$JAVAROOT/commons-lang.jar</string>
<string>$JAVAROOT/concurrent.jar</string>
<string>$JAVAROOT/derby.jar</string>
<string>$JAVAROOT/freemarker.jar</string>
<string>$JAVAROOT/groovy-all.jar</string>
<string>$JAVAROOT/gson.jar</string>
<string>$JAVAROOT/httpcore.jar</string>
<string>$JAVAROOT/jaudiotagger.jar</string>
<string>$JAVAROOT/jcl-over-slf4j.jar</string>
<string>$JAVAROOT/jcs.jar</string>
<string>$JAVAROOT/jdom.jar</string>
<string>$JAVAROOT/jnat-pmplib.jar</string>
<string>$JAVAROOT/jul-to-slf4j.jar</string>
<string>$JAVAROOT/log4j.jar</string>
<string>$JAVAROOT/org.restlet.ext.gson.jar</string>
<string>$JAVAROOT/org.restlet.ext.net.jar</string>
<string>$JAVAROOT/org.restlet.ext.xstream.jar</string>
<string>$JAVAROOT/org.restlet.jar</string>
<string>$JAVAROOT/padlock.jar</string>
<string>$JAVAROOT/rome-modules.jar</string>
<string>$JAVAROOT/rome.jar</string>
<string>$JAVAROOT/sanselan.jar</string>
<string>$JAVAROOT/sbbi-upnp.jar</string>
<string>$JAVAROOT/serviio-media-browser.jar</string>
<string>$JAVAROOT/serviio.jar</string>
<string>$JAVAROOT/slf4j-api.jar</string>
<string>$JAVAROOT/slf4j-log4j12.jar</string>
<string>$JAVAROOT/winp.jar</string>
<string>$JAVAROOT/xstream.jar</string>
<string>$JAVAROOT/config</string>
</array>
<key>VMOptions</key>
<string>-Xmx512m -Xms20M -XX:+UseParNewGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20</string>
<key>Properties</key>
<dict>
<key>java.awt.headless</key>
<string>true</string>
<key>serviio.home</key>
<string>$JAVAROOT</string>
<key>derby.system.home</key>
<string>$JAVAROOT/library</string>
<key>file.encoding</key>
<string>UTF-8</string>
<key>java.net.preferIPv4Stack</key>
<string>true</string>
</dict>
</dict>
</dict>
</plist>


To which I think you add serviio.advertisementDuration=864000

But where abouts?

Hope somebody can help.

Thanks

Re: [SOLVED] WDTV Live loses connection to Serviio

PostPosted: Tue Apr 09, 2013 12:49 pm
by zip
add this

  Code:
<key>serviio.advertisementDuration</key>
<string>864000</string>


after

  Code:
<key>java.net.preferIPv4Stack</key>
<string>true</string>

Re: [SOLVED] WDTV Live loses connection to Serviio

PostPosted: Wed Apr 10, 2013 12:36 pm
by the_hamburger
Thanks!

Re: [SOLVED] WDTV Live loses connection to Serviio

PostPosted: Thu Apr 11, 2013 2:50 am
by cswnow
What program do you use to open the ServiioService.exe.vmoptions file? I tried using Notepad and it was blank.

Any help would be appreciated.

Re: [SOLVED] WDTV Live loses connection to Serviio

PostPosted: Thu Apr 11, 2013 7:04 pm
by zip
Notepad is fine. There should be something like -XmxXXX in there, otherwise empty

Re: [SOLVED] WDTV Live loses connection to Serviio

PostPosted: Mon Apr 15, 2013 12:27 am
by cswnow
Sorry for not knowing much about this stuff.

I have read the above postings and you are correct there is one line in the file.

Is this where I add the code:

<key>serviio.advertisementDuration</key>
<string>864000</string>

Not sure what I am doing, since in the previous posts you told people where to insert the code between a bunch
of other code which I don't see.

Once again any help would be appreciated.

Re: [SOLVED] WDTV Live loses connection to Serviio

PostPosted: Mon Apr 15, 2013 12:11 pm
by zip
No, this example is for Mac. For Windows, just add a new line to the file like

  Code:
-Dserviio.advertisementDuration=864000

Re: [SOLVED] WDTV Live loses connection to Serviio

PostPosted: Wed Aug 21, 2013 2:27 pm
by Koramchad
Hi!
I'm having the same issues with a Synology NAS.
I did what was recommended on this post (edited the .plist with the added value mentioned above) but the WD TV Live still disconnects from Serviio every too often...
After updating the file I've restarted the NAS, stopped and started again Serviio...
I'm running out of ideas!
Any other options?

Thanks!

Re: [SOLVED] WDTV Live loses connection to Serviio

PostPosted: Thu Aug 22, 2013 12:57 pm
by zip
open new topic please

Re: [SOLVED] WDTV Live loses connection to Serviio

PostPosted: Mon Mar 17, 2014 11:15 pm
by mrfatbat
I just wanted to shout and say thanks to everyone on this thread, this saved my ass, I honestly thought my wdtv hub was going into the bin.

AWESOME ^ MAX.

Re: [SOLVED] WDTV Live loses connection to Serviio

PostPosted: Mon Apr 14, 2014 11:50 pm
by piccolo
Hi,

What file do I edit in Linix and what do I add to the file.

Thanks.