Cloudify - 安装应用程序:应用程序安装超时?

Cloudify - 安装应用程序:应用程序安装超时?

继续主题,我在第 4 步停止:

cloudify@default> install-application --verbose -timeout 10 /usr/local/src/gigaspaces-cloudify-2.1.0-ga/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.
.....Operation failed. java.util.concurrent.TimeoutException: Application installation timed out
    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:112)
    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. 

日志文件不包含除 Cloudify shell 上显示的信息之外的任何其他信息。我也尝试部署该travel应用程序,但出现了同样的错误。

如何提高调试级别?

答案1

您是否尝试过增加超时时间?堆栈跟踪似乎表明它已达到超时时间,并且您在命令行中提供了一个超时时间。如果它们的超时时间相同,则可能会成功。当然,它所等待的任何内容都可能永远不会返回。

堆栈跟踪越rest.RestAdminFacade往下,似乎表明它正在发出网络请求,并在超时时等待响应。标准网络调试适用于此处。尝试tcpdump并检查您的 DNS 请求和 HTTP 请求。

相关内容