cloudstack-users-cn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yuhui <yu...@inspur.com>
Subject CloudStack 4.2 源码搭建遇到问题
Date Wed, 13 Nov 2013 08:57:02 GMT
各位,
       我在使用源码搭建4.2.0环境的时候(在windows下,使用Cygwin操作),在执行到最后一步:mvn
-pl :cloud-client jetty:run 后遇到异常,服务能够启动,但是使用admin账号不能登录,
查找相关资料也没有找到解决方法,日志文件如下,求帮助,谢谢!

INFO  [utils.component.ComponentContext] (Timer-2:) Configuring com.cloud.upgrade.DatabaseIntegrityChecker_EnhancerByCloudStack_52a37170
INFO  [utils.component.ComponentContext] (Timer-2:) Configuring com.cloud.server.ConfigurationServerImpl_EnhancerByCloudStack_e594231
INFO  [cloud.server.ConfigurationServerImpl] (Timer-2:) Processing updateSSLKeyStore
INFO  [cloud.server.ConfigurationServerImpl] (Timer-2:) SSL keystore located at F:\learn\cloudstack\client\target\cloud-client-ui-4.2.1-SNAPSHOT\WEB-INF\c
                                                lasses/cloudmanagementserver.keystore
INFO  [cloud.server.ConfigurationServerImpl] (Timer-2:) Stored SSL keystore to database.
INFO  [cloud.server.ConfigurationServerImpl] (Timer-2:) Processing updateKeyPairs
INFO  [cloud.server.ConfigurationServerImpl] (Timer-2:) Systemvm keypairs not found in database.
Need to store them in the database
WARN  [utils.script.Script] (Timer-2:) Exception: /bin/bash -c if [ -f C:\Users\yh\.ssh\id_rsa.cloud
]; then rm -f C:\Users\yh\.ssh\id_rsa.cloud; fi; ssh-                                    
            keygen -t rsa -N '' -f C:\Users\yh\.ssh\id_rsa.cloud -q
java.io.IOException: Cannot run program "/bin/bash": CreateProcess error=2, ?????????
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1042)
        at com.cloud.utils.script.Script.execute(Script.java:183)
        at com.cloud.utils.script.Script.runSimpleBashScript(Script.java:481)
        at com.cloud.utils.script.Script.runSimpleBashScript(Script.java:471)
        at com.cloud.server.ConfigurationServerImpl.updateKeyPairs(ConfigurationServerImpl.java:708)
        at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
        at com.cloud.server.ConfigurationServerImpl.persistDefaultValues(ConfigurationServerImpl.java:292)
        at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
        at com.cloud.server.ConfigurationServerImpl.configure(ConfigurationServerImpl.java:157)
        at com.cloud.utils.component.ComponentContext.initComponentsLifeCycle(ComponentContext.java:111)
        at com.cloud.servlet.CloudStartupServlet$1.run(CloudStartupServlet.java:54)
        at java.util.TimerThread.mainLoop(Timer.java:555)
        at java.util.TimerThread.run(Timer.java:505)
Caused by: java.io.IOException: CreateProcess error=2, ?????????
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.<init>(ProcessImpl.java:288)
        at java.lang.ProcessImpl.start(ProcessImpl.java:133)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1023)
        ... 20 more
ERROR [cloud.server.ConfigurationServerImpl] (Timer-2:) Cannot read the private key file
java.io.FileNotFoundException: C:\Users\yh\.ssh\id_rsa.cloud (ϵͳ▒Ҳ▒▒▒ָ▒▒▒▒·▒▒▒▒)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:138)
        at com.cloud.server.ConfigurationServerImpl.updateKeyPairs(ConfigurationServerImpl.java:712)
        at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
        at com.cloud.server.ConfigurationServerImpl.persistDefaultValues(ConfigurationServerImpl.java:292)
        at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
        at com.cloud.server.ConfigurationServerImpl.configure(ConfigurationServerImpl.java:157)
        at com.cloud.utils.component.ComponentContext.initComponentsLifeCycle(ComponentContext.java:111)
        at com.cloud.servlet.CloudStartupServlet$1.run(CloudStartupServlet.java:54)
        at java.util.TimerThread.mainLoop(Timer.java:555)
        at java.util.TimerThread.run(Timer.java:505)
Exception in thread "Timer-2" com.cloud.utils.exception.CloudRuntimeException: Cannot read
the private key file
        at com.cloud.server.ConfigurationServerImpl.updateKeyPairs(ConfigurationServerImpl.java:716)
        at com.cloud.server.ConfigurationServerImpl_EnhancerByCloudStack_e594231.CGLIB$updateKeyPairs$14(<generated>)
        at com.cloud.server.ConfigurationServerImpl_EnhancerByCloudStack_e594231_FastClassByCloudStack_344edf9f.invoke(<generated>)
        at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
        at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
        at com.cloud.server.ConfigurationServerImpl_EnhancerByCloudStack_e594231.updateKeyPairs(<generated>)
        at com.cloud.server.ConfigurationServerImpl.persistDefaultValues(ConfigurationServerImpl.java:292)
        at com.cloud.server.ConfigurationServerImpl_EnhancerByCloudStack_e594231.CGLIB$persistDefaultValues$10(<generated>)
        at com.cloud.server.ConfigurationServerImpl_EnhancerByCloudStack_e594231_FastClassByCloudStack_344edf9f.invoke(<generated>)
        at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
        at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
        at com.cloud.server.ConfigurationServerImpl_EnhancerByCloudStack_e594231.persistDefaultValues(<generated>)
        at com.cloud.server.ConfigurationServerImpl.configure(ConfigurationServerImpl.java:157)
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message