Search code examples
node.jsibm-cloud

ERRInstance (index 0) failed to start accepting connections


I cannot run my app on the bluemix. I can run it well on local.

    2015-12-14T21:14:04.751+0800[API/0]OUTApp instance exited with guid e498196a-4159-48a6-8e79-95c73d70e14a payload: {"cc_partition"=>"default", "droplet"=>"e498196a-4159-48a6-8e79-95c73d70e14a", "version"=>"0b284740-d9db-45b3-9e0c-0f226d37c0d6", "instance"=>"0827df95253a4c6b83042c1c2e646e36", "index"=>0, "reason"=>"CRASHED", "exit_status"=>-1, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1450098844}
    2015-12-14T21:15:14.412+0800[DEA/34]OUTStarting app instance (index 0) with guid e498196a-4159-48a6-8e79-95c73d70e14a
    2015-12-14T21:15:26.746+0800[App/0]OUTDetected 1024 MB available memory, 512 MB limit per process (WEB_MEMORY)
    2015-12-14T21:15:26.746+0800[App/0]OUTRecommending WEB_CONCURRENCY=2
    2015-12-14T21:15:27.596+0800[App/0]OUT> [email protected] start /home/vcap/app
    2015-12-14T21:15:27.596+0800[App/0]OUT> node fpp.js
    2015-12-14T21:16:26.834+0800[DEA/34]ERRInstance (index 0) failed to start accepting connections
    2015-12-14T21:16:26.890+0800[API/10]OUTApp instance exited with guid e498196a-4159-48a6-8e79-95c73d70e14a payload: {"cc_partition"=>"default", "droplet"=>"e498196a-4159-48a6-8e79-95c73d70e14a", "version"=>"0b284740-d9db-45b3-9e0c-0f226d37c0d6", "instance"=>"78c0fb8f10284080b1c575ba0a336c5c", "index"=>0, "reason"=>"CRASHED", "exit_status"=>-1, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1450098986}
    2015-12-14T21:16:26.883+0800[App/0]ERR

You can watch my code in http://my.oschina.net/wffger/blog/544409

I added the referred code and pushed again. It does not work.

12/15/15 10:44 AM gzcailanzi an instance of the app crashed: failed to accept connections within health check timeout exit status: -1, CRASHED

source code: https://coding.net/u/wffger/p/crawler-cnode/git


Solution

  • It's so easy.

    cf push --no-route AppName