Page 1 of 1

Problem connecting to Ubuntu server from OS X console

PostPosted: Sun Mar 25, 2012 11:08 pm
by 13eastie
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.

Re: Problem connecting to Ubuntu server from OS X console

PostPosted: Mon Mar 26, 2012 11:59 am
by zip
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.

Re: Problem connecting to Ubuntu server from OS X console

PostPosted: Mon Mar 26, 2012 6:44 pm
by 13eastie
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

Re: Problem connecting to Ubuntu server from OS X console

PostPosted: Tue Mar 27, 2012 5:01 pm
by zip
Are you using 0.6.2 or 0.5.2 ?

Re: Problem connecting to Ubuntu server from OS X console

PostPosted: Tue Mar 27, 2012 6:14 pm
by 13eastie
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.

Re: Problem connecting to Ubuntu server from OS X console

PostPosted: Wed Mar 28, 2012 12:59 pm
by zip
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.

Re: Problem connecting to Ubuntu server from OS X console

PostPosted: Sat Mar 31, 2012 10:58 am
by 13eastie
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.