我在 cloudify 上尝试了 10 分钟的快速入门,但偶然发现了一个错误。我首先安装了 jdk,添加JAVA_HOME
到环境变量中,然后为 cloudify shell 启动了 .bat 文件。(旁注:我是 Windows 7 用户)。
然后我尝试了 petclinic-simple 的安装应用程序。之后在安装过程中出现错误(我忘记了,但我认为这是 mongoDB 的安装错误)。接下来,我决定 teardown-localcloud -force 然后关闭 cloudify shell。之后,我再次尝试了宠物诊所的安装应用程序,但我得到了一个不同的错误,该错误会重复直到超时:
[127.0.0.1/127.0.0.1] mongod-1 INSTALL invoked
....
[127.0.0.1/127.0.0.1] mongod-1 INSTALL failed. Reason: Event lifecycle external process exited with abnormal status code: 1 Caught
: : Error while expanding C:\Users\Calvin\.cloudify\mongod1\mongodb-win32-i386-2.0.2.zip
java.util.zip.ZipException: archive is not a ZIP archive
: Error while expanding C:\Users\Calvin\.cloudify\mongod1\mongodb-win32-i386-2.0.2.zip
java.util.zip.ZipException: archive is not a ZIP archive
at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:192)
at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:132)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at mongod_install.run(mongod_install.groovy:42) [ERROR]
...Application installation timed out. Configure the timeout using the -timeout flag.
Operation failed.
一般来说,我对编程还是很陌生,所以如果我不理解许多复杂的事情,请原谅。我还尝试重新启动,删除文件夹,然后重新提取一个新文件夹。
编辑: 这是 --verbose 但超时 5 的输出
cloudify@default> teardown-localcloud -force
Teardown will shut down the local cloud. Do you want to continue [y/n]?
Failed to fetch the currently deployed applications list. Continuing teardown-localcloud.
..
SHUTTING DOWN CLOUDIFY AGENT
SHUTTING DOWN CLOUDIFY MANAGEMENT COMPONENTS
SUCCESSFULLY COMPLETED LOCAL-CLOUD TEARDOWN
cloudify@default> bootstrap-localcloud
STARTING CLOUDIFY MANAGEMENT
..
STARTING CLOUDIFY WEBUI
..
STARTING CLOUDIFY REST
CLOUDIFY LOCAL-CLOUD STARTED
LOCAL-CLOUD INFO :
CLOUDIFY MANAGEMENT http://127.0.0.1:8099/
CLOUDIFY GATEWAY http://127.0.0.1:8100/
Local-cloud started successfully. Use the teardown-localcloud command to shutdown all processes.
cloudify@default> install-application --verbose -timeout 5 C:/Users/Calvin/Desktop/cloudify/recipes/apps/petclinic-simple
Validating file petclinic-simple
Uploading application petclinic
Application [petclinic] with 2 services
Service [mongod] 1 planned instances
Service [tomcat] depends on [mongod] 1 planned instances
.
Deploying mongod with 1 planned instances.
Deploying tomcat with 1 planned instances.
...
[127.0.0.1/127.0.0.1] mongod-1 INSTALL invoked
.....
[127.0.0.1/127.0.0.1] mongod-1 INSTALL failed. Reason: Event lifecycle external process exited with abnormal status code: 1 Caught
: : Error while expanding C:\Users\Calvin\.cloudify\mongod1\mongodb-win32-i386-2.0.2.zip
java.util.zip.ZipException: archive is not a ZIP archive
: Error while expanding C:\Users\Calvin\.cloudify\mongod1\mongodb-win32-i386-2.0.2.zip
java.util.zip.ZipException: archive is not a ZIP archive
at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:192)
at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:132)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at mongod_install.run(mongod_install.groovy:42) [ERROR]
[127.0.0.1/127.0.0.1] tomcat-1 INSTALL invoked
....
[127.0.0.1/127.0.0.1] mongod-1 INSTALL invoked
.
[127.0.0.1/127.0.0.1] mongod-1 INSTALL failed. Reason: Event lifecycle external process exited with abnormal status code: 1 Caught
: : Error while expanding C:\Users\Calvin\.cloudify\mongod1\mongodb-win32-i386-2.0.2.zip
java.util.zip.ZipException: archive is not a ZIP archive
: Error while expanding C:\Users\Calvin\.cloudify\mongod1\mongodb-win32-i386-2.0.2.zip
java.util.zip.ZipException: archive is not a ZIP archive
at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:192)
at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:132)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at mongod_install.run(mongod_install.groovy:42) [ERROR]
.
[127.0.0.1/127.0.0.1] mongod-1 INSTALL invoked
.
[127.0.0.1/127.0.0.1] mongod-1 INSTALL failed. Reason: Event lifecycle external process exited with abnormal status code: 1 Caught
: : Error while expanding C:\Users\Calvin\.cloudify\mongod1\mongodb-win32-i386-2.0.2.zip
java.util.zip.ZipException: archive is not a ZIP archive
: Error while expanding C:\Users\Calvin\.cloudify\mongod1\mongodb-win32-i386-2.0.2.zip
java.util.zip.ZipException: archive is not a ZIP archive
at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:192)
at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:132)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at mongod_install.run(mongod_install.groovy:42) [ERROR]
.....
[127.0.0.1/127.0.0.1] mongod-1 INSTALL invoked
.
[127.0.0.1/127.0.0.1] mongod-1 INSTALL failed. Reason: Event lifecycle external process exited with abnormal status code: 1 Caught
: : Error while expanding C:\Users\Calvin\.cloudify\mongod1\mongodb-win32-i386-2.0.2.zip
java.util.zip.ZipException: archive is not a ZIP archive
: Error while expanding C:\Users\Calvin\.cloudify\mongod1\mongodb-win32-i386-2.0.2.zip
java.util.zip.ZipException: archive is not a ZIP archive
at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:192)
at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:132)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at mongod_install.run(mongod_install.groovy:42) [ERROR]
...
[127.0.0.1/127.0.0.1] mongod-1 INSTALL invoked
...
[127.0.0.1/127.0.0.1] mongod-1 INSTALL failed. Reason: Event lifecycle external process exited with abnormal status code: 1 Caught
: : Error while expanding C:\Users\Calvin\.cloudify\mongod1\mongodb-win32-i386-2.0.2.zip
java.util.zip.ZipException: archive is not a ZIP archive
: Error while expanding C:\Users\Calvin\.cloudify\mongod1\mongodb-win32-i386-2.0.2.zip
java.util.zip.ZipException: archive is not a ZIP archive
at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:192)
at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:132)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at mongod_install.run(mongod_install.groovy:42) [ERROR]
...
[127.0.0.1/127.0.0.1] mongod-1 INSTALL invoked
...
[127.0.0.1/127.0.0.1] mongod-1 INSTALL failed. Reason: Event lifecycle external process exited with abnormal status code: 1 Caught
: : Error while expanding C:\Users\Calvin\.cloudify\mongod1\mongodb-win32-i386-2.0.2.zip
java.util.zip.ZipException: archive is not a ZIP archive
: Error while expanding C:\Users\Calvin\.cloudify\mongod1\mongodb-win32-i386-2.0.2.zip
java.util.zip.ZipException: archive is not a ZIP archive
at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:192)
at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:132)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at mongod_install.run(mongod_install.groovy:42) [ERROR]
...
[127.0.0.1/127.0.0.1] mongod-1 INSTALL invoked
...
[127.0.0.1/127.0.0.1] mongod-1 INSTALL failed. Reason: Event lifecycle external process exited with abnormal status code: 1 Caught
: : Error while expanding C:\Users\Calvin\.cloudify\mongod1\mongodb-win32-i386-2.0.2.zip
java.util.zip.ZipException: archive is not a ZIP archive
: Error while expanding C:\Users\Calvin\.cloudify\mongod1\mongodb-win32-i386-2.0.2.zip
java.util.zip.ZipException: archive is not a ZIP archive
at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:192)
at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:132)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at mongod_install.run(mongod_install.groovy:42) [ERROR]
...
[127.0.0.1/127.0.0.1] mongod-1 INSTALL invoked
...
[127.0.0.1/127.0.0.1] mongod-1 INSTALL failed. Reason: Event lifecycle external process exited with abnormal status code: 1 Caught
: : Error while expanding C:\Users\Calvin\.cloudify\mongod1\mongodb-win32-i386-2.0.2.zip
java.util.zip.ZipException: archive is not a ZIP archive
: Error while expanding C:\Users\Calvin\.cloudify\mongod1\mongodb-win32-i386-2.0.2.zip
java.util.zip.ZipException: archive is not a ZIP archive
at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:192)
at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:132)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at mongod_install.run(mongod_install.groovy:42) [ERROR]
...
[127.0.0.1/127.0.0.1] mongod-1 INSTALL invoked
...
[127.0.0.1/127.0.0.1] mongod-1 INSTALL failed. Reason: Event lifecycle external process exited with abnormal status code: 1 Caught
: : Error while expanding C:\Users\Calvin\.cloudify\mongod1\mongodb-win32-i386-2.0.2.zip
java.util.zip.ZipException: archive is not a ZIP archive
: Error while expanding C:\Users\Calvin\.cloudify\mongod1\mongodb-win32-i386-2.0.2.zip
java.util.zip.ZipException: archive is not a ZIP archive
at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:192)
at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:132)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at mongod_install.run(mongod_install.groovy:42) [ERROR]
...
[127.0.0.1/127.0.0.1] mongod-1 INSTALL invoked
...
[127.0.0.1/127.0.0.1] mongod-1 INSTALL failed. Reason: Event lifecycle external process exited with abnormal status code: 1 Caught
: : Error while expanding C:\Users\Calvin\.cloudify\mongod1\mongodb-win32-i386-2.0.2.zip
java.util.zip.ZipException: archive is not a ZIP archive
: Error while expanding C:\Users\Calvin\.cloudify\mongod1\mongodb-win32-i386-2.0.2.zip
java.util.zip.ZipException: archive is not a ZIP archive
at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:192)
at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:132)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at mongod_install.run(mongod_install.groovy:42) [ERROR]
...
[127.0.0.1/127.0.0.1] mongod-1 INSTALL invoked
.
[127.0.0.1/127.0.0.1] mongod-1 INSTALL failed. Reason: Event lifecycle external process exited with abnormal status code: 1 Caught
: : Error while expanding C:\Users\Calvin\.cloudify\mongod1\mongodb-win32-i386-2.0.2.zip
java.util.zip.ZipException: archive is not a ZIP archive
: Error while expanding C:\Users\Calvin\.cloudify\mongod1\mongodb-win32-i386-2.0.2.zip
java.util.zip.ZipException: archive is not a ZIP archive
at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:192)
at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:132)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at mongod_install.run(mongod_install.groovy:42) [ERROR]
.....
[127.0.0.1/127.0.0.1] mongod-1 INSTALL invoked
.
[127.0.0.1/127.0.0.1] mongod-1 INSTALL failed. Reason: Event lifecycle external process exited with abnormal status code: 1 Caught
: : Error while expanding C:\Users\Calvin\.cloudify\mongod1\mongodb-win32-i386-2.0.2.zip
java.util.zip.ZipException: archive is not a ZIP archive
: Error while expanding C:\Users\Calvin\.cloudify\mongod1\mongodb-win32-i386-2.0.2.zip
java.util.zip.ZipException: archive is not a ZIP archive
at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:192)
at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:132)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at mongod_install.run(mongod_install.groovy:42) [ERROR]
...
[127.0.0.1/127.0.0.1] mongod-1 INSTALL invoked
....
[127.0.0.1/127.0.0.1] mongod-1 INSTALL failed. Reason: Event lifecycle external process exited with abnormal status code: 1 Caught
: : Error while expanding C:\Users\Calvin\.cloudify\mongod1\mongodb-win32-i386-2.0.2.zip
java.util.zip.ZipException: archive is not a ZIP archive
: Error while expanding C:\Users\Calvin\.cloudify\mongod1\mongodb-win32-i386-2.0.2.zip
java.util.zip.ZipException: archive is not a ZIP archive
at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:192)
at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:132)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at mongod_install.run(mongod_install.groovy:42) [ERROR]
...
[127.0.0.1/127.0.0.1] mongod-1 INSTALL invoked
...
[127.0.0.1/127.0.0.1] mongod-1 INSTALL failed. Reason: Event lifecycle external process exited with abnormal status code: 1 Caught
: : Error while expanding C:\Users\Calvin\.cloudify\mongod1\mongodb-win32-i386-2.0.2.zip
java.util.zip.ZipException: archive is not a ZIP archive
: Error while expanding C:\Users\Calvin\.cloudify\mongod1\mongodb-win32-i386-2.0.2.zip
java.util.zip.ZipException: archive is not a ZIP archive
at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:192)
at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:132)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at mongod_install.run(mongod_install.groovy:42) [ERROR]
...
[127.0.0.1/127.0.0.1] mongod-1 INSTALL invoked
...
[127.0.0.1/127.0.0.1] mongod-1 INSTALL failed. Reason: Event lifecycle external process exited with abnormal status code: 1 Caught
: : Error while expanding C:\Users\Calvin\.cloudify\mongod1\mongodb-win32-i386-2.0.2.zip
java.util.zip.ZipException: archive is not a ZIP archive
: Error while expanding C:\Users\Calvin\.cloudify\mongod1\mongodb-win32-i386-2.0.2.zip
java.util.zip.ZipException: archive is not a ZIP archive
at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:192)
at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:132)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at mongod_install.run(mongod_install.groovy:42) [ERROR]
...
[127.0.0.1/127.0.0.1] mongod-1 INSTALL invoked
...
[127.0.0.1/127.0.0.1] mongod-1 INSTALL failed. Reason: Event lifecycle external process exited with abnormal status code: 1 Caught
: : Error while expanding C:\Users\Calvin\.cloudify\mongod1\mongodb-win32-i386-2.0.2.zip
java.util.zip.ZipException: archive is not a ZIP archive
: Error while expanding C:\Users\Calvin\.cloudify\mongod1\mongodb-win32-i386-2.0.2.zip
java.util.zip.ZipException: archive is not a ZIP archive
at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:192)
at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:132)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at mongod_install.run(mongod_install.groovy:42) [ERROR]
...
[127.0.0.1/127.0.0.1] mongod-1 INSTALL invoked
.
[127.0.0.1/127.0.0.1] mongod-1 INSTALL failed. Reason: Event lifecycle external process exited with abnormal status code: 1 Caught
: : Error while expanding C:\Users\Calvin\.cloudify\mongod1\mongodb-win32-i386-2.0.2.zip
java.util.zip.ZipException: archive is not a ZIP archive
: Error while expanding C:\Users\Calvin\.cloudify\mongod1\mongodb-win32-i386-2.0.2.zip
java.util.zip.ZipException: archive is not a ZIP archive
at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:192)
at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:132)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at mongod_install.run(mongod_install.groovy:42) [ERROR]
...
[127.0.0.1/127.0.0.1] mongod-1 INSTALL invoked
...
[127.0.0.1/127.0.0.1] mongod-1 INSTALL failed. Reason: Event lifecycle external process exited with abnormal status code: 1 Caught
: : Error while expanding C:\Users\Calvin\.cloudify\mongod1\mongodb-win32-i386-2.0.2.zip
java.util.zip.ZipException: archive is not a ZIP archive
: Error while expanding C:\Users\Calvin\.cloudify\mongod1\mongodb-win32-i386-2.0.2.zip
java.util.zip.ZipException: archive is not a ZIP archive
at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:192)
at org.apache.tools.ant
.taskdefs.Expand.execute(Expand.java:132)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at mongod_install.run(mongod_install.groovy:42) [ERROR]
...
[127.0.0.1/127.0.0.1] mongod-1 INSTALL invoked
.Operation failed. java.util.concurrent.TimeoutException: Application installation timed out. Configure the timeout using the -tim
eout flag.
at org.cloudifysource.shell.ConditionLatch.waitFor(ConditionLatch.java:146)
at org.cloudifysource.shell.rest.RestLifecycleEventsLatch.waitForLifecycleEvents(RestLifecycleEventsLatch.java:79)
at org.cloudifysource.shell.rest.RestAdminFacade.waitForLifecycleEvents(RestAdminFacade.java:275)
at org.cloudifysource.shell.commands.InstallApplication.doExecute(InstallApplication.java:113)
at org.cloudifysource.shell.commands.AbstractGSCommand.execute(AbstractGSCommand.java:83)
at org.cloudifysource.shell.commands.AdminAwareCommand.execute(AdminAwareCommand.java:36)
at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)
at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)
at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)
at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
at org.apache.karaf.shell.console.jline.Console.run(Console.java:221)
at org.apache.karaf.shell.console.Main.run(Main.java:191)
at org.apache.karaf.shell.console.Main.run(Main.java:89)
at org.cloudifysource.shell.GigaShellMain.main(GigaShellMain.java:122)
Operation failed.