CF Spring启动应用程序无法开始接受连接

CF Spring启动应用程序无法开始接受连接,spring,spring-boot,cloud-foundry,spring-cloud,spring-cloud-connectors,Spring,Spring Boot,Cloud Foundry,Spring Cloud,Spring Cloud Connectors,我已经开发了一个Spring启动应用程序,它连接到本地服务器上运行的Postgresql实例 现在,我将该应用程序部署到CloudFoundry本地bosh lite安装中。我为postgresql创建了一个用户提供的服务,并将其绑定到我的应用程序 到目前为止,该应用程序运行良好。然后我想把这个应用程序作为一个服务代理。所以我再次使用了spring boot cloud foundry service broker。 并实现了与示例mongodb spring boot service brok

我已经开发了一个Spring启动应用程序,它连接到本地服务器上运行的Postgresql实例

现在,我将该应用程序部署到CloudFoundry本地bosh lite安装中。我为postgresql创建了一个用户提供的服务,并将其绑定到我的应用程序

到目前为止,该应用程序运行良好。然后我想把这个应用程序作为一个服务代理。所以我再次使用了spring boot cloud foundry service broker。 并实现了与示例mongodb spring boot service broker相同的代码。

但是现在当我尝试启动应用程序时。它失败,出现以下错误

    2017-06-20T17:16:19.82+0530 [DEA/0] OUT Starting app instance (index 0) with guid 65b656e1-fbe4-4a7f-bc34-6c410dbb3a4e
2017-06-20T17:16:23.07+0530 [DEA/0] ERR Instance (index 0) failed to start accepting connections
2017-06-20T17:16:23.09+0530 [API/0] OUT App instance exited with guid 65b656e1-fbe4-4a7f-bc34-6c410dbb3a4e payload: {"cc_partition"=>"default", "droplet"=>"65b656e1-fbe4-4a7f-bc34-6c410dbb3a4e", "version"=>"432ef489-14e3-44d7-bab8-bdd64bc8d9d3", "instance"=>"9bf4bd1c3a8741508a6b33da9ba76400", "index"=>0, "reason"=>"CRASHED", "exit_status"=>127, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1497959183}
2017-06-20T17:16:23.09+0530 [API/0] OUT App instance exited with guid 65b656e1-fbe4-4a7f-bc34-6c410dbb3a4e payload: {"cc_partition"=>"default", "droplet"=>"65b656e1-fbe4-4a7f-bc34-6c410dbb3a4e", "version"=>"432ef489-14e3-44d7-bab8-bdd64bc8d9d3", "instance"=>"9bf4bd1c3a8741508a6b33da9ba76400", "index"=>0, "reason"=>"CRASHED", "exit_status"=>127, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1497959183}
我在网上搜索过,似乎错误与端口和无法访问端口有关。

但我还没有为我的应用程序定义任何端口,我希望CF自动为我的应用程序分配一个端口

致以最良好的祝愿,
Saurav

我已删除该应用程序,然后再次部署。 它开始工作了

我知道这并不能说明根本原因。但可能是spring boot/cloud foundry框架开发人员能够说出根本原因

我想强调一点

该应用程序是作为spring boot cloud foundry service broker开发的。最初,当我部署该应用程序时,它向我询问用户名/密码。我之前不知道这件事。可能给出了错误的用户名和密码,然后按了“取消”。 之后,应用程序抛出上述错误

但必须注意的是,SpringBootCloudFoundryServiceBroker应用程序已经内置了SpringBootAuthentication,其中已经生成了用户名为“user”的密码

请在此处查看更多详细信息

我不知道这是否是原因。但删除和重新部署对我起了作用

致以最良好的祝愿,
Saurav

无法开始接受连接的
错误表明CF认为应用程序没有在预期的“健康检查超时”时间内成功启动。从所提供的信息很难说明原因。安全不应该和这有任何关系。如果它再次像这样失败,那么来自代理应用程序的更多日志将非常有用。