This is a known error on windows.  CloudStack tries to generate a key store but 
on windows, it is not possible.  For windows, before launching CloudStack, I 
always have to manually change the developer to false in order to have it run.  
You'll still see this error but it would be meaningless.

UPDATE cloud.configuration set value='false' where name='developer';

If you forgot to do that and started cloudstack, you have to reset the database.

--Alex

> -----Original Message-----
> From: 黑洞 [mailto:heids...@sina.com]
> Sent: Thursday, September 12, 2013 11:18 PM
> To: dev
> Subject: run cloustack have a exeception
> 
> 
> 
> 
> 
> 
> INFO  [utils.component.ComponentContext] (Timer-2:) Configuring
> com.cloud.server.ConfigurationServerImpl_EnhancerByCloudStack_e2a1f0b
> 0
> INFO  [cloud.server.ConfigurationServerImpl] (Timer-2:) Processing
> updateSSLKeyStore INFO  [cloud.server.ConfigurationServerImpl] (Timer-2:)
> SSL keystore located at D:\clouddevelop\cloudstack-repo-
> debug\cloudstack\client\target\cloud-client-ui-4.2.0-SNAPSHOT\WEB-
> INF\classes/cloud.keystore
> WARN  [utils.script.Script] (Timer-2:) Exception: sudo keytool -genkey -
> keystore D:\clouddevelop\cloudstack-repo-
> debug\cloudstack\client\target\cloud-client-ui-4.2.0-SNAPSHOT\WEB-
> INF\classes/cloud.keystore -storepass vmops.com -keypass vmops.com -
> keyalg RSA -validity 3650 -dname cn="Cloudstack User",ou="TYX-
> 020",o="TYX-020",c="Unknown"
> java.io.IOException: Cannot run program "sudo": CreateProcess
> error=2, ?????????
>         at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
>         at com.cloud.utils.script.Script.execute(Script.java:183)
>         at com.cloud.utils.script.Script.execute(Script.java:161)
>         at
> com.cloud.server.ConfigurationServerImpl.generateDefaultKeystore(Config
> urationServerImpl.java:487)
>         at
> com.cloud.server.ConfigurationServerImpl.updateSSLKeystore(Configuratio
> nServerImpl.java:510)
>         at
> com.cloud.server.ConfigurationServerImpl.persistDefaultValues(Configurati
> onServerImpl.java:272)
>         at
> com.cloud.utils.component.ComponentInstantiationPostProcessor$Intercep
> torDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>         at
> com.cloud.server.ConfigurationServerImpl.configure(ConfigurationServerIm
> pl.java:148)
>         at
> com.cloud.utils.component.ComponentContext.initComponentsLifeCycle(Co
> mponentContext.java:111)
>         at
> com.cloud.servlet.CloudStartupServlet$1.run(CloudStartupServlet.java:50)
>         at java.util.TimerThread.mainLoop(Timer.java:512)
>         at java.util.TimerThread.run(Timer.java:462)
> Caused by: java.io.IOException: CreateProcess error=2, ?????????
>         at java.lang.ProcessImpl.create(Native Method)
>         at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
>         at java.lang.ProcessImpl.start(ProcessImpl.java:30)
>         at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
>         ... 15 more
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 云计算基础架构师
> Github:https://github.com/heidsoftWeibo: http://weibo.com/liuganbin
> 研究方向:云计算(云安全)、大数据(数据处理分析)
> 主要学习: Linux / C / C++ / JAVA
> Email:heids...@sina.com
> Tell:18601706743
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 某云计算公司
> 
> 
> 
> 
> 
> Jake.liu@heidsoft黑洞
> 
> 
> 
> 
> 云计算系统架构师
> 
> 
> 
> 
> 
> 
> 
> 
>                840608792
> 
> 
> 
> 
> 
>                         heidso...@gmail.com
> 
> 
> 
> 
> 
>                  weibo.com/liuganbin
> 
> 
> 
> 
> 
>              上海 徐汇区
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 名片二维码
> 
> 
> 
> 
> 
> 
> 

Reply via email to