Problem with Lab18 uaa-guard-proxy, can deploy but can't detect buildpack
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
---
applications:
- name: uaa-guard-proxy
command: proxy
path: proxy
memory: 128M
env:
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
GUARD_CLIENT_SECRET: secret
#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
env:
+ GUARD_CLIENT_KEY
+ GUARD_CLIENT_SECRET
+ GUARD_COOKIE_SECRET
+ GUARD_DEFAULT_CALLBACK_URL
+ GUARD_LOGIN_URL
routes:
+ 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)
Staging...
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.
FAILED
Comments
-
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
0 -
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?
0
Categories
- All Categories
- 176 LFX Mentorship
- 176 LFX Mentorship: Linux Kernel
- 750 Linux Foundation IT Professional Programs
- 373 Cloud Engineer IT Professional Program
- 169 Advanced Cloud Engineer IT Professional Program
- 74 DevOps IT Professional Program - Discontinued
- 4 DevOps & GitOps IT Professional Program
- 99 Cloud Native Developer IT Professional Program
- 7.6K Training Courses & Learning Paths
- 1 AI & ML Training
- 1 Blockchain & Decentralized Identity Training
- 3 Cloud & Containers Training
- 1 Cybersecurity Training
- 1 DevOps & Site-Reliability Training
- 1 Linux Kernel Development Training
- 1 Networking Training
- 1 Open Source Best Practice Training
- 1 System Administration Training
- 1 System Engineering Training
- 1 Web & Application Development Training
- 792 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 95 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 87 Storage
- 768 Linux Distributions
- 81 Debian
- 67 Fedora
- 22 Linux Mint
- 13 Mageia
- 24 openSUSE
- 150 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 465 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 98 Linux Security
- 78 Network Management
- 101 System Management
- 46 Web Management
- 106 Mobile Computing
- 18 Android
- 73 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 392 Off Topic
- 121 Introductions
- 181 Small Talk
- 29 Study Material
- 949 Programming and Development
- 310 Kernel Development
- 621 Software Development
- 982 Software
- 374 Applications
- 182 Command Line
- 5 Compiling/Installing
- 68 Games
- 317 Installation
- Archived
- 2 LFD140 Class Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)