Welcome to the Linux Foundation Forum!

Problem with Lab18 uaa-guard-proxy, can deploy but can't detect buildpack

dkt Posts: 8
edited April 2018 in LFD232 Class Forum

Got problem deploying the uaa-guard-proxy app. The buildpack for this app was not detected correctly. So the app cannot be started.

$ cat /tmp/cf-uaa-guard-service-proxy-manifest.yml



  - name: uaa-guard-proxy

    command: proxy

    path: proxy

    memory: 128M


      GUARD_COOKIE_SECRET: very-secret

      GUARD_DEFAULT_CALLBACK_URL: http://uaa-guard-proxy.local.pcfdev.io/auth/cloudfoundry/callback

      GUARD_LOGIN_URL: https://uaa1.local.pcfdev.io

      GUARD_CLIENT_KEY: oauth_showcase_authorization_code


      #GOPACKAGENAME: github.com/cloudfoundry/go-buildpack

$ cf push uaa-guard-proxy -p /tmp/cf-uaa-guard-service-git/cf-uaa-guard-service -f /tmp/cf-uaa-guard-service-proxy-manifest.yml

Pushing from manifest to org pcfdev-org / space pcfdev-space as admin...

Using manifest file /tmp/cf-uaa-guard-service-proxy-manifest.yml

Getting app info...

Creating app with these attributes...

+ name:       uaa-guard-proxy

  path:       /tmp/cf-uaa-guard-service-git/cf-uaa-guard-service

+ command:    proxy

+ memory:     128M








+   uaa-guard-proxy.local.pcfdev.io

Creating app uaa-guard-proxy...

Mapping routes...

Comparing local files to remote cache...

Packaging files to upload...

Uploading files...

 9.31 KiB / 9.31 KiB [==============================================================================================================] 100.00% 1s

Waiting for API to complete processing files...

Staging app and tracing logs...

   Downloading go_buildpack_new...

   Downloading java_buildpack...

   Downloading ruby_buildpack...

   Downloading dotnet-core_buildpack...

   Downloading nodejs_buildpack...

   Downloaded go_buildpack_new

   Downloading go_buildpack...

   Downloaded java_buildpack

   Downloading python_buildpack...

   Downloaded ruby_buildpack

   Downloading php_buildpack...

   Downloaded dotnet-core_buildpack

   Downloading staticfile_buildpack...

   Downloaded staticfile_buildpack

   Downloading binary_buildpack...

   Downloaded php_buildpack

   Downloaded binary_buildpack

   Downloaded nodejs_buildpack

   Downloaded python_buildpack

   Downloaded go_buildpack

   Creating container

   Successfully created container

   Downloading app package...

   Downloaded app package (9.3K)


   None of the buildpacks detected a compatible application

   Exit status 222

   Staging failed: Exited with status 222

   Destroying container

   Successfully destroyed container

Error staging application: An app was not successfully detected by any available buildpack

TIP: Use 'cf buildpacks' to see a list of supported buildpacks.



  • spgreenberg
    spgreenberg Posts: 86

    Can you check the directory you are pushing from?  The sample manifest references the app directory `proxy` and therefore you need to be in the root of the guard proxy: 

    cf-uaa-guard-service-master -> if using the zip


    cf-uaa-guard-service -> if you cloned the repo

  • yangmily
    yangmily Posts: 1

    I think you need to specify which buildpack you are using in the manifest file. Also, can you check the log files by using 

    cf logs APP_NAME --recent

    to get more information? 



Upcoming Training