我正在尝试关于cloudify的10分钟快速启动,并偶然发现错误。我首先安装了jdk,将JAVA_HOME
添加到环境变量中,然后启动了cloudify shell的.bat文件。 (旁注:我是Windows 7用户)。
然后我尝试了petclinic-simple的安装应用程序。我在安装过程中遇到了一个错误(我忘了,但我认为这是mongoDB的安装错误)。接下来,我决定拆除localcloud -force然后关闭cloudify shell。之后,我再次尝试了petclinic的安装应用程序,我得到了一个不同的错误,它会一直重复到超时:
[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.
答案 0 :(得分:2)
错误消息:“扩展C:\ Users \ Calvin.cloudify \ mongod1 \ mongodb-win32-i386-2.0.2.zip java.util.zip.ZipException:archive不是ZIP存档时出错”是键。
这表示mongoDB下载可能在第一次执行时失败。看看你是否可以打开文件C:\ Users \ Calvin.cloudify \ mongod1 \ mongodb-win32-i386-2.0.2.zip
如果不能,请删除“C:\ Users \ Calvin.cloudify \”的内容并尝试重新安装。
答案 1 :(得分:1)
请删除C:\ Users \ Calvin \ .cloudify \ mongod1 \ mongodb-win32-i386-2.0.2.zip
然后运行以下命令(请使用长时间超时,而不是5分钟。):
P.S。 : 要在Windows 7上安装MongoDB,必须使用管理凭据运行MongoDB。
您的用户是否拥有此类凭据? - 如果没有,请使用具有管理凭据的用户或向您的用户添加此类凭据。
如果再次失败,请将所有日志文件发送给我们。