Ibm cloud bluemix上的应用程序未启动表示0个实例正在运行

Ibm cloud bluemix上的应用程序未启动表示0个实例正在运行,ibm-cloud,Ibm Cloud,我在bluemix上的应用程序没有启动,上面显示运行的1个实例的0,我如何修复它 Starting app mytwitinfluapp in org xyz@in.ibm.com / space dev as xyz@in.ibm.com... OK 0 of 1 instances running, 1 down 0 of 1 instances running, 1 down 0 of 1 instances running, 1 down 0 of 1 instances runnin

我在bluemix上的应用程序没有启动,上面显示运行的1个实例的
0
,我如何修复它

Starting app mytwitinfluapp in org xyz@in.ibm.com / space dev as xyz@in.ibm.com...
OK

0 of 1 instances running, 1 down
0 of 1 instances running, 1 down
0 of 1 instances running, 1 down
0 of 1 instances running, 1 down
0 of 1 instances running, 1 down
0 of 1 instances running, 1 down
0 of 1 instances running, 1 down
0 of 1 instances running, 1 down
0 of 1 instances running, 1 down
0 of 1 instances running, 1 down
0 of 1 instances running, 1 down
0 of 1 instances running, 1 down
0 of 1 instances running, 1 failing
FAILED
Start unsuccessful

logs indicate the following
2014-08-25T12:37:38.31+0530 [DEA]     OUT Instance (index 0) failed to start accepting connections
2014-08-25T12:38:06.79+0530 [DEA]     OUT Removing crash for app with id e7c454db-1d71-486d-ae8c-1fce17b978ec
2014-08-25T12:38:06.79+0530 [DEA]     OUT Stopping app instance (index 0) with guid e7c454db-1d71-486d-ae8c-1fce17b978ec
2014-08-25T12:38:06.79+0530 [DEA]     OUT Stopped app instance (index 0) with guid e7c454db-1d71-486d-ae8c-1fce17b978ec
2014-08-25T12:42:46.15+0530 [DEA]     OUT Removing crash for app with id e7c454db-1d71-486d-ae8c-1fce17b978ec
2014-08-25T12:42:46.15+0530 [DEA]     OUT Stopping app instance (index 0) with guid e7c454db-1d71-486d-ae8c-1fce17b978ec
2014-08-25T12:42:46.15+0530 [DEA]     OUT Stopped app instance (index 0) with guid e7c454db-1d71-486d-ae8c-1fce17b978ec

这通常是由运行时错误引起的,例如绑定到错误的端口,导致应用程序启动时出现错误,如上所述,您可以发布cf日志mytwitinfluapp--recent的输出吗?

日志输出中的关键错误消息如下:
2014-08-25T12:37:38.31+0530[DEA]OUT实例(索引0)无法开始接受连接


该消息表示您的应用程序正在错误的端口上侦听(正如jsloyer所述),或者您推送的应用程序没有在端口上侦听,但您没有设置--no-route选项。


实际上,health manager正在轮询为应用程序配置的路由(url),以确定应用程序是否仍处于活动状态。由于您的应用程序没有返回响应,因此该应用程序实例将被终止。

您提供的信息不足以进行诊断。我假设您正在使用cf命令


prompt.有关故障的详细分析,请提供最近运行的日志文件

这通常表示您的代码(app.js,manifest.yml)或任何其他语言的代码中存在错误。我发现以下技术对于使用cf命令调试这种情况非常有用

cf日志应用程序名称--最近的

这将在您尝试将应用程序推送到Bluemix上时转储日志。如果应用程序在执行时突然崩溃,也可以使用上述命令

查看我的帖子
在调试我的应用程序时,我多次使用这种技术,如果您使用的是Java之类的东西,请验证MANIFEST.MF文件是否符合bluemix域的要求。此外,如果您正在使用其他不同于Java的运行时,请验证您的应用程序是否已正确设置为指向您的bluemix环境

本文有助于理解如何在bluemix中部署应用程序:

您能否尝试部署并提供更多的:cf日志输出?最近我知道这很旧,但对于其他有相同问题的人来说。。。在你的server.js或app.js中,确保你有类似于
app.set('port',process.env.port | 3000)的东西
var server=http.createServer(app.listen(app.get('port'))