{"id":644,"date":"2012-01-20T06:27:09","date_gmt":"2012-01-20T06:27:09","guid":{"rendered":"http:\/\/poojanwagh.opalstacked.com\/techblog\/?p=644"},"modified":"2012-01-20T06:31:54","modified_gmt":"2012-01-20T06:31:54","slug":"subsonic-cant-bind-to-address-on-freebsd-dual-stack","status":"publish","type":"post","link":"https:\/\/tech.poojanblog.com\/blog\/unix-linux\/subsonic-cant-bind-to-address-on-freebsd-dual-stack\/","title":{"rendered":"Subsonic can&#8217;t bind to address on FreeBSD dual stack"},"content":{"rendered":"<p>Either build Java without IPv6, or you need the following in \/etc\/rc.conf:<br \/>\n<code><br \/>\ntomcat60_enable=&#8221;YES&#8221;<br \/>\ntomcat60_java_opts=&#8221;-Djava.awt.headless=true -Djava.net.preferIPv4Stack=true&#8221;<br \/>\n<\/code><\/p>\n<p>(The <code>java.awt.headless<\/code> is if you&#8217;re running without an X console.)<\/p>\n<p>Also, delete everyting in <code>\/usr\/local\/apache-tomcat-6.0\/webapps\/<\/code> except for <code>subsonic<\/code> and <code>subsonic.war<\/code> and rename these <code>ROOT<\/code> and <code>ROOT.war<\/code> respectively. Make sure <code>www:www<\/code> is the owner of everything (including your subsonic databases in <code>\/var\/subsonic<\/code>).<\/p>\n<p>While you&#8217;re here, edit <code>webapps\/ROOT\/WEB-INF\/classes\/ehcache.xml<\/code> and change to (just an example):<\/p>\n<code><\/p>\n<p>&lt;cache name=&#8221;musicFolderCache&#8221;<br \/>\nmaxElementsInMemory=&#8221;128&#8243;<br \/>\neternal=&#8221;true&#8221;<br \/>\ndiskPersistent=&#8221;true&#8221;<br \/>\noverflowToDisk=&#8221;true&#8221;\/&gt;<\/p>\n<p>&lt;cache name=&#8221;chatCache&#8221;<br \/>\nmaxElementsInMemory=&#8221;128&#8243;<br \/>\neternal=&#8221;true&#8221;<br \/>\ndiskPersistent=&#8221;true&#8221;<br \/>\noverflowToDisk=&#8221;true&#8221;\/&gt;<br \/>\n<\/code>\n<div class='wp_likes' id='wp_likes_post-644'><a class='like' href=\"javascript:wp_likes.like(644);\" title='' ><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/tech.poojanblog.com\/blog\/wp-content\/plugins\/wp-likes\/images\/like.png\" alt='' border='0'\/><\/a><span class='text'>Be the first to like.<\/span><\/p>\n<div class='like' ><a href=\"javascript:wp_likes.like(644);\">Like<\/a><\/div>\n<div class='unlike' ><a href=\"javascript:wp_likes.unlike(644);\">Unlike<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Either build Java without IPv6, or you need the following in \/etc\/rc.conf: (The is if you&#8217;re running without an X console.) Also, delete everyting in except for and and rename these and respectively. Make sure is the owner of everything (including your subsonic databases in ). While you&#8217;re here, edit and change to (just an [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[10],"tags":[12,182,181],"class_list":["post-644","post","type-post","status-publish","format-standard","hentry","category-unix-linux","tag-freebsd","tag-ipv6","tag-subsonic"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/posts\/644","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/comments?post=644"}],"version-history":[{"count":4,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/posts\/644\/revisions"}],"predecessor-version":[{"id":651,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/posts\/644\/revisions\/651"}],"wp:attachment":[{"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/media?parent=644"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/categories?post=644"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/tags?post=644"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}