Thursday, April 23, 2015

Bluemix Error in cf push command

Solved:Error in cf push command


When I tried to push the code using cf push on the bluemix I got following error:

  1. 0 of 1 instances running, 1 down
  2. 0 of 1 instances running, 1 starting
  3. 0 of 1 instances running, 1 down
  4. 0 of 1 instances running, 1 down
  5. 0 of 1 instances running, 1 down
  6. 0 of 1 instances running, 1 down
  7. 0 of 1 instances running, 1 down
  8. 0 of 1 instances running, 1 starting
  9. 0 of 1 instances running, 1 down
  10. 0 of 1 instances running, 1 down
  11. 0 of 1 instances running, 1 down
  12. 0 of 1 instances running, 1 failing
  13. FAILED
  14. Start unsuccessful

Because your app doesn't start listening on the Bluemix assigned port, Bluemix detects that it's not reachable and deliberately crashes/restarts it to try and fix it.
Always Use the port 8080 and check there is no other service use the same port ;)

Solution:

cf delete <appname> 

and then 

cf delete-route mybluemix.net -n <appname> 

and then try the push again

cf push --no-route


Hope it work for you too ;) 





No comments:

Post a Comment