<?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>Agile Hacking &#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>The GNUs of mine, and its green builds</description>
	<lastBuildDate>Tue, 08 Jun 2010 13:22:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</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:
Could not connect to broker URL: tcp://localhost:61616. Reason: java.net.ConnectException: Connection refused
Suddenly [...]]]></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>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Could not connect to broker URL: tcp:<span style="color: #000000; font-weight: bold;">//</span>localhost:<span style="color: #000000;">61616</span>. Reason: java.net.ConnectException: Connection refused<br />
Suddenly I noticed something weird <span style="color: #000000; font-weight: bold;">in</span> my <span style="color: #c20cb9; font-weight: bold;">netstat</span>:<br />
<br />
tcp6       <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span> :::<span style="color: #000000;">8983</span>                 :::<span style="color: #000000; font-weight: bold;">*</span>                    LISTEN      <span style="color: #000000;">3865</span><span style="color: #000000; font-weight: bold;">/</span>solr-globocom<br />
tcp6       <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span> :::<span style="color: #000000;">8161</span>                 :::<span style="color: #000000; font-weight: bold;">*</span>                    LISTEN      <span style="color: #000000;">3901</span><span style="color: #000000; font-weight: bold;">/</span>activemq-globo<br />
tcp6       <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span> :::<span style="color: #000000;">61616</span>                :::<span style="color: #000000; font-weight: bold;">*</span>                    LISTEN      <span style="color: #000000;">3901</span><span style="color: #000000; font-weight: bold;">/</span>activemq-globo<br />
tcp6       <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span> 127.0.0.1:<span style="color: #000000;">41879</span>         127.0.0.1:<span style="color: #000000;">61616</span>         ESTABLISHED <span style="color: #000000;">3865</span><span style="color: #000000; font-weight: bold;">/</span>solr-globocom<br />
tcp6       <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span> 127.0.0.1:<span style="color: #000000;">61616</span>         127.0.0.1:<span style="color: #000000;">41879</span>         ESTABLISHED <span style="color: #000000;">3901</span><span style="color: #000000; font-weight: bold;">/</span>activemq-globo</div></div>
<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>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>sysctl.d<span style="color: #000000; font-weight: bold;">/</span>bindv6only.conf</div></div>
<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>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">net.ipv6.bindv6only = <span style="color: #000000;">1</span></div></div>
<p>to this:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">net.ipv6.bindv6only = <span style="color: #000000;">0</span></div></div>
<p>Well, if you have the same problem, jsut change that, restart your PC, and be happy!</p>
]]></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>
