<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>DataStax Support Forums &#187; Topic: Error Connecting to Cluster</title>
		<link>http://www.datastax.com/support-forums/topic/error-connecting-to-cluster</link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Wed, 22 May 2013 03:46:03 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.3</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.datastax.com/support-forums/search.php</link>
		</textInput>
		<atom:link href="http://www.datastax.com/support-forums/rss/topic/error-connecting-to-cluster" rel="self" type="application/rss+xml" />

		<item>
			<title>geoff.wagner on "Error Connecting to Cluster"</title>
			<link>http://www.datastax.com/support-forums/topic/error-connecting-to-cluster#post-441</link>
			<pubDate>Mon, 15 Aug 2011 15:58:20 +0000</pubDate>
			<dc:creator>geoff.wagner</dc:creator>
			<guid isPermaLink="false">441@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;/sbin/service opscenterd start worked perfectly
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mbulman on "Error Connecting to Cluster"</title>
			<link>http://www.datastax.com/support-forums/topic/error-connecting-to-cluster#post-440</link>
			<pubDate>Mon, 15 Aug 2011 15:41:54 +0000</pubDate>
			<dc:creator>mbulman</dc:creator>
			<guid isPermaLink="false">440@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;What command are you using to start the opscenterd service?  We've seen some weirdness in the past when using /etc/init.d/opscenterd directly.  We recommend using &#60;code&#62;service opscenterd start&#124;stop&#124;restart&#60;/code&#62; to make sure things behave the way we expect.  Is that the case here?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>geoff.wagner on "Error Connecting to Cluster"</title>
			<link>http://www.datastax.com/support-forums/topic/error-connecting-to-cluster#post-439</link>
			<pubDate>Mon, 15 Aug 2011 13:25:16 +0000</pubDate>
			<dc:creator>geoff.wagner</dc:creator>
			<guid isPermaLink="false">439@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Thanks for the Fix!!  Here is a new startup log:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;
2011-08-15 08:23:10-0500 []  INFO: Log opened.&#60;br /&#62;
2011-08-15 08:23:10-0500 []  INFO: twistd 10.2.0 (/usr/bin/python2.6 2.6.5) starting up.&#60;br /&#62;
2011-08-15 08:23:10-0500 []  INFO: reactor class: twisted.internet.selectreactor.SelectReactor.&#60;br /&#62;
2011-08-15 08:23:10-0500 []  INFO: set uid/gid 101/103&#60;br /&#62;
2011-08-15 08:23:10-0500 []  INFO: Logging level set to 'debug'&#60;br /&#62;
2011-08-15 08:23:10-0500 []  INFO: OpsCenterdService startService&#60;br /&#62;
2011-08-15 08:23:10-0500 []  INFO: OpsCenter version: 1.2.3&#60;br /&#62;
2011-08-15 08:23:10-0500 []  INFO: Compatible agent version: 2.2&#60;br /&#62;
2011-08-15 08:23:10-0500 [] DEBUG: Logging user config options:&#60;br /&#62;
2011-08-15 08:23:10-0500 [] DEBUG: jmx : [('port', '7199')], logging : [('level', 'DEBUG')], webserver : [('interface', '0.0.0.0'), ('port', '8888')], authentication : [], cassandra_metrics : [('ignored_keyspaces', 'system, OpsCenter')], cassandra : [('seed_hosts', '10.45.8.61')],&#60;br /&#62;
2011-08-15 08:23:10-0500 []  INFO: HTTP BASIC authentication disabled&#60;br /&#62;
2011-08-15 08:23:10-0500 []  INFO: agent_config items: {'metrics_enabled': 1, 'metrics_ignored_column_families': '', 'metrics_ignored_keyspaces': 'system, OpsCenter', 'jmx_port': 7199}&#60;br /&#62;
2011-08-15 08:23:10-0500 []  INFO: opscenterd.WebServer.OpsCenterdWebServer starting on 8888&#60;br /&#62;
2011-08-15 08:23:10-0500 []  INFO: Starting factory &#38;lt;opscenterd.WebServer.OpsCenterdWebServer instance at 0x92359ec&#38;gt;&#60;br /&#62;
2011-08-15 08:23:10-0500 []  INFO: Unhandled error in Deferred:&#60;br /&#62;
2011-08-15 08:23:10-0500 [] Unhandled Error&#60;br /&#62;
	Traceback (most recent call last):&#60;br /&#62;
	  File &#34;/usr/lib/python2.6/site-packages/twisted/scripts/_twistd_unix.py&#34;, line 317, in startApplication&#60;br /&#62;
	    app.startApplication(application, not self.config['no_save'])&#60;br /&#62;
	  File &#34;/usr/lib/python2.6/site-packages/twisted/application/app.py&#34;, line 653, in startApplication&#60;br /&#62;
	    service.IService(application).startService()&#60;br /&#62;
	  File &#34;/usr/lib/python2.6/site-packages/twisted/application/service.py&#34;, line 277, in startService&#60;br /&#62;
	    service.startService()&#60;br /&#62;
	  File &#34;/usr/lib/python2.6/site-packages/twisted/internet/defer.py&#34;, line 1141, in unwindGenerator&#60;br /&#62;
	    return _inlineCallbacks(None, f(*args, **kwargs), Deferred())&#60;br /&#62;
	--- &#38;lt;exception caught here&#38;gt; ---&#60;br /&#62;
	  File &#34;/usr/lib/python2.6/site-packages/twisted/internet/defer.py&#34;, line 1020, in _inlineCallbacks&#60;br /&#62;
	    result = g.send(result)&#60;br /&#62;
	  File &#34;/usr/lib/python2.6/site-packages/opscenterd/OpsCenterdService.py&#34;, line 223, in startService&#60;/p&#62;
&#60;p&#62;	  File &#34;/usr/lib/python2.6/site-packages/twisted/application/service.py&#34;, line 277, in startService&#60;br /&#62;
	    service.startService()&#60;br /&#62;
	  File &#34;/usr/lib/python2.6/site-packages/opscenterd/jmxadapt/JmxJythonService.py&#34;, line 318, in startService&#60;/p&#62;
&#60;p&#62;	  File &#34;/usr/lib/python2.6/site-packages/opscenterd/jmxadapt/JmxJythonService.py&#34;, line 346, in setupJythonEnv&#60;/p&#62;
&#60;p&#62;	  File &#34;/usr/lib/python2.6/os.py&#34;, line 157, in makedirs&#60;br /&#62;
	    mkdir(name, mode)&#60;br /&#62;
	exceptions.OSError: [Errno 13] Permission denied: '/root/.jython_cache'&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;Looks like a mkdir problem to me.  My root directory permissions looks like this:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;
drwxr-x---   8 root root  4096 Aug 15 08:23 root&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;Also i am starting the service as root (which i understand there is an opscenter user setup).  Must be a user var somewhere reading the ENV_VAR for the current running user in once place, and expecting your predefined opscenter user in a different place.  I am guessing in your code, you do a change over to run as the opscenter user, and the opscenter user can not access /root/.jython_cache.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mbulman on "Error Connecting to Cluster"</title>
			<link>http://www.datastax.com/support-forums/topic/error-connecting-to-cluster#post-437</link>
			<pubDate>Sat, 13 Aug 2011 23:02:49 +0000</pubDate>
			<dc:creator>mbulman</dc:creator>
			<guid isPermaLink="false">437@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;A patched version is available (1.2.3).  Just run &#60;code&#62;yum clean all &#38;amp;&#38;amp; yum install opscenter&#60;/code&#62;.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>geoff.wagner on "Error Connecting to Cluster"</title>
			<link>http://www.datastax.com/support-forums/topic/error-connecting-to-cluster#post-436</link>
			<pubDate>Sat, 13 Aug 2011 21:23:23 +0000</pubDate>
			<dc:creator>geoff.wagner</dc:creator>
			<guid isPermaLink="false">436@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;No to all three.  I have a different application on the same server as opscenter that has no problem connecting to Cassandra.  Can I get a new rpm with the logging bug fixed to help narrow down the problem?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nickmbailey on "Error Connecting to Cluster"</title>
			<link>http://www.datastax.com/support-forums/topic/error-connecting-to-cluster#post-435</link>
			<pubDate>Fri, 12 Aug 2011 22:41:09 +0000</pubDate>
			<dc:creator>nickmbailey</dc:creator>
			<guid isPermaLink="false">435@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;There is a currently a bug with logging that is causing the exception in your logs to disappear which makes this slightly harder to debug. It sounds like OpsCenter simply can't talk to the cluster over thrift however. Possible causes:&#60;/p&#62;
&#60;p&#62;1. Did you change the default thrift port?&#60;br /&#62;
2. Do you have cassandra authentication enabled?&#60;br /&#62;
3. Is there a firewall blocking OpsCenter from talking to node 10.45.8.61 on the thrift port?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>geoff.wagner on "Error Connecting to Cluster"</title>
			<link>http://www.datastax.com/support-forums/topic/error-connecting-to-cluster#post-431</link>
			<pubDate>Fri, 12 Aug 2011 00:18:19 +0000</pubDate>
			<dc:creator>geoff.wagner</dc:creator>
			<guid isPermaLink="false">431@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;That did not work.  Same error.  This URL is to a screenshot: &#60;a href=&#34;http://postimage.org/image/12er21eqs/&#34; rel=&#34;nofollow&#34;&#62;http://postimage.org/image/12er21eqs/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Btw i am on CentOS 5.5 installed version 1.2.2
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nickmbailey on "Error Connecting to Cluster"</title>
			<link>http://www.datastax.com/support-forums/topic/error-connecting-to-cluster#post-424</link>
			<pubDate>Thu, 11 Aug 2011 20:58:40 +0000</pubDate>
			<dc:creator>nickmbailey</dc:creator>
			<guid isPermaLink="false">424@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;That is actually the expected result. It appears this problem may result when attempting to bind the webserver to an interface the machine doesn't know about. What interface are you attempting to bind the webserver to? Can you see if binding to 127.0.0.1 or 0.0.0.0 works?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>geoff.wagner on "Error Connecting to Cluster"</title>
			<link>http://www.datastax.com/support-forums/topic/error-connecting-to-cluster#post-422</link>
			<pubDate>Thu, 11 Aug 2011 17:48:50 +0000</pubDate>
			<dc:creator>geoff.wagner</dc:creator>
			<guid isPermaLink="false">422@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;I ran that on both the Opscenter server and my Cassandra server and the output they both spit out&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;
Y(I-1&#60;br /&#62;
S'YAY\n'&#60;br /&#62;
p0&#60;br /&#62;
tp1&#60;br /&#62;
.?
&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;and then they hang and they dont return to the command prompt
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nickmbailey on "Error Connecting to Cluster"</title>
			<link>http://www.datastax.com/support-forums/topic/error-connecting-to-cluster#post-421</link>
			<pubDate>Thu, 11 Aug 2011 16:17:26 +0000</pubDate>
			<dc:creator>nickmbailey</dc:creator>
			<guid isPermaLink="false">421@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;At first glance it looks like a problem with the jython process that is spawned in order to communicate through jmx.&#60;/p&#62;
&#60;p&#62;Can run the following command and see what the output/errors are?&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;
&#60;code&#62;CLASSPATH=&#38;quot;/usr/share/opscenter/bin/jmxjython.jar:/usr/share/opscenter/lib/*&#38;quot; /usr/bin/java -Djava.library.path=/usr/lib/jni -Dpython.cachedir=/usr/share/opscenter/.jython_cache org.python.util.jython -jar /usr/share/opscenter/bin/jmxjython.jar -t 50 -k 60 --automated&#60;/code&#62;
&#60;/p&#62;&#60;/blockquote&#62;</description>
		</item>
		<item>
			<title>geoff.wagner on "Error Connecting to Cluster"</title>
			<link>http://www.datastax.com/support-forums/topic/error-connecting-to-cluster#post-420</link>
			<pubDate>Thu, 11 Aug 2011 15:46:57 +0000</pubDate>
			<dc:creator>geoff.wagner</dc:creator>
			<guid isPermaLink="false">420@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;I am having trouble connecting to my 2 box cassandra test cluster.  The install of the package went fine, but now i can not connect to the cluster.&#60;/p&#62;
&#60;p&#62;I have tried connecting to the cluster by installing Opscenter on a box with a cassandra node (using 127.0.0.1 and the box's ip address), and from a remote node.&#60;/p&#62;
&#60;p&#62;When i try and up my log level to trace i dont get any extra information.&#60;/p&#62;
&#60;p&#62;Here is the log for Opscenter:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;
2011-08-11 10:35:00-0500 []  INFO: Log opened.&#60;br /&#62;
2011-08-11 10:35:00-0500 []  INFO: twistd 10.2.0 (/usr/bin/python2.6 2.6.5) starting up.&#60;br /&#62;
2011-08-11 10:35:00-0500 []  INFO: reactor class: twisted.internet.selectreactor.SelectReactor.&#60;br /&#62;
2011-08-11 10:35:00-0500 []  INFO: set uid/gid 101/103&#60;br /&#62;
2011-08-11 10:35:00-0500 []  INFO: Logging level set to 'trace'&#60;br /&#62;
2011-08-11 10:35:00-0500 []  INFO: OpsCenterdService startService&#60;br /&#62;
2011-08-11 10:35:00-0500 []  INFO: OpsCenter version: 1.2.2&#60;br /&#62;
2011-08-11 10:35:00-0500 []  INFO: Compatible agent version: 2.2&#60;br /&#62;
2011-08-11 10:35:00-0500 [] DEBUG: Logging user config options:&#60;br /&#62;
2011-08-11 10:35:00-0500 [] DEBUG: jmx : [('port', '7199')], logging : [('level', 'TRACE')], webserver : [('interface', '10.45.8.64'), ('port', '8888')], authentication : [], cassandra_metrics : [('ignored_keyspaces', 'system, OpsCenter')], cassandra : [('seed_hosts', '10.45.8.61')],&#60;br /&#62;
2011-08-11 10:35:00-0500 []  INFO: HTTP BASIC authentication disabled&#60;br /&#62;
2011-08-11 10:35:00-0500 []  INFO: agent_config items: {'metrics_enabled': 1, 'metrics_ignored_column_families': '', 'metrics_ignored_keyspaces': 'system, OpsCenter', 'jmx_port': 7199}&#60;br /&#62;
2011-08-11 10:35:00-0500 []  INFO: opscenterd.WebServer.OpsCenterdWebServer starting on 8888&#60;br /&#62;
2011-08-11 10:35:00-0500 []  INFO: Starting factory &#38;lt;opscenterd.WebServer.OpsCenterdWebServer instance at 0x995698c&#38;gt;&#60;br /&#62;
2011-08-11 10:35:00-0500 []  INFO: Unhandled error in Deferred:&#60;br /&#62;
2011-08-11 10:35:00-0500 []  INFO:&#60;br /&#62;
2011-08-11 10:35:04-0500 []  INFO:&#60;br /&#62;
2011-08-11 10:35:10-0500 []  INFO:&#60;br /&#62;
2011-08-11 10:39:11-0500 []  INFO:&#60;br /&#62;
2011-08-11 10:39:35-0500 []  INFO:&#60;br /&#62;
2011-08-11 10:40:02-0500 []  INFO: Received SIGTERM, shutting down.&#60;br /&#62;
2011-08-11 10:40:02-0500 []  INFO: Stopping CassandraCluster service&#60;br /&#62;
2011-08-11 10:40:02-0500 []  INFO: JmxJythonService is now in state &#34;dying&#34;&#60;br /&#62;
2011-08-11 10:40:02-0500 []  INFO: (TCP Port 8888 Closed)&#60;br /&#62;
2011-08-11 10:40:02-0500 []  INFO: Stopping factory &#38;lt;opscenterd.WebServer.OpsCenterdWebServer instance at 0x995698c&#38;gt;&#60;br /&#62;
2011-08-11 10:40:02-0500 []  INFO: Main loop terminated.&#60;br /&#62;
2011-08-11 10:40:02-0500 []  INFO: Server Shut Down.&#60;br /&#62;
2011-08-11 10:40:02-0500 []  INFO: Log opened.&#60;br /&#62;
2011-08-11 10:40:02-0500 []  INFO: twistd 10.2.0 (/usr/bin/python2.6 2.6.5) starting up.&#60;br /&#62;
2011-08-11 10:40:02-0500 []  INFO: reactor class: twisted.internet.selectreactor.SelectReactor.&#60;br /&#62;
2011-08-11 10:40:02-0500 []  INFO: set uid/gid 101/103&#60;br /&#62;
2011-08-11 10:40:02-0500 []  INFO: Logging level set to 'debug'&#60;br /&#62;
2011-08-11 10:40:02-0500 []  INFO: OpsCenterdService startService&#60;br /&#62;
2011-08-11 10:40:02-0500 []  INFO: OpsCenter version: 1.2.2&#60;br /&#62;
2011-08-11 10:40:02-0500 []  INFO: Compatible agent version: 2.2&#60;br /&#62;
2011-08-11 10:40:02-0500 [] DEBUG: Logging user config options:&#60;br /&#62;
2011-08-11 10:40:02-0500 [] DEBUG: jmx : [('port', '7199')], logging : [('level', 'DEBUG')], webserver : [('interface', '10.45.8.64'), ('port', '8888')], authentication : [], cassandra_metrics : [('ignored_keyspaces', 'system, OpsCenter')], cassandra : [('seed_hosts', '10.45.8.61')],&#60;br /&#62;
2011-08-11 10:40:02-0500 []  INFO: HTTP BASIC authentication disabled&#60;br /&#62;
2011-08-11 10:40:02-0500 []  INFO: agent_config items: {'metrics_enabled': 1, 'metrics_ignored_column_families': '', 'metrics_ignored_keyspaces': 'system, OpsCenter', 'jmx_port': 7199}&#60;br /&#62;
2011-08-11 10:40:02-0500 []  INFO: opscenterd.WebServer.OpsCenterdWebServer starting on 8888&#60;br /&#62;
2011-08-11 10:40:02-0500 []  INFO: Starting factory &#38;lt;opscenterd.WebServer.OpsCenterdWebServer instance at 0xa06298c&#38;gt;&#60;br /&#62;
2011-08-11 10:40:02-0500 []  INFO: Unhandled error in Deferred:&#60;br /&#62;
2011-08-11 10:40:02-0500 []  INFO:&#60;br /&#62;
2011-08-11 10:40:06-0500 []  INFO:&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;Also, when I turn up the logging on cassandra, i dont see any hit from my Opscenter box.  I am currently running 'Sébastien Giroux' admin tool and it can talk to the cluster with no problems from any machine.  There is NO firewall between any of these servers.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
