FAQ  •  Register  •  Login

Headless Serviio on Ubuntu

<<

amerkfan

Serviio newbie

Posts: 5

Joined: Mon Feb 18, 2013 6:55 pm

Post Wed Jun 26, 2013 12:48 pm

Headless Serviio on Ubuntu

Let me preface this by saying I am a newbie. I have recently installed a headless Serviio on my ubuntu 12.04 server, it starts fine, but when I try to access it from the Media Browser I cannot get past the password. The error is "Unable to login, please check your password and try again". Most the posts I have read say you have to have the license installed to use the UI remotely. I have a Pro license but since there is no access to the UI, how do I install it?

I tried to use curl -i -H "Content-Type: plain/text; Accept: application/json" -X PUT "http://127.0.0.1:23423/rest/license-upload" -T /tmp/Serviio_7my long number28.lic to install the license and received this:
HTTP/1.1 200 OK
Connection: close
Transfer-Encoding: chunked
Date: Wed, 26 Jun 2013 12:40:02 GMT
Server: Restlet-Framework/@major-number@.@minor-number@@release-type@@release-number@
Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept
Content-Type: application/xml; charset=UTF-8

<?xml version="1.0" encoding="UTF-8" ?>
<result>
<errorCode>0</errorCode>

I enabled debugging in the log file. Here's the output from serviio.log:

2013-06-25 13:40:26,962 INFO [MediaServer] ------------------------------------------------------------------------
2013-06-25 13:40:26,964 INFO [MediaServer] Serviio DLNA media streaming server v 1.2.1 (rev. a2aa56064460+)
2013-06-25 13:40:26,964 INFO [MediaServer] Petr Nejedly 2009-2013
2013-06-25 13:40:26,964 INFO [MediaServer] http://www.serviio.org
2013-06-25 13:40:26,964 INFO [MediaServer]
2013-06-25 13:40:26,964 INFO [MediaServer] Java 1.6.0_27-Sun Microsystems Inc.
2013-06-25 13:40:26,964 INFO [MediaServer] OS Linux i386 3.5.0-34-generic
2013-06-25 13:40:26,964 INFO [MediaServer] File encoding: US-ASCII
2013-06-25 13:40:26,977 INFO [MediaServer] Headless mode enabled: true
2013-06-25 13:40:26,977 INFO [MediaServer] User: root
2013-06-25 13:40:26,977 INFO [MediaServer] User home dir: /root
2013-06-25 13:40:26,977 INFO [MediaServer] Temp dir: /tmp
2013-06-25 13:40:26,977 INFO [MediaServer] ------------------------------------------------------------------------
2013-06-25 13:40:27,549 INFO [WebServer] Socket buffer set to 65535 bytes
2013-06-25 13:40:27,560 INFO [RestletServer] Starting Restlet server (/rest) exposed on port 23423
2013-06-25 13:40:27,678 INFO [RestletServer] Starting Restlet server (/cds) exposed on port 23424
2013-06-25 13:40:27,682 INFO [RestletServer] Starting Restlet server (/mediabrowser) exposed on port 23424
2013-06-25 13:40:27,814 INFO [DBSchemaUpdateExecutor] Checking if DB schema needs to be updated
2013-06-25 13:40:42,074 INFO [DBSchemaUpdateExecutor] Updating DB schema
2013-06-25 13:41:09,411 INFO [DBSchemaUpdateExecutor] Cleaning persistent cache
2013-06-25 13:41:09,772 INFO [Device] Created UPnP Device with UUID: 75b3e073-9f6c-3927-a554-9434ba3ca28c, bound address: 192.168.0.55
2013-06-25 13:41:09,820 WARN [IndexedDiskCache] Region [online_technical_metadata] Reseting cache
2013-06-25 13:41:10,808 INFO [MediaServer] ------------------------------------------------------------------------
2013-06-25 13:41:10,808 INFO [MediaServer] License: FREE
2013-06-25 13:41:10,808 INFO [MediaServer] ------------------------------------------------------------------------
2013-06-25 13:41:11,599 INFO [ProfilesDefinitionParser] Parsing Profiles definition
2013-06-25 13:41:11,798 INFO [ProfilesDefinitionParser] Added profile 'Generic DLNA profile' (id=1)
2013-06-25 13:41:11,818 INFO [ProfilesDefinitionParser] Added profile 'Samsung TV (B-series)' (id=2)
2013-06-25 13:41:11,837 INFO [ProfilesDefinitionParser] Added profile 'Xbox 360' (id=3)
2013-06-25 13:41:11,845 INFO [ProfilesDefinitionParser] Added profile 'Playstation 3' (id=4)
2013-06-25 13:41:11,846 INFO [ProfilesDefinitionParser] Added profile 'Samsung TV (A-series)' (id=5)
2013-06-25 13:41:11,921 INFO [ProfilesDefinitionParser] Added profile 'DirecTV HD-DVR' (id=6)
2013-06-25 13:41:11,951 INFO [ProfilesDefinitionParser] Added profile 'Samsung TV / player (C/D/E-series)' (id=7)
2013-06-25 13:41:11,955 INFO [ProfilesDefinitionParser] Added profile 'LG TV / player' (id=8)
2013-06-25 13:41:11,959 INFO [ProfilesDefinitionParser] Added profile 'Sony Bravia TV (2012)' (id=sony2012)
2013-06-25 13:41:11,961 INFO [ProfilesDefinitionParser] Added profile 'Sony BDP-Sx90 (2012)' (id=bdp2012)
2013-06-25 13:41:11,966 INFO [ProfilesDefinitionParser] Added profile 'Sony BDP-Sx70/SMP-N100 (2010)' (id=bdp2010)
2013-06-25 13:41:11,968 INFO [ProfilesDefinitionParser] Added profile 'Sony BDP-Sx70/SMP-N100 (2010) - US' (id=bdp2010us)
2013-06-25 13:41:11,969 INFO [ProfilesDefinitionParser] Added profile 'Sony BDP-Sx80/SMP-N200 (2011)' (id=bdp2011)

Curiously, ServiiDroid reports a valid license

The correct ports are open on the router, I previously had Serviio running on a Win 7 machine with no issues. the location of my installation is in /var/www/serviio-1.2.1.

So the questions are, how do I add the license, how can I change the user and how do I confirm the password is correct or change the password to allow me to use Media Browser?
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Wed Jun 26, 2013 1:08 pm

Re: Headless Serviio on Ubuntu

You can check on the license status by going to http://SERVER_IP:23423/rest/application as the log won't show the pro licence until you restart the server.

As you have ServiiDroid, go to advanced options click on Remote Settings->User Password, ServiiDroid can change every setting that the console can. If ServiiDroid says you have a valid licence including your name and email under advanced, licence, then you have a valid licence. If the licence isn't valid, then you can upload it using ServiiDroid, but the curl command you posted should have done the trick.

Otherwise you use the php webui or install just the console on your pc and point it to the server (http://www.serviio.org/component/conten ... e?id=21#q2)
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

amerkfan

Serviio newbie

Posts: 5

Joined: Mon Feb 18, 2013 6:55 pm

Post Wed Jun 26, 2013 3:11 pm

Re: Headless Serviio on Ubuntu

Thanks for the quick response. The license is installed correctly and confirmed as suggested. I still cannot connect remotely. I changed to password with ServiiDroid. Can it possibly be an ownership issue? How can I add users to the Media Browser? I see root is the default, how can I check to see if root is the owner?
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Wed Jun 26, 2013 3:34 pm

Re: Headless Serviio on Ubuntu

There is no user for MediaBrowser/ServiiGo so just the one password. If you can view the website/start the server, I doubt its a permissions problem with the filesystem.

Can you post a log of you trying to log in? What does MediaBrowser say when you log in? Which browser are you using?
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

amerkfan

Serviio newbie

Posts: 5

Joined: Mon Feb 18, 2013 6:55 pm

Post Wed Jun 26, 2013 4:13 pm

Re: Headless Serviio on Ubuntu

Thanks, I am using Firefox 21.0,
Media Browser message:" Unable to login, please check your password and try again"

Here's the log entry:
2013-06-26 12:08:55,621 WARN [ServiioStatusService] AuthenticationException occured. Returning error code 401 to the REST layer. Message: Received authentication doesn't match, probably wrong password.
2013-06-26 12:08:55,622 DEBUG [ServiioStatusService] Detailed exception:
org.serviio.restlet.AuthenticationException: Received authentication doesn't match, probably wrong password.
at org.serviio.upnp.service.contentdirectory.rest.resources.server.LoginServerResource.login(LoginServerResource.java:111)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.restlet.resource.ServerResource.doHandle(ServerResource.java:449)
at org.restlet.resource.ServerResource.post(ServerResource.java:1111)
at org.restlet.resource.ServerResource.doHandle(ServerResource.java:530)
at org.restlet.resource.ServerResource.doNegotiatedHandle(ServerResource.java:587)
at org.restlet.resource.ServerResource.doConditionalHandle(ServerResource.java:299)
at org.serviio.restlet.AbstractProEditionServerResource.doConditionalHandle(AbstractProEditionServerResource.java:35)
at org.serviio.upnp.service.contentdirectory.rest.resources.server.AbstractCDSServerResource.doConditionalHandle(AbstractCDSServerResource.java:52)
at org.restlet.resource.ServerResource.handle(ServerResource.java:846)
at org.restlet.resource.Finder.handle(Finder.java:510)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.routing.Filter.handle(Filter.java:203)
at org.restlet.routing.Router.doHandle(Router.java:497)
at org.restlet.routing.Router.handle(Router.java:737)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.routing.Filter.handle(Filter.java:203)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.engine.application.StatusFilter.doHandle(StatusFilter.java:151)
at org.restlet.routing.Filter.handle(Filter.java:203)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.routing.Filter.handle(Filter.java:203)
at org.restlet.engine.ChainHelper.handle(ChainHelper.java:111)
at org.restlet.engine.application.ApplicationHelper.handle(ApplicationHelper.java:72)
at org.restlet.Application.handle(Application.java:391)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.routing.Filter.handle(Filter.java:203)
at org.restlet.routing.Router.doHandle(Router.java:497)
at org.restlet.routing.Router.handle(Router.java:737)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.routing.Filter.handle(Filter.java:203)
at org.restlet.routing.Router.doHandle(Router.java:497)
at org.restlet.routing.Router.handle(Router.java:737)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.engine.application.StatusFilter.doHandle(StatusFilter.java:151)
at org.restlet.routing.Filter.handle(Filter.java:203)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.routing.Filter.handle(Filter.java:203)
at org.restlet.engine.ChainHelper.handle(ChainHelper.java:111)
at org.restlet.Component.handle(Component.java:388)
at org.restlet.Server.handle(Server.java:488)
at org.restlet.engine.http.connector.BaseServerHelper.handle(BaseServerHelper.java:158)
at org.restlet.engine.http.connector.BaseServerHelper.handleInbound(BaseServerHelper.java:167)
at org.restlet.engine.http.connector.BaseHelper.handleNextInbound(BaseHelper.java:418)
at org.restlet.engine.http.connector.Connection.readMessages(Connection.java:696)
at org.restlet.engine.http.connector.Controller$2.run(Controller.java:95)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:679)
2013-06-26 12:09:07,192 DEBUG [DiscoveryAdvertisementNotifier] Multicasting SSDP alive using interface eth0 (eth0) and address 192.168.0.55, timeout = 0
2013-06-26 12:09:07,192 DEBUG [DiscoveryAdvertisementNotifier] Sending 6 'alive' messages describing device 75b3e073-9f6c-3927-a554-9434ba3ca28c
<<

amerkfan

Serviio newbie

Posts: 5

Joined: Mon Feb 18, 2013 6:55 pm

Post Wed Jun 26, 2013 5:16 pm

Re: Headless Serviio on Ubuntu

Update:

After playing around with the settings using ServiiDroid, it is now working okay. I changed the password several times and then cleared the browser cache. This seemed to do the trick. Thanks for your help.

T
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Wed Jun 26, 2013 5:58 pm

Re: Headless Serviio on Ubuntu

Thats odd, guess the password must have been wrong. Glad its working now though.

Seeing as you have a pro licence, and and android device, be sure to check out ServiiGo (native Android version of MediaBrowser) on Google Play.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 88 guests

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