Failed to push my local bluemix app

I had an application running in a different bluemix account. I wanted to copy the application and run it in another bluemix account. So I downloaded the code from github repo. But when I try to push this application to another account, I see the following error.

Note. I used cf push to download the downloaded application. Any help?

Journal:

2014-12-16T14:49:15.41+0530 [API] OUT Updated app with guid e2fca26a-c62d-47 5d-8c21-8e959ae6632c ({"state"=>"STOPPED"}) 2014-12-16T14:49:42.10+0530 [DEA] OUT Got staging request for app with id e2 fca26a-c62d-475d-8c21-8e959ae6632c 2014-12-16T14:49:45.08+0530 [API] OUT Updated app with guid e2fca26a-c62d-47 5d-8c21-8e959ae6632c ({"state"=>"STARTED"}) 2014-12-16T14:49:45.65+0530 [STG] OUT -----> Downloaded app package (4.6M) 2014-12-16T14:49:46.15+0530 [STG] OUT -----> Downloaded app buildpack cache(4.4M) 2014-12-16T14:49:48.62+0530 [STG] OUT Staging failed: An application could not be detected by any available buildpack 2014-12-16T14:49:49.37+0530 [API] ERR Encountered error: An app was not succ essfully detected by any available buildpack 
+5
source share
5 answers

Please check your Manifest.yml. Either your application skips it, or it has the wrong entry. You can find this file in the downloaded application. Also, be sure to pass the name of the assembly package when you run the push command.

This link may be useful:

https://ibm.biz/BdEgub

+5
source

What language is the application in? Sometimes Cloud Foundry cannot determine the type of application you are using, and when you click the application, you need to tell which application it is. We can do this with some of the following commands. I went ahead and posted it in a couple of different languages. More info here. https://www.ng.bluemix.net/docs/#starters/byob.html

To see all the built-in assemblies, run the following command.

cf buildpacks

You will receive the following.

 Getting buildpacks... buildpack position enabled locked filename liberty-for-java 1 true false buildpack_liberty-for-java_v1.9-20141202-0947-yp.zip sdk-for-nodejs 2 true false buildpack_sdk-for-nodejs_v1.9.1-20141208-1221-yp.zip noop-buildpack 3 true false noop-buildpack-20140311-1519.zip java_buildpack 4 true false java-buildpack-v2.5.zip ruby_buildpack 5 true false ruby_buildpack-offline-v1.1.1.zip nodejs_buildpack 6 true false nodejs_buildpack-offline-v1.0.4.zip liberty-for-java_v1-8-20141118-1610 7 true false buildpack_liberty-for-java_v1.8-20141118-1610-yp.zip liberty-for-java_v1-3-20140818-1538 8 true false buildpack_liberty-for-java_v1.3-20140818-1538.zip sdk-for-nodejs_v1-8-20141104-1654 9 true false buildpack_sdk-for-nodejs_v1.8-20141104-1654-yp.zip 

Java application: cf push appname -b liberty-for-java or cf push appname -b java_buildpack

Node.js: cf push appname -b sdk-for-nodejs or cf push appname -b nodejs_buildpack

Ruby: cf push appname -b ruby_buildpack

There are also many other languages.

For a list, go to https://github.com/cloudfoundry-community/cf-docs-contrib/wiki/Buildpacks .

If, for example, you wanted to use PHP, you would do the following. cf push -b https://github.com/cloudfoundry/php-buildpack.git

If you want to make Go, you would do the following. cf push appname -b https://github.com/cloudfoundry/go-buildpack.git

+3
source

two ways to solve this problem (suppose this is a node.js application)

  • Run the command, as shown below, from the cf tool, which contains the name of the application:

    cf push testmyapp -b sdk-for-nodejs -n testmyapp -m 128M -c 'node main.js'

The PS- "-n" option is used for the required hostname on bluemix

  1. specify the application name, the service name explicitly in the manifest.yml file, as shown below:

    applications:

    • name: testmyapp

    host: testmyapp

    memory: 128M

    : node main.js

PS- You need to explicitly create manifest.yml if you use the second method.

If you still get any error, provide o / p "cf logs testmyapp -recent"

Alternatively, you can even directly click on your application, as shown below:

For the Go app for Bluemix, but you need to specify -b with the Go Buildpack URL:

cf push appname -b https://github.com/cloudfoundry/go-buildpack.git

Similarly, you can do for others.

+2
source

Seeing the error below, your application cannot detect the correct type of SDK.

2014-12-16T14: 49: 48.62 + 0530 [STG] OUT The step failed: the application could not be detected using any available buildpack 2014-12-16T14: 49: 49.37 + 0530 [API] ERR Error detected: the application was not was succ elegantly discovered by any available buildpack

you need to check the correct sdk type and mention it by clicking as shown below:

cf push myapp -b sdk-for-nodejs -n myapp -m 128M -c 'node main.js'

+1
source

I had a conversation at the last CloudFoundry summit on all kinds of application errors: their symptoms, how to diagnose and what solutions. See https://www.slideshare.net/greensight/10-common-errors-when-pushing-apps-to-cloud-foundry . Hope this will be helpful.

0
source

Source: https://habr.com/ru/post/1209238/


All Articles