You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Joshua Schaeffer <js...@harmonywave.com> on 2020/09/11 17:04:01 UTC
Can't access Primate web interface after management restart
I installed CloudStack Primate on my controller nodes and was able to access the web interface at /client/primate until I restarted the cloudstack-management service. Now I just get a 404 error. I can still access the old UI. This is what I see when I try to access the page:
HTTP ERROR 404 Not Found
URI: /client/primate
STATUS: 404
MESSAGE: Not Found
SERVLET: default
I was able to duplicate the steps on both my controller nodes. If I installed Primate on both controller nodes I would be able to access it from either controller. If I restarted the cloudstack-management service on controller1 I would then only be able to access Primate from controller2. I've since restarted the service on controller2 as well and am unable to access Primate from either one. I've rebooted both systems without any effect. I've also tried accessing the web pages by hitting either of the controller's directly to make sure it wasn't a caching or LB issue, but I get the same results.
jschaeffer@bllcloudctl01:~$ dpkg -l cloudstack-primate
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==================-==============-============-=================================
ii cloudstack-primate 0.5.0-20200707 all CloudStack Primate
jschaeffer@bllcloudctl01:~$ ls -l /usr/share/cloudstack-management/webapp/primate/
total 332
drwxr-xr-x 2 root root 4096 Sep 11 16:43 assets
-rw-r--r-- 1 root root 14318 Jul 7 15:53 cloud.ico
-rw-r--r-- 1 root root 271973 Jul 7 15:53 color.less
-rw-r--r-- 1 root root 1485 Jul 7 15:53 config.json
drwxr-xr-x 2 root root 4096 Sep 11 16:43 css
-rw-r--r-- 1 root root 388 Jul 7 15:53 example.html
-rw-r--r-- 1 root root 11880 Jul 7 15:53 index.html
drwxr-xr-x 2 root root 20480 Sep 11 16:43 js
jschaeffer@bllcloudctl01:~$ sudo ss -tupanl | grep 8080
tcp LISTEN 0 50 *:8080 *:* users:(("java",pid=2629,fd=30))
jschaeffer@bllcloudctl01:~$ ps aux | grep [2]629
cloud 2629 12.9 11.0 8210544 902368 ? Ssl 16:01 6:45 /usr/bin/java -Djava.security.properties=/etc/cloudstack/management/java.security.ciphers -Djava.awt.headless=true -Dcom.sun.management.jmxremote=false -Xmx2G -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/log/cloudstack/management/ -XX:ErrorFile=/var/log/cloudstack/management/cloudstack-management.err -cp /usr/share/cloudstack-management/lib/*:/etc/cloudstack/management:/usr/share/cloudstack-common:/usr/share/cloudstack-management/setup:/usr/share/cloudstack-management:/usr/share/java/mysql-connector-java.jar org.apache.cloudstack.ServerDaemon
Is there a separate service I need to restart or a configuration I need to update in order to access the page after a management restart?
--
Thanks,
Joshua Schaeffer
Re: Can't access Primate web interface after management restart
Posted by Rohit Yadav <ro...@shapeblue.com>.
Hi Joshua,
Can you check if you're removed or replaced the old UI? I think there's a web.xml that's included in the webapps path. Primate installed from archive/packages is just a pre-compiled/processed single page app and it's unlikely it would fail managment server restart, please check the management server logs for hints on what is causing the errors.
Regards.
________________________________
From: Joshua Schaeffer <js...@harmonywave.com>
Sent: Friday, September 11, 2020 22:34
To: users@cloudstack.apache.org <us...@cloudstack.apache.org>
Subject: Can't access Primate web interface after management restart
I installed CloudStack Primate on my controller nodes and was able to access the web interface at /client/primate until I restarted the cloudstack-management service. Now I just get a 404 error. I can still access the old UI. This is what I see when I try to access the page:
HTTP ERROR 404 Not Found
URI: /client/primate
STATUS: 404
MESSAGE: Not Found
SERVLET: default
I was able to duplicate the steps on both my controller nodes. If I installed Primate on both controller nodes I would be able to access it from either controller. If I restarted the cloudstack-management service on controller1 I would then only be able to access Primate from controller2. I've since restarted the service on controller2 as well and am unable to access Primate from either one. I've rebooted both systems without any effect. I've also tried accessing the web pages by hitting either of the controller's directly to make sure it wasn't a caching or LB issue, but I get the same results.
jschaeffer@bllcloudctl01:~$ dpkg -l cloudstack-primate
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==================-==============-============-=================================
ii cloudstack-primate 0.5.0-20200707 all CloudStack Primate
jschaeffer@bllcloudctl01:~$ ls -l /usr/share/cloudstack-management/webapp/primate/
total 332
drwxr-xr-x 2 root root 4096 Sep 11 16:43 assets
-rw-r--r-- 1 root root 14318 Jul 7 15:53 cloud.ico
-rw-r--r-- 1 root root 271973 Jul 7 15:53 color.less
-rw-r--r-- 1 root root 1485 Jul 7 15:53 config.json
drwxr-xr-x 2 root root 4096 Sep 11 16:43 css
-rw-r--r-- 1 root root 388 Jul 7 15:53 example.html
-rw-r--r-- 1 root root 11880 Jul 7 15:53 index.html
drwxr-xr-x 2 root root 20480 Sep 11 16:43 js
jschaeffer@bllcloudctl01:~$ sudo ss -tupanl | grep 8080
tcp LISTEN 0 50 *:8080 *:* users:(("java",pid=2629,fd=30))
jschaeffer@bllcloudctl01:~$ ps aux | grep [2]629
cloud 2629 12.9 11.0 8210544 902368 ? Ssl 16:01 6:45 /usr/bin/java -Djava.security.properties=/etc/cloudstack/management/java.security.ciphers -Djava.awt.headless=true -Dcom.sun.management.jmxremote=false -Xmx2G -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/log/cloudstack/management/ -XX:ErrorFile=/var/log/cloudstack/management/cloudstack-management.err -cp /usr/share/cloudstack-management/lib/*:/etc/cloudstack/management:/usr/share/cloudstack-common:/usr/share/cloudstack-management/setup:/usr/share/cloudstack-management:/usr/share/java/mysql-connector-java.jar org.apache.cloudstack.ServerDaemon
Is there a separate service I need to restart or a configuration I need to update in order to access the page after a management restart?
--
Thanks,
Joshua Schaeffer
rohit.yadav@shapeblue.com
www.shapeblue.com
3 London Bridge Street, 3rd floor, News Building, London SE1 9SGUK
@shapeblue