<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>GString *blog = g_string_new(&#34;Hacking&#34;); &#187; GNU/Linux</title>
	<atom:link href="http://gabrielfalcao.com/category/gnu-linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://gabrielfalcao.com</link>
	<description>Hacking for a better world</description>
	<lastBuildDate>Thu, 21 Jan 2010 10:59:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Solving &#8220;connection refused&#8221; issues on Debian Sid</title>
		<link>http://gabrielfalcao.com/2010/01/05/solving-connection-refused-issues-on-debian-sid/</link>
		<comments>http://gabrielfalcao.com/2010/01/05/solving-connection-refused-issues-on-debian-sid/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 01:43:27 +0000</pubDate>
		<dc:creator>Gabriel Falcão</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[agile]]></category>

		<guid isPermaLink="false">http://gabrielfalcao.com/?p=143</guid>
		<description><![CDATA[Some weeks ago I started to experiment some network issues on my debian sid:

The selenium-remote-control was not running:

I could even try to do a: &#8220;telnet localhost 4444&#8243;, it just did not work.

My Apache-Solr was not capable to subscribe to apache-activemq

When reading the log, I saw:

javax.jms.JMSException: Could not connect to broker URL: tcp://localhost:61616. Reason: java.net.ConnectException: Connection [...]]]></description>
			<content:encoded><![CDATA[<p>Some weeks ago I started to experiment some network issues on my debian sid:</p>
<ul>
<li>The selenium-remote-control was not running:</li>
</ul>
<p>I could even try to do a: &#8220;telnet localhost 4444&#8243;, it just did not work.</p>
<ul>
<li>My Apache-Solr was not capable to subscribe to apache-activemq</li>
</ul>
<p>When reading the log, I saw:</p>
<pre>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 57px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">javax.jms.JMSException: Could not connect to broker URL: tcp://localhost:61616. Reason: java.net.ConnectException: Connection refused</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 57px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="white-space: pre;"> </span>at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:35)</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 57px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="white-space: pre;"> </span>at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:280</div>

Could not connect to broker URL: tcp://localhost:61616. Reason: java.net.ConnectException: Connection refused</pre>
<pre>Suddenly I noticed something weird in my netstat:</pre>
<pre>tcp6       0      0 :::8983                 :::*                    LISTEN      3865/solr-globocom
tcp6       0      0 :::8161                 :::*                    LISTEN      3901/activemq-globo
tcp6       0      0 :::61616                :::*                    LISTEN      3901/activemq-globo
tcp6       0      0 127.0.0.1:41879         127.0.0.1:61616         ESTABLISHED 3865/solr-globocom
tcp6       0      0 127.0.0.1:61616         127.0.0.1:41879         ESTABLISHED 3901/activemq-globo</pre>
<p>Everything is being bound as IPv6&#8230; humm, that doesn&#8217;t have a good smell&#8230;.</p>
<p>Looking for solutions I&#8217;ve found this file:</p>
<pre>/etc/sysctl.d/bindv6only.conf</pre>
<p>interesting, huh?!?</p>
<p>Openning up that file, I saw a full description of it, then I just needed to change its property from this:</p>
<pre>net.ipv6.bindv6only = 1</pre>
<p>to this:</p>
<pre>net.ipv6.bindv6only = 0</pre>
<pre>Well, if you have the same problem, jsut change that, restart your PC, and be happy!</pre>
]]></content:encoded>
			<wfw:commentRss>http://gabrielfalcao.com/2010/01/05/solving-connection-refused-issues-on-debian-sid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
