cloudstack-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giraffeg forestg <giraffefore...@gmail.com>
Subject cloudstack-management start failed (CloudStack 4.6.1 + CentOS7)
Date Sun, 06 Dec 2015 01:33:36 GMT
Hi all.

My environment:

CloudStack 4.6.1 , CentOS7
http://packages.shapeblue.com/cloudstack/upstream/centos7/4.6/


Steps to reproduce:

1)clean install CloudStack 4.6.1 on CentOS7

use http://packages.shapeblue.com/cloudstack/upstream/centos7/4.6/

[root@acs ~]# cat /etc/redhat-release
CentOS Linux release 7.1.1503 (Core)
[root@acs ~]#
[root@acs ~]# rpm -qa | grep cloudstack
cloudstack-management-4.6.1-shapeblue0.el7.centos.x86_64
cloudstack-common-4.6.1-shapeblue0.el7.centos.x86_64
[root@acs ~]#

2)cloudstack-setup-databases...(snip)

3)cloudstack-setup-management (Failed)

[root@acs ~]# cloudstack-setup-management
Starting to configure CloudStack Management Server:
Configure Firewall ... [OK]
Configure CloudStack Management Server ...[Failed]
Cannot find /etc/cloudstack/management/server-nonssl.xml or
/etc/cloudstack/management/tomcat6-nonssl.conf, https enable failed
Try to restore your system:
Restore Firewall ... [OK]
Restore CloudStack Management Server ...[OK]
[root@acs ~]#

4)check log (/var/log/messages)

Dec 6 10:08:51 acs server: WARNING: Unable to load server configuration
from [/usr/share/cloudstack-management/conf/server.xml]

5)check service status (failed)

[root@acs ~]# systemctl status cloudstack-management.service
cloudstack-management.service - CloudStack Management Server
Loaded: loaded (/usr/lib/systemd/system/cloudstack-management.service;
enabled)
Active: failed (Result: exit-code) since Sun 2015-12-06 10:08:52 JST; 11s
ago
Process: 3061 ExecStop=/usr/libexec/tomcat/server stop (code=exited,
status=1/FAILURE)
Process: 3026 ExecStart=/usr/libexec/tomcat/server start (code=exited,
status=0/SUCCESS)
Main PID: 3026 (code=exited, status=0/SUCCESS)

Dec 06 10:08:52 acs.dom.local server[3061]: at
java.io.FileInputStream.<init>(FileInputStream.java:146)
Dec 06 10:08:52 acs.dom.local server[3061]: at
org.apache.catalina.startup.Catalina.stopServer(Catalina.java:466)
Dec 06 10:08:52 acs.dom.local server[3061]: at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Dec 06 10:08:52 acs.dom.local server[3061]: at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
Dec 06 10:08:52 acs.dom.local server[3061]: at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI...va:43)
Dec 06 10:08:52 acs.dom.local server[3061]: at
java.lang.reflect.Method.invoke(Method.java:606)
Dec 06 10:08:52 acs.dom.local server[3061]: at
org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:370)
Dec 06 10:08:52 acs.dom.local server[3061]: at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:457)
Dec 06 10:08:52 acs.dom.local systemd[1]: cloudstack-management.service:
control process exited, code=exited status=1
Dec 06 10:08:52 acs.dom.local systemd[1]: Unit
cloudstack-management.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.
[root@acs ~]#

workaround:
The correct do not know whether or not , but it worked.

6)check file

[root@acs ~]# ls -la /etc/cloudstack/management
total 132
drwxr-xr-x. 3 root root 4096 Dec 5 17:59 .
drwxr-xr-x. 3 root root 4096 Dec 5 17:53 ..
drwxrwx---. 3 root cloud 4096 Dec 5 17:53 Catalina
rw-rr-. 1 root root 8945 Dec 1 20:22 catalina.policy
rw-rr-. 1 root root 3794 Dec 1 20:22 catalina.properties
rw-rr-. 1 root root 1653 Dec 1 20:22 classpath.conf
rw-rr-. 1 root root 1357 Dec 1 20:22 commons-logging.properties
rw-r----. 1 root cloud 3137 Dec 5 17:59 db.properties
rw-rr-. 1 root root 979 Dec 1 20:22 environment.properties
rw-rr-. 1 root root 927 Dec 1 20:22 java.security.ciphers
rw-rr-. 1 root root 8 Dec 5 17:55 key
rw-rr-. 1 root root 7020 Dec 1 20:22 log4j-cloud.xml
rw-rr-. 1 root root 6722 Dec 1 20:22 server7-nonssl.xml
rw-rr-. 1 root root 7251 Dec 1 20:22 server7-ssl.xml
rw-rr-. 1 root root 1383 Dec 1 20:22 tomcat-users.xml
rw-rr-. 1 root root 50475 Dec 1 20:22 web.xml
[root@acs ~]

7)copy file

[root@acs ~]# cd /etc/cloudstack/management
[root@acs management]# cp -p server7-nonssl.xml server.xml

8)start cloudstack-management service

[root@acs ~]# systemctl start cloudstack-management.service

9)check service status (running)

[root@acs ~]# systemctl status cloudstack-management.service
cloudstack-management.service - CloudStack Management Server
Loaded: loaded (/usr/lib/systemd/system/cloudstack-management.service;
enabled)
Active: active (running) since Sun 2015-12-06 10:12:23 JST; 1min 0s ago
Process: 3061 ExecStop=/usr/libexec/tomcat/server stop (code=exited,
status=1/FAILURE)
Main PID: 3164 (java)
CGroup: /system.slice/cloudstack-management.service
mq3164 java -Djava.awt.headless=true -Dcom.sun.management.jmxremote=false
-Xmx2g -XX:+HeapDumpOnOutOfMemoryError -X...

Dec 06 10:13:11 acs.dom.local server[3164]: INFO
[c.c.s.ConfigurationServerImpl] (localhost-startStop-1:null) Trying to...vm
iso
Dec 06 10:13:11 acs.dom.local sudo[3231]: cloud : TTY=unknown ;
PWD=/usr/share/cloudstack-management ; USER=root ; COMMA...vm_mnt
Dec 06 10:13:11 acs.dom.local sudo[3234]: cloud : TTY=unknown ;
PWD=/usr/share/cloudstack-management ; USER=root ; COMMA...vm_mnt
Dec 06 10:13:11 acs.dom.local sudo[3239]: cloud : TTY=unknown ;
PWD=/usr/share/cloudstack-management ; USER=root ; COMMA...vm_mnt
Dec 06 10:13:11 acs.dom.local server[3164]: INFO
[c.c.s.ConfigurationServerImpl] (localhost-startStop-1:null) Injected ...:
null
Dec 06 10:13:23 acs.dom.local server[3164]: INFO [c.c.c.ClusterManagerImpl]
(localhost-startStop-1:null) Start configur...erImpl
Dec 06 10:13:23 acs.dom.local server[3164]: INFO [c.c.c.ClusterManagerImpl]
(localhost-startStop-1:null) Cluster node I...0.0.30
Dec 06 10:13:23 acs.dom.local server[3164]: INFO [c.c.c.ClusterManagerImpl]
(localhost-startStop-1:null) Cluster manage...gured.
Dec 06 10:13:23 acs.dom.local server[3164]: INFO
[o.a.c.f.j.i.AsyncJobManagerImpl] (localhost-startStop-1:null) Start A...ze
125
Dec 06 10:13:23 acs.dom.local server[3164]: INFO
[o.a.c.f.j.i.AsyncJobManagerImpl] (localhost-startStop-1:null) Start A...ze
166
Hint: Some lines were ellipsized, use -l to show in full.
[root@acs ~]#


Reported:
https://issues.apache.org/jira/browse/CLOUDSTACK-9111


Best regards.

---------------
Satoru Nakaya (Japan CloudStack User Group)

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message