FAQ  •  Register  •  Login

Configure console for remote host

<<

some_idiot

Serviio newbie

Posts: 4

Joined: Sat Apr 27, 2013 8:48 pm

Post Sun Apr 28, 2013 6:09 pm

Configure console for remote host

I am running the serviio server on an xbmcbuntu htpc, and can't get the damn thing to run the console so I can configure it.

I'm trying to remotely access using the console a windows machine. I can't find any examples of how to get this to work!

Can somebody please post a working copy of the JAVA_OPTS line from a console.bat configured with the remoteHost set so I can see exactly the syntax required? The line by default has quote marks in weird places, I don't know if it matters in what order the variables are set, and when I do try running it after editing, it winds up creating a folder named for the line in the script.

This would all be avoidable if there were just a damn config file local to the server where you could specify the paths to the media. All I'm trying to do is tell the thing where to find my files, and it's taking forever to figure it out. Why is this so complicated?

Also, YES, I have seen the help pages that say "set the parameter" and they are not specific enough for me. I have read multiple other threads on this issue and have not seen anyone explain in the end how, or if, they got it to work.

Any help on this extremely frustrating problem would be very appreciated.
<<

will

DLNA master

Posts: 2128

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Sun Apr 28, 2013 6:24 pm

Re: Configure console for remote host

You should add the following (without quotes) "-Dserviio.remoteHost=192.168.1.15" at the begining or end of the JAVA_OPTS variable, or just place it into ServiioConsole.exe.vmoptions file (which is what I use when I need to as its a bit cleaner).

E.g. serviio-console.bat
  Code:
@echo off

set BATCH_FILE=%~dp0
pushd %BATCH_FILE%..
set SERVIIO_CONSOLE_HOME=%CD%
popd

SET START_COMMAND=start javaw

if not "%1" == "-stop" goto RUN_APP
rem when stopping don't run in asynch mode
SET START_COMMAND=javaw

:RUN_APP
set JAVA_OPTS=-Dserviio.home="%SERVIIO_CONSOLE_HOME%" -Djava.net.preferIPv4Stack=true -Dserviio.remoteHost=192.168.1.15
set SERVIIO_CONSOLE_CLASS_PATH=%SERVIIO_CONSOLE_HOME%\lib\*;%SERVIIO_CONSOLE_HOME%\config
                  
%START_COMMAND% -Xms5M -XX:+UseParNewGC -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 %JAVA_OPTS% -classpath "%SERVIIO_CONSOLE_CLASS_PATH%" org.serviio.console.ServiioConsole %*


or ServiioConsole.exe.vmoptions
  Code:
-Dserviio.remoteHost=192.168.1.15
Will
Beta Tester Group
ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: More info

Player: Sony BDP S370 | Server: Debian 6.0 x86
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play
<<

some_idiot

Serviio newbie

Posts: 4

Joined: Sat Apr 27, 2013 8:48 pm

Post Sun Apr 28, 2013 6:39 pm

Re: Configure console for remote host

Heyyy, it is trying to remote now - a step forward. I used the vmoptions option. Thank you for this.

It doesn't actually connect, though. I have opened port 23423 on the server. The log reads:
  Code:
2013-04-28 14:36:27,456 INFO  [ServiioConsole] Starting Serviio Console
2013-04-28 14:36:27,499 INFO  [ServiioConsole] Connecting to Serviio REST on 192.168.1.99:23423
2013-04-28 14:36:28,277 INFO  [Messages] Loaded console message bundle for locale: en
2013-04-28 14:36:31,199 ERROR [ServiioConsole] Unexpected exception occured:  : null
com.thoughtworks.xstream.io.StreamException:  : null
   at com.thoughtworks.xstream.io.xml.DomDriver.createReader(DomDriver.java:107)
   at com.thoughtworks.xstream.io.xml.DomDriver.createReader(DomDriver.java:81)
   at com.thoughtworks.xstream.XStream.fromXML(XStream.java:921)
   at org.restlet.ext.xstream.XstreamRepresentation.getObject(XstreamRepresentation.java:163)
   at org.restlet.ext.xstream.XstreamConverter.toObject(XstreamConverter.java:197)
   at org.serviio.console.RestletClient.manageResourceException(RestletClient.java:66)
   at org.serviio.console.RestletClient.manageResourceException(RestletClient.java:52)
   at org.serviio.ui.view.swing.StatusView.prepareNICsCombo(StatusView.java:157)
   at org.serviio.ui.view.swing.StatusView.initComponents(StatusView.java:132)
   at org.serviio.ui.view.swing.StatusView.<init>(StatusView.java:100)
   at org.serviio.ui.view.swing.ServiioFrameView.<init>(ServiioFrameView.java:75)
   at org.serviio.console.ServiioConsole.main(ServiioConsole.java:106)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
   at com.exe4j.runtime.WinLauncher.main(Unknown Source)
Caused by: java.net.MalformedURLException
   at java.net.URL.<init>(Unknown Source)
   at java.net.URL.<init>(Unknown Source)
   at java.net.URL.<init>(Unknown Source)
   at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
   at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
   at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
   at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
   at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
   at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
   at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
   at com.thoughtworks.xstream.io.xml.DomDriver.createReader(DomDriver.java:98)
   ... 17 more
Caused by: java.lang.NullPointerException
   ... 28 more
2013-04-28 14:36:31,201 INFO  [ServiioConsole] Leaving Serviio Console


Any ideas?
edit: Also, yes, i'm sure the server is running on the machine at the target address. In serviio.conf i have added LANG=en_US.utf8 before the path to serviio, and it did not fix this.
<<

will

DLNA master

Posts: 2128

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Sun Apr 28, 2013 6:57 pm

Re: Configure console for remote host

Just to check, they are the same version (i.e. both 1.2.1?)
Will
Beta Tester Group
ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: More info

Player: Sony BDP S370 | Server: Debian 6.0 x86
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play
<<

some_idiot

Serviio newbie

Posts: 4

Joined: Sat Apr 27, 2013 8:48 pm

Post Sun Apr 28, 2013 7:03 pm

Re: Configure console for remote host

The release notes for the server side say 1.0.1
perhaps I grabbed an old version following these instructions?
http://wiki.serviio.org/doku.php?id=how ... all:ubuntu

The release notes for the console say 1.2.1

Guess I'll try updating the server
<<

will

DLNA master

Posts: 2128

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Sun Apr 28, 2013 7:14 pm

Re: Configure console for remote host

Ah, that needs updating, yes get the latest one from the website. The server and console are tightly coupled so the console will not work if the server version is different.
Will
Beta Tester Group
ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: More info

Player: Sony BDP S370 | Server: Debian 6.0 x86
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play
<<

some_idiot

Serviio newbie

Posts: 4

Joined: Sat Apr 27, 2013 8:48 pm

Post Sun Apr 28, 2013 7:21 pm

Re: Configure console for remote host

Will,

Thanks a ton. I've been struggling with this install for weeks and you solved my problems in minutes. It's working now.

Really, thank you, it was driving me crazy. Woo!
<<

robinthakur

Serviio newbie

Posts: 2

Joined: Thu May 16, 2013 10:43 pm

Post Tue May 28, 2013 12:05 am

Re: Configure console for remote host

When I add the serviio.remoteHost parameter, I get the following in the log

2013-05-28 01:54:56,471 INFO [ServiioConsole] Starting Serviio Console
2013-05-28 01:54:56,524 INFO [ServiioConsole] Connecting to Serviio REST on 192.168.1.25:23423
2013-05-28 01:54:57,131 INFO [Messages] Loaded console message bundle for locale: en
2013-05-28 01:54:58,922 ERROR [ServiioConsole] Unexpected exception occured: No such field org.serviio.restlet.ResultRepresentation.httpCode
---- Debugging information ----
field : httpCode
class : org.serviio.restlet.ResultRepresentation
required-type : org.serviio.restlet.ResultRepresentation
converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
path : /result/httpCode
version : null
-------------------------------
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$UnknownFieldException: No such field org.serviio.restlet.ResultRepresentation.httpCode
---- Debugging information ----
field : httpCode
class : org.serviio.restlet.ResultRepresentation
required-type : org.serviio.restlet.ResultRepresentation
converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
path : /result/httpCode
version : null
-------------------------------
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.determineType(AbstractReflectionConverter.java:453)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:294)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:234)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1052)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1036)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:921)
at org.restlet.ext.xstream.XstreamRepresentation.getObject(XstreamRepresentation.java:163)
at org.restlet.ext.xstream.XstreamConverter.toObject(XstreamConverter.java:197)
at org.serviio.console.RestletClient.manageResourceException(RestletClient.java:66)
at org.serviio.console.RestletClient.manageResourceException(RestletClient.java:52)
at org.serviio.ui.view.swing.StatusView.prepareNICsCombo(StatusView.java:157)
at org.serviio.ui.view.swing.StatusView.initComponents(StatusView.java:132)
at org.serviio.ui.view.swing.StatusView.<init>(StatusView.java:100)
at org.serviio.ui.view.swing.ServiioFrameView.<init>(ServiioFrameView.java:75)
at org.serviio.console.ServiioConsole.main(ServiioConsole.java:106)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.exe4j.runtime.WinLauncher.main(Unknown Source)
2013-05-28 01:54:58,925 INFO [ServiioConsole] Leaving Serviio Console

Any ideas?

Thanks,
Rob
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17051

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue May 28, 2013 11:54 am

Re: Configure console for remote host

Looks like you're running UI which is not compatible with the Server.

Return to NAS installation

Who is online

Users browsing this forum: No registered users and 7 guests

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