FAQ  •  Register  •  Login

[SOLVED] WDTV Live loses connection to Serviio

<<

efitol

Serviio newbie

Posts: 6

Joined: Thu Mar 28, 2013 6:42 pm

Location: South Africa

Post Thu Mar 28, 2013 6:51 pm

[SOLVED] WDTV Live loses connection to Serviio

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.
Last edited by efitol on Tue Apr 02, 2013 6:54 am, edited 1 time in total.
<<

efitol

Serviio newbie

Posts: 6

Joined: Thu Mar 28, 2013 6:42 pm

Location: South Africa

Post Thu Mar 28, 2013 6:54 pm

Re: WDTV Live loses connection to Serviio

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
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Mar 28, 2013 7:33 pm

Re: WDTV Live loses connection to Serviio

this means the WDTV sends byebye message (ie is turning off). Did you change firmware on the player recently?
<<

efitol

Serviio newbie

Posts: 6

Joined: Thu Mar 28, 2013 6:42 pm

Location: South Africa

Post Thu Mar 28, 2013 8:21 pm

Re: WDTV Live loses connection to Serviio

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.
<<

efitol

Serviio newbie

Posts: 6

Joined: Thu Mar 28, 2013 6:42 pm

Location: South Africa

Post Mon Apr 01, 2013 9:33 am

Re: WDTV Live loses connection to Serviio

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.
<<

efitol

Serviio newbie

Posts: 6

Joined: Thu Mar 28, 2013 6:42 pm

Location: South Africa

Post Mon Apr 01, 2013 11:02 am

Re: WDTV Live loses connection to Serviio

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.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Apr 01, 2013 10:57 pm

Re: WDTV Live loses connection to Serviio

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.
<<

efitol

Serviio newbie

Posts: 6

Joined: Thu Mar 28, 2013 6:42 pm

Location: South Africa

Post Tue Apr 02, 2013 6:56 am

Re: [SOLVED] WDTV Live loses connection to Serviio

Well that seems to have fixed it, no disconnects so far. Marking this as solved. Thanks for the help.
<<

the_hamburger

Streaming enthusiast

Posts: 27

Joined: Wed Jun 13, 2012 1:57 am

Post Mon Apr 08, 2013 1:48 pm

Re: [SOLVED] WDTV Live loses connection to Serviio

I seem to be having the same problem.

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

Thanks
<<

the_hamburger

Streaming enthusiast

Posts: 27

Joined: Wed Jun 13, 2012 1:57 am

Post Mon Apr 08, 2013 2:44 pm

Re: [SOLVED] WDTV Live loses connection to Serviio

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
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Apr 09, 2013 12:49 pm

Re: [SOLVED] WDTV Live loses connection to Serviio

add this

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


after

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

the_hamburger

Streaming enthusiast

Posts: 27

Joined: Wed Jun 13, 2012 1:57 am

Post Wed Apr 10, 2013 12:36 pm

Re: [SOLVED] WDTV Live loses connection to Serviio

Thanks!
<<

cswnow

Serviio newbie

Posts: 2

Joined: Thu Apr 11, 2013 1:29 am

Post Thu Apr 11, 2013 2:50 am

Re: [SOLVED] WDTV Live loses connection to Serviio

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.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Apr 11, 2013 7:04 pm

Re: [SOLVED] WDTV Live loses connection to Serviio

Notepad is fine. There should be something like -XmxXXX in there, otherwise empty
<<

cswnow

Serviio newbie

Posts: 2

Joined: Thu Apr 11, 2013 1:29 am

Post Mon Apr 15, 2013 12:27 am

Re: [SOLVED] WDTV Live loses connection to Serviio

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.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Apr 15, 2013 12:11 pm

Re: [SOLVED] WDTV Live loses connection to Serviio

No, this example is for Mac. For Windows, just add a new line to the file like

  Code:
-Dserviio.advertisementDuration=864000
<<

Koramchad

User avatar

Serviio newbie

Posts: 10

Joined: Wed Aug 21, 2013 2:24 pm

Post Wed Aug 21, 2013 2:27 pm

Re: [SOLVED] WDTV Live loses connection to Serviio

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!
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Aug 22, 2013 12:57 pm

Re: [SOLVED] WDTV Live loses connection to Serviio

open new topic please
<<

mrfatbat

Serviio newbie

Posts: 3

Joined: Sat Mar 15, 2014 10:44 pm

Post Mon Mar 17, 2014 11:15 pm

Re: [SOLVED] WDTV Live loses connection to Serviio

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.
<<

piccolo

Serviio newbie

Posts: 5

Joined: Fri Apr 13, 2012 11:53 pm

Post Mon Apr 14, 2014 11:50 pm

Re: [SOLVED] WDTV Live loses connection to Serviio

Hi,

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

Thanks.
Next

Return to Serviio Support & Help

Who is online

Users browsing this forum: Baidu [Spider] and 75 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.