title: Cannot connect to Cloudera Manager, not listening on port 7180
body: <p>I'd really appreciate some help to get cloudera manager running on AWS EC2.
  Its my first install,  and I'm aiming to use the  AWS Free Tier to spin up a few nodes and do some training on Hadoop cluster and the cloudera distribution. I'm using the RedHat RHEL 7.2 image on AWS EC2.</p>
  
  <p>I am following the instructions here... <a href="http://www.cloudera.com/documentation/enterprise/latest/topics/cm_ig_install_path_a.html?scroll=cmig_topic_6_5_unique_2" rel="nofollow">Cloudera Manager installation</a></p>
  
  <p>I have installed cloudera manager OK, and get to the screen where it invites you to use a browser to log-in to the cloudera manager server.  But that's where the problem starts. It seems the app is not listening on port 7180,  so there's no hope of connecting from another machine across the network.  I can't even connect locally, on the server,  yet the service appears to be running OK.  But its not listening on port 7180.</p>
  
  <p>Q1 - How can I confirm the config is set to use port 7180.?</p>
  
  <p>Q2 - are there obvious steps that I'm missing here ?</p>
  
  <p>Thanks in advance, </p>
  
  <p>[Edit..]
  I'm beginning to wonder if the Free EC2 host is running short on memory to run cloudera manager.  I saw one comment that implied that....<a href="https://forums.aws.amazon.com/thread.jspa?messageID=576181" rel="nofollow">AWS Forum post</a> .  But the process doesn't crash or report any problems in its logfile. So it must be OK,  right?</p>
  
  <p>[Edit.... with more diagnostic info....]</p>
  
  <p>Here's a list of the diagnostics I've checked:-</p>
  
  <ul>
  <li>SELinux is not running [for install and testing purposes],</li>
  <li>WAN firewalls,</li>
  <li>EC2 firewall/Security group,</li>
  <li>Local firewall on server,</li>
  <li>Cloudera manager log,</li>
  <li>Is the service up and running?</li>
  <li>Can you connect locally?</li>
  </ul>
  
  <p><strong>Securtity group on the EC2 instance,</strong> it contains:-
  SSH and Port 7180,</p>
  
  <p><strong>Firewall/iptables/firewalld  on the RedHat instance</strong>,  tried:-
  adding ports to iptables, then
  dissabling iptables, then 
  adding ports to firewalld, then 
  dissabling the firewalld service,</p>
  
  <pre><code>$ sudo iptables -L
  Chain INPUT (policy ACCEPT)
  target     prot opt source               destination         
  ACCEPT     all  --  anywhere             anywhere             ctstate RELATED,ESTABLISHED
  ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:ssh
  ACCEPT     tcp  --  anywhere             anywhere             state NEW tcp dpt:7180
  ACCEPT     tcp  --  anywhere             anywhere             state NEW tcp dpt:7182
  </code></pre>
  
  <p>But I'm getting the feeling that  the installation of cloudera manager is <strong>not happy,  or not running correctly</strong>.</p>
  
  <p>I've checked the cloudera manager log, and it ends with the following.</p>
  
  <pre><code>$ tail /var/log/cloudera-scm-server/cloudera-scm-server.log
  2016-02-25 11:02:23,581 INFO main:com.cloudera.cmon.components.MetricSchemaUpdate: persisting 19264 new metrics
  2016-02-25 11:02:28,920 INFO main:com.cloudera.cmon.components.MetricSchemaUpdate: persisting 0 updated metrics
  2016-02-25 11:02:28,924 INFO main:com.cloudera.cmon.components.MetricSchemaManager: Cross entity aggregates processed.
  </code></pre>
  
  <p>And when I  use tail -f,  and restart the cloudera-scm-server service,  the log scrolls a lot,  and comes back the same state.  If I search for ERROR,  there are no lines with "ERR".</p>
  
  <pre><code>$ sudo service cloudera-scm-server start
  Starting cloudera-scm-server (via systemctl):              [  OK  ]
  
  $ sudo systemctl status cloudera-scm-server
  ● cloudera-scm-server.service - LSB: Cloudera SCM Server
     Loaded: loaded (/etc/rc.d/init.d/cloudera-scm-server)
     Active: active (exited) since Thu 2016-02-25 12:23:03 EST; 44s ago
       Docs: man:systemd-sysv-generator(8)
    Process: 747 ExecStart=/etc/rc.d/init.d/cloudera-scm-server start (code=exited, status=0/SUCCESS)
  </code></pre>
  
  <p>So,  if I try to test the service, by connecting from the local machine I get  the sort of behavious that makes me thing its just not listening,  and maybe not started correctly. </p>
  
  <p>Try poke it with a curl from the same shell as the cloudera-scm-server service was started</p>
  
  <pre><code>$ curl localhost:7180
  curl: (7) Failed connect to localhost:7180; Connection refused
  
  $ wget localhost:7180
  --2016-02-25 08:00:16--  http://localhost:7180/
  Resolving localhost (localhost)... ::1, 127.0.0.1
  Connecting to localhost (localhost)|::1|:7180... failed: Connection refused.
  Connecting to localhost (localhost)|127.0.0.1|:7180... failed: Connection refused.
  </code></pre>
  
  <p>Try check what ports are listening on that machine,  no 7180 ,  what's up with that???</p>
  
  <pre><code>$ netstat -nltp
  (No info could be read for "-p": geteuid()=1000 but you should be root.)
  Active Internet connections (only servers)
  Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
  tcp        0      0 0.0.0.0:7432            0.0.0.0:*               LISTEN      -                   
  tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      -                   
  tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      -                   
  tcp6       0      0 :::7432                 :::*                    LISTEN      -                   
  tcp6       0      0 :::22                   :::*                    LISTEN      -                   
  tcp6       0      0 ::1:25                  :::*                    LISTEN      -  
  </code></pre>