Page 1 of 1

Connecting Sonos to RemoteSubsonicServer on QNAP NAS

PostPosted: Mon Jul 13, 2015 9:36 pm
by kaggo
Hi,

I tried to connect my Sonos to a remote subsonic server with the configuration taken from
http://www.subsonic.org/pages/sonos.jsp.

The Android app works fine from outside.
But with sonos app, although I was able to connect to the subsonic server with the complete listing of all my music but
none of the album-covers were displayed correctly and when I start playing, the app aborted after 10 seconds with the following german error message:
"Wiedergabe von <title> nicht möglich - Verbindung mit Subsonic nicht möglich" which means
"Playback of <title> not possible - connection to subsonic not possible.
I use a 1,1 Mbit/s upload dataspeed on server side which has to be buffered on client-side... could that be the problem?
But - as I said - with the android subsonic app it works fine (after buffering some seconds).
In my local network it works without any problems.
And the configuration might be correct, otherwise I would not have access to all of my music which was listed correctly.

Do you have any ideas how to sove this issue?

Thanks in advance,
Thomas

Re: Connecting Sonos to a Remote Subsonic Server

PostPosted: Sat Jul 18, 2015 10:24 am
by kaggo
I solved the problem.
I am using Subsonic on an QNAP NAS device with unix os.
Subsonic was installed as a web-application within a tomcat environment.
Therefore my subsonic address had the following syntax:
http://<IP from outside>:7080/subsonic, (7080 was the tomcat-port)

I got the remote access working with the following restrictions/changes:
  • I changed tomcat configuration to be able to directly access to subsonic when calling
    http://<tomcatIP>:<tomcatPort> with no need of the postfix "/subsonic":
    • stop tomcat
      Code: Select all
      /etc/init.d/tomcat.sh stop
    • chang to tomcat directory
      Code: Select all
      cd /share/MD3_DATA/.qpkg/Tomcat/tomcat/webapps
    • rename tomcat root-applicaton
      Code: Select all
      mv ROOT admin
    • set subsonic as default tomcat root-application
      Code: Select all
      mv subsonic.war ROOT.war
    • delete subsonic directory
      Code: Select all
      rm -rf subsonic
    • correct permissions
      Code: Select all
      chown -R tomcat /share/MD3_DATA/subsonic /var/subsonic
    • restart tomcat
      Code: Select all
      /etc/init.d/tomcat.sh start
    • or restart complete NAS server
  • Changed tomcat standard-port in server.xml
    Code: Select all
    <Connector port="4040" protocol="HTTP/1.1"
          connectionTimeout="20000"
          redirectPort="8443" />
  • changed port-forwarding by taking also here the port 4040
  • and I was also not able to use my symolic address completely from dynamic dns provider.
    The Endpoint URL and the Secure Endpoint URL uses now a mix of dynamicIP and static ip, like that:
    Code: Select all
    http://SUBSONIC_DYNAMIC_IP:4040/ws/Sonos?ip=SUBSONIC_STATIC_IP

    otherwise I got an error when trying to save the configuration in
    http://SONOS_IP:1400/customsd.htm