安装CloudStack 4.7.0.0版时,找不到文件异常

时间:2016-05-11 12:53:44

标签: apache-cloudstack

我一直在尝试安装CloudStack version 4.7.0.0并在启动时收到以下消息(见下文)。当我在文件上显示它确实存在时。

-rw -------。 1 cloud root 2231 May 11 13:08 cloudmanagementserver.keystore

任何人都有任何想法吗?

May 11, 2016 12:45:00 PM org.apache.tomcat.util.net.NioEndpoint adjustRelativePath
WARNING: configured file:    [/etc/cloudstack/management/cloudmanagementserver.keystore] does not exist.
May 11, 2016 12:45:00 PM org.apache.coyote.http11.Http11NioProtocol init
SEVERE: Error initializing endpoint
java.io.FileNotFoundException: /etc/cloudstack/management/cloudmanagementserver.keystore (No such file or directory)
    at java.io.FileInputStream.open0(Native Method)
    at java.io.FileInputStream.open(FileInputStream.java:195)
    at java.io.FileInputStream.<init>(FileInputStream.java:138)
    at java.io.FileInputStream.<init>(FileInputStream.java:93)
    at org.apache.tomcat.util.net.NioEndpoint.init(NioEndpoint.java:836)
    at org.apache.coyote.http11.Http11NioProtocol.init(Http11NioProtocol.java:136)
    at org.apache.catalina.connector.Connector.initialize(Connector.java:1007)
    at org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
    at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:540)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:560)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

May 11, 2016 12:45:00 PM org.apache.catalina.startup.Catalina load
SEVERE: Catalina.start
LifecycleException:  Protocol handler initialization failed: java.io.FileNotFoundException: /etc/cloudstack/management/cloudmanagementserver.keystore (No such file or directory)
    at org.apache.catalina.connector.Connector.initialize(Connector.java:1009)
    at org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
    at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:540)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:560)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

亲切的问候, 米歇尔

1 个答案:

答案 0 :(得分:0)

所以我看了一个以前的版本(我不得不回到版本4.2,因为4.5有一个bug并且根本没有创建这个文件)并且看到它只是权限问题。我按照以下规定更改了它们:

[vagrant @ mgmt-server1 management] $ sudo chown root:root

[vagrant @ mgmt-server1 management] $ sudo chmod 644 cloudmanagementserver.keystore

这解决了启动catalina.out日志中的问题。

谢谢有人看过这个。