Skip to content

Subsonic can’t bind to address on FreeBSD dual stack

Either build Java without IPv6, or you need the following in /etc/rc.conf:

tomcat60_enable=”YES”
tomcat60_java_opts=”-Djava.awt.headless=true -Djava.net.preferIPv4Stack=true”

(The java.awt.headless is if you’re running without an X console.)

Also, delete everyting in /usr/local/apache-tomcat-6.0/webapps/ except for subsonic and subsonic.war and rename these ROOT and ROOT.war respectively. Make sure www:www is the owner of everything (including your subsonic databases in /var/subsonic).

While you’re here, edit webapps/ROOT/WEB-INF/classes/ehcache.xml and change to (just an example):

<cache name=”musicFolderCache”
maxElementsInMemory=”128″
eternal=”true”
diskPersistent=”true”
overflowToDisk=”true”/>

<cache name=”chatCache”
maxElementsInMemory=”128″
eternal=”true”
diskPersistent=”true”
overflowToDisk=”true”/>

Be the first to like.

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*