FAQ  •  Register  •  Login

Problem connecting to Ubuntu server from OS X console

<<

13eastie

Serviio newbie

Posts: 5

Joined: Sun Mar 25, 2012 6:45 pm

Post Sun Mar 25, 2012 11:08 pm

Problem connecting to Ubuntu server from OS X console

Hi - I'm pretty new to this - I seem to have reached an impasse configuring my new Serviio 0.5.2 server.

My setup is as follows (with no firewall activated on any machine):

- Serviio server running on a clean install of Ubuntu 11.10 64-bit (IP address 192.168.0.10).
- Serviio console running on Mac OS X 10.7.3
- Sony SMP-N200 media player to play .mp3's stored on the server

I appear to have successfully installed the server using these instructions with confirmation as follows:

  Code:
~$ initctl list | grep serviio
serviio start/running, process 785
~$ sudo netstat -anltp | grep "23423"
tcp        0      0 127.0.0.1:23423         0.0.0.0:*               LISTEN      797/java


I've updated the server's hosts file as per these instructions.

On the Mac (on which I've installed the console) I have amended the Info.plist file as follows:
  Code:
<key>Properties</key>
      <dict>
         <key>serviio.home</key>
         <string>$JAVAROOT</string>
         <key>java.net.preferIPv4Stack</key>
         <string>true</string>
         <key>serviio.remoteHost</key>
         <string>192.168.0.10</string>
      </dict>


Attempting to launch the console, I get an error message stating, "Cannot connect to Serviio server, it does not seem to be running. Exiting..."

serviio.log reads:

  Code:
2012-03-25 22:07:54,156 INFO  [ServiioConsole] Starting Serviio Console
2012-03-25 22:07:54,346 INFO  [ServiioConsole] Connecting to Serviio REST on 192.168.0.10:23423
2012-03-25 22:07:58,592 WARN  [ServiioConsole] Cannot connect to the server to get DB initialization info
2012-03-25 22:08:02,653 WARN  [ServiioConsole] Cannot connect to server: Connection Error (1000) - Connection refused
2012-03-25 22:08:02,661 INFO  [Messages] Loaded console message bundle for locale: en
2012-03-25 22:08:06,716 WARN  [ServiioConsole] Cannot connect to server: Connection Error (1000) - Connection refused
2012-03-25 22:09:16,834 INFO  [ServiioConsole] Leaving Serviio Console


The media player detects the Serviio server correctly, but cannot be used properly until I can point the server at my content.

I've obviously missed something, but I cannot find what it is!

I'd be very grateful for a pointer to what I expect is a simple solution to the problem.

Many thanks.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Mar 26, 2012 11:59 am

Re: Problem connecting to Ubuntu server from OS X console

can you open this URL on your Mac?

  Code:
http://192.168.0.10:23423/rest/application


If not, can you ping 192.168.0.10 from your Mac? If not, it must be related to your hosts file or some other networking issue.
<<

13eastie

Serviio newbie

Posts: 5

Joined: Sun Mar 25, 2012 6:45 pm

Post Mon Mar 26, 2012 6:44 pm

Re: Problem connecting to Ubuntu server from OS X console

Thanks very much for the reply.

zip wrote:can you open this URL on your Mac?

  Code:
http://192.168.0.10:23423/rest/application

No

zip wrote:If not, can you ping 192.168.0.10 from your Mac? If not, it must be related to your hosts file or some other networking issue.

Yes
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Mar 27, 2012 5:01 pm

Re: Problem connecting to Ubuntu server from OS X console

Are you using 0.6.2 or 0.5.2 ?
<<

13eastie

Serviio newbie

Posts: 5

Joined: Sun Mar 25, 2012 6:45 pm

Post Tue Mar 27, 2012 6:14 pm

Re: Problem connecting to Ubuntu server from OS X console

zip wrote:Are you using 0.6.2 or 0.5.2 ?


Hi Petr - I've changed to 0.6.2, but am still having the same problem.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Mar 28, 2012 12:59 pm

Re: Problem connecting to Ubuntu server from OS X console

Looks like the server side is not right - the hosts file. Serviio should not bind to the loopback IP address, rather it should bund to either *:23423 or extarnal_IP:23423

Alternatively you can use one of the web based UI's instead of the remote console.
<<

13eastie

Serviio newbie

Posts: 5

Joined: Sun Mar 25, 2012 6:45 pm

Post Sat Mar 31, 2012 10:58 am

Re: Problem connecting to Ubuntu server from OS X console

Seemed to take a reboot on the server for it to pick up the change to the hosts file.

The remote console on the Macbook is now working great, than you.

Return to Serviio Support & Help

Who is online

Users browsing this forum: Google [Bot] and 46 guests

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