title: Problems Using OpsCenter To Start An AWS EC2 Cluster
body: <p>I want to get a Datastax Enterprise cluster working on AWS.</p>
  
  <p>I started by creating a first node with OpsCenter on it.  I used the following Amazon EC2 image to launch this node:</p>
  
  <pre><code>image-1439607361.manifest.xml (ami-e715a08c)
  </code></pre>
  
  <p>After the node launched, I went in and configured the OpsCenter basics.  I configured the <code>/etc/default/dse</code> with:</p>
  
  <pre><code>EXTRA_CLASSPATH="/usr/share/java/mx4j-tools.jar"
  HADOOP_ENABLED=0
  CFS_REPLICATION_FACTOR=3
  SOLR_ENABLED=0
  SPARK_ENABLED=0
  CFS_ENABLED=0
  </code></pre>
  
  <p>In <code>/etc/dse/cassandra/cassandra.yaml</code>, I used the 172.11.11.11 internal ip address for the seed, the listen address, the broadcast address, the rpc address and the broadcast rpc address.</p>
  
  <p>I left the snitch as <code>com.datastax.bdp.snitch.DseSimpleSnitch</code></p>
  
  <p>I pointed <code>/etc/dse/cassandra/cassandra-env.sh</code> to <code>$JAVA_HOME/jre/lib/management/jmxremote.password</code> and fixed the permissions to it.</p>
  
  <p>I set up a JMX user and password.</p>
  
  <p>I stopped the services datastax-agent, dse and opscenterd and re-started them.</p>
  
  <p>nodetool status showed the node as up.</p>
  
  <p>Then, I went to the opscenter url at port 8888.</p>
  
  <p>I selected "Manage An Existing Cluster".  Entered the seed node.  Entered the credentials, and the OpsCenter dashboard showed and just hung.  Back on the node, I got the following in the <code>/var/log/opscenter/opscenterd.log</code>:</p>
  
  <pre><code>2016-01-28 22:28:57+0000 [cluster3]  INFO: Done loading persisted scheduled job descriptions
  2016-01-28 22:28:57+0000 [cluster3]  INFO: Agent for ip 172.11.11.11 is version '5.2.4'
  2016-01-28 22:28:57+0000 [cluster3] ERROR: Agent for 172.11.11.11 was unable to complete operation (http://172.11.11.11:61621/load-stomp-conf?): No cassandra connections available
  2016-01-28 22:28:57+0000 [cluster3]  INFO: Automatic agent setup failed for (unknown ip): No cassandra connections available (172.11.11.11)
  2016-01-28 22:28:57+0000 []  INFO: Starting to update agents' configuration
  2016-01-28 22:28:57+0000 [cluster3]  INFO: OpsCenter starting up.
  2016-01-28 22:28:57+0000 [] DEBUG: Persisting config file /etc/opscenter/clusters/cluster3.conf
  2016-01-28 22:28:57+0000 []  INFO: Finished starting new cluster services for cluster3
  2016-01-28 22:29:05+0000 [] DEBUG: Average opscenterd CPU usage: 1.61%, memory usage: 53 MB
  2016-01-28 22:29:05+0000 [cluster3] DEBUG: keyspace type all are {'all': [u'system', u'system_traces', u'dse_system', u'system_auth', u'dse_auth', u'OpsCenter', u'cfs'], 'system_with_auth': [u'system', u'system_traces', u'dse_system', u'system_auth', u'dse_auth', u'dse_security']}
  2016-01-28 22:29:05+0000 [] DEBUG: Keyspace collecting status for: [u'dse_perf']
  2016-01-28 22:29:05+0000 [cluster3] DEBUG: [control connection] Refreshing node list and token map
  2016-01-28 22:29:05+0000 [cluster3] DEBUG: [control connection] Finished fetching ring info
  2016-01-28 22:29:05+0000 [cluster3] DEBUG: [control connection] Rebuilding token map due to topology changes
  2016-01-28 22:29:26+0000 [cluster3] DEBUG: [control connection] Refreshing node list and token map
  2016-01-28 22:29:26+0000 [] DEBUG: Error during pending deferred: [Failure instance: Traceback: &lt;type 'exceptions.AttributeError'&gt;: 'NoneType' object has no attribute 'address'
  /usr/share/opscenter/lib/py-debian/2.7/amd64/twisted/internet/defer.py:1141:unwindGenerator
  /usr/share/opscenter/lib/py-debian/2.7/amd64/twisted/internet/defer.py:1020:_inlineCallbacks
  /usr/lib/python2.7/dist-packages/opscenterd/Cluster.py:1354:collectNodeList
  /usr/share/opscenter/lib/py-debian/2.7/amd64/twisted/internet/defer.py:1141:unwindGenerator
  --- &lt;exception caught here&gt; ---
  /usr/share/opscenter/lib/py-debian/2.7/amd64/twisted/internet/defer.py:1020:_inlineCallbacks
  /usr/lib/python2.7/dist-packages/opscenterd/CassandraService.py:326:getTokenList
  ]
  2016-01-28 22:29:26+0000 [cluster3] ERROR: There was an error while collecting the node list: Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/opscenterd/Cluster.py", line 1042, in updateNodeList
  AttributeError: 'NoneType' object has no attribute 'address'
  </code></pre>
  
  <p>I got the following in <code>/var/log/opscenter/repair_service/cluster3.log</code>:</p>
  
  <pre><code>2016-01-28 22:53:56+0000 [cluster3] ERROR: The state of the following nodes could not be determined, most likely due to agents on those nodes not being properly connected: [&lt;Node 172.11.11.11='1304142645335128783'&gt;]
  </code></pre>
  
  <p>Any idea what is wrong?</p>