cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2705
Views
0
Helpful
8
Replies

CloudCenter 4.8.2 web interface

gabriel.peral4
Level 1
Level 1

Hello,

I am currently deploying a  new cloudcenter environment with the 4.8.2 version, I have another environment with the 4.7 version.

So far I've deployed the CCM,CCO,AMQP and the ELK servers in VMWare using the appliances, it seems that all components are installed correctly, however when I'm trying to reach the CCM web ui the page only shows a grey background, but it doesn't show me anything (no even an error|forbbiden messag). I've checked the nginx logs and seems than something is wrong with the background upstream, it tells me that the connection has been refused, this is what nginx-error.log shows to me when I am try to acces de webui:

==> /var/log/nginx/error.log <==

2018/02/20 16:38:32 [error] 4440#4440: *17 connect() failed (111: Connection refused) while connecting to upstream, client: xx.xx.xx.xx server: _, request: "GET /system/service/get_session HTTP/2.0", upstream: "http://127.0.0.1:8080/system/service/get_session", host: "<CCM_IP>", referrer: "https://<CCM_IP>/"

I've also checked all the network-validations and are ok, and all the ports that have to be open are actually open.

if I curl to the CCM ip this is what it shows to me (from the ccm vm)

[root@ccm482 ~]# curl -k https://<CCM_IP>

<!DOCTYPE html>

<!--[if lte IE 8]>     <html class="no-js lte-ie8" lang="en"> <![endif]-->

<!--[if IE 9]>         <html class="no-js ie9 w3c" lang="en"> <![endif]-->

<!--[if gt IE 9]><!--> <html class="no-js w3c" lang="en"> <!--<![endif]-->

<head>

<meta http-equiv="X-UA-Compatible" content="IE=edge" />

<!--  <script data-main="config" src="//cdnjs.cloudflare.com/ajax/libs/require.js/2.1.4/require.min.js"></script> -->

<!-- for tracking outbound links.. i.e. to ZenDesk -->

<script type="text/javascript" async defer>

function trackOutboundLink(link, category, action) {try {_gaq.push(['_trackEvent', category , action]);} catch(err){}setTimeout(function() {window.open(link.href);}, 100);}

(function(){

    var s,t,

  url = "/assets/js/libs/min/require.js";

        s = document.createElement('script');

        s.type = 'text/javascript';

        s.setAttribute("data-main","config");

        s.src = url;

        t = document.getElementsByTagName('script')[0]; t.parentNode.insertBefore(s,t);

})();

</script>

</head>

<body>

<!-- Main Content Container. This DOM element will be owned by the layout view  -->

<div id="main" class="main"></div>

</body>

</html>

I don't know what can be wrong, but if any of you guys can help me I would be very pleased


Best regards,


Gabriel P.

8 Replies 8

Moon1998
Level 1
Level 1

I have same issue. Plus to connection refused message I am also getting some missing files...

2018/02/21 14:56:32 [error] 1302#1302: *17 connect() failed (111: Connection refused) while connecting to upstream, client: 10.4.11.34, server: _, request: "GET /system/service/get_session HTTP/2.0", upstream: "http://127.0.0.1:8080/system/service/get_session", host: "10.8.103.20", referrer: "https://10.8.103.20/index.html"

2018/02/21 14:56:32 [error] 1302#1302: *17 open() "/opt/cloudcenter/default/50x.html" failed (2: No such file or directory), client: 10.4.11.34, server: _, request: "GET /system/service/get_session HTTP/2.0", upstream: "http://127.0.0.1:8080/system/service/get_session", host: "10.8.103.20", referrer: "https://10.8.103.20/index.html"

Hi Martin,

Yeah I have the same issue, and if you go to the path /opt/cloudcenter/default/50x.html it doesn't exist, so I create a touch file called like that in the right path and that "solved" the problem of the 50x.html. And then the only error that appears is the connectio nefused one.


Do you have a separate VM for POSTGRES database? Because I do and it's impossible to make the service run,.

Since it seems that the version 4.82 doesn't have support for the non-ha solution with CCM and DB running on the same VM, I decided to keep it simple and deployed version 4.80 with postgres running directly on CCM VM. Works like a charm, no issues.

Hi Martin,


Did you tried to install the CCM and the DB in different VM, I've tryied and when I configure the db vm with the wizard or cli (which is only provide the CCM IP ) the service failed, and when I enter again in the wizard the CCM IP it is empty, so It is impossible to me to connect the CCM with the DB? Did you have the same problem?

BR


Gabriel

Vinod Kataria
Level 4
Level 4

I have seen this happening when I have CCM low on compute resources. Can you confirm if you have following config for CCM VM:

2 CPU, 8GB memory, 50GB storage

HW requirements have changed with 4.8.2

https://docs.cloudcenter.cisco.com/display/CCD482/Hardware+Requirements

Thanks,

Vinod

Hi Katariav,

You're right, the hw has changed, but I set up my ccm with 2vcpu, 12 GB of ram and a 55Gb of hdd, the virtual apliance set up the VM with the minimu requieriments but I decide to give it more CPU and more ram, and if I check hte cpu usage and the ram usage on the vm and seems is not using a lot of resources. Colud be that the problem, honestly I don't know what else I have to check to have more information and troubeshooting it.

mohammedb1
Level 1
Level 1

Hi All,

I was having the same issue, ensure after installation and configuration you reboot the postgres db server wait a few minutes and then reboot the CCM server wait for the services to start after a couple of minutes, you will see the GUI populated.

Hi guys,

I didi it! I finally solved what was wrong, the database was stored the CIDR of the CCM VM with the wrong mask (/32 instead of /24) and that made the service impossible to start:

here is the log file with the error:

[root@postgress482 data]# tail -200 /var/lib/pgsql/9.6/data/pg_log/postgresql-Thu.log

< 2018-02-22 16:45:42.231 UTC > LOG:  specifying both host name and CIDR mask is invalid: "xx.xx.xx.xx/32"

< 2018-02-22 16:45:42.231 UTC > CONTEXT:  line 90 of configuration file "/var/lib/pgsql/9.6/data/pg_hba.conf"

< 2018-02-22 16:45:42.231 UTC > LOG:  multiple values specified for host address

< 2018-02-22 16:45:42.231 UTC > HINT:  Specify one address range per line.

< 2018-02-22 16:45:42.231 UTC > CONTEXT:  line 96 of configuration file "/var/lib/pgsql/9.6/data/pg_hba.conf"

< 2018-02-22 16:45:42.231 UTC > FATAL:  could not load pg_hba.conf

< 2018-02-22 16:45:42.233 UTC > LOG:  database system is shut down


so I modified the var/lib/pgsql/9.6/data/pg_hba.conf file by deleting all the wrong lines at the end of the file and adding manually the correct CIDR of the CCM VM:

[root@postgress482 data]# cat /var/lib/pgsql/9.6/data/pg_hba.conf

[...]

at the end of the  file:

[...]


# TYPE  DATABASE        USER            ADDRESS                 METHOD

# "local" is for Unix domain socket connections only

local   all             all                                     md5

# IPv4 local connections:

host    all             all             127.0.0.1/32            md5

# IPv6 local connections:

host    all             all             ::1/128                 md5

# Allow replication connections from localhost, by a user with the

# replication privilege.

#local   replication     postgres                                md5

#host    replication     postgres        127.0.0.1/32            md5

#host    replication     postgres        ::1/128                 md5

host    all             all             xx.xx.xx.xx./32            trust  --> WRONG  CCM CIDR set up by the wizard file

host    all             all             xx.xx.xx.xx./24            trust --> RIGTH CCM CIDR (I type it manually)


After that I was able to start the postgresql serivce

[root@postgress482 data]# systemctl status postgresql-9.6.service

● postgresql-9.6.service - PostgreSQL 9.6 database server

   Loaded: loaded (/usr/lib/systemd/system/postgresql-9.6.service; enabled; vendor preset: disabled)

   Active: active (running) since Thu 2018-02-22 17:15:17 UTC; 21min ago


And then I restart the DB VM just to make sure that the service starts after a reboot and then resart the  CCM as mohammedb1 said, I wati for a few moments and I was able to access the gui

Hope it work for everyone that have the same kind of error!

Thank you all for all the support!!