Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Health Check Failed? #1

Open
lj34 opened this issue Aug 15, 2016 · 4 comments
Open

Health Check Failed? #1

lj34 opened this issue Aug 15, 2016 · 4 comments

Comments

@lj34
Copy link

lj34 commented Aug 15, 2016

Going through the PCF sample deployment. Deploy fails due to ERR Timed out after 1m0s: health check never passed.

Ideas?
I downloaded ZIP and did cf push

@NazifALI
Copy link

I am facing the same issue. If I set the health the 'health-check-type' flag to 'process', the app successfully starts, however, when I open the app URL I get the following error: "502 Bad Gateway: Registered endpoint failed to handle the request."

I would appreciate any help!

@scottfrederick
Copy link
Member

@lj34 @NazifALI When you do the cf push, you should see a line in the output that looks something like this:

buildpack: client-certificate-mapper=1.2.0_RELEASE container-security-provider=1.8.0_RELEASE java-buildpack=v4.5-offline-https://github.com/cloudfoundry/java-buildpack.git#ffeefb9 java-opts jvmkill-agent=1.10.0_RELEASE open-jdk-like-jre=1.8.0_141 open-jd...

What is the java-buildpack version that shows when you do the cf push?

@NazifALI
Copy link

@scottfrederick My java-buildpack version is "v3.18 (offline) ) | https://github.com/cloudfoundry/java-buildpack.git#841ecb2"

Following is the staging output from cli

Staging...
-----> Java Buildpack Version: v3.18 (offline) | https://github.com/cloudfoundry/java-buildpack.git#841ecb2
-----> Downloading Open Jdk JRE 1.8.0_131 from https://java-buildpack.cloudfoundry.org/openjdk/trusty/x86_64/openjdk-1.8.0_131.tar.gz (found in cache)
Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.5s)
-----> Downloading Open JDK Like Memory Calculator 2.0.2_RELEASE from https://java-buildpack.cloudfoundry.org/memory-calculator/trusty/x86_64/memory-calculator-2.0.2_RELEASE.tar.gz (found in cache)
Memory Settings: -Xss349K -Xmx681574K -Xms681574K -XX:MetaspaceSize=104857K -XX:MaxMetaspaceSize=104857K
-----> Downloading Container Security Provider 1.5.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-security-provider/container-security-provider-1.5.0_RELEASE.jar (found in cache)
-----> Downloading Spring Boot CLI 1.5.4_RELEASE from https://java-buildpack.cloudfoundry.org/spring-boot-cli/spring-boot-cli-1.5.4_RELEASE.tar.gz (found in cache)
Expanding Spring Boot CLI to .java-buildpack/spring_boot_cli (0.1s)
Exit status 0
Staging complete

Also the Log error output is as follows when I cf push with health-check-type = 'http':

[ERR] Nov 22, 2017 12:00:17 AM org.cloudfoundry.security.CloudFoundryContainerTrustManagerFactory engineGetTrustManagers
2017-11-21T18:00:17.626-06:00 [APP/PROC/WEB/0] [ERR] INFO: Adding System Trust Manager
2017-11-21T18:00:17.630-06:00 [APP/PROC/WEB/0] [ERR] Nov 22, 2017 12:00:17 AM org.cloudfoundry.security.CloudFoundryContainerTrustManagerFactory engineGetTrustManagers
2017-11-21T18:00:17.630-06:00 [APP/PROC/WEB/0] [ERR] INFO: Adding TrustManager for /etc/ssl/certs/ca-certificates.crt
2017-11-21T18:00:17.641-06:00 [APP/PROC/WEB/0] [ERR] Nov 22, 2017 12:00:17 AM org.cloudfoundry.security.FileWatcher call
2017-11-21T18:00:17.641-06:00 [APP/PROC/WEB/0] [ERR] INFO: Start watching /etc/ssl/certs/ca-certificates.crt
2017-11-21T18:00:17.924-06:00 [APP/PROC/WEB/0] [ERR] Nov 22, 2017 12:00:17 AM org.cloudfoundry.security.FileWatchingX509ExtendedTrustManager
2017-11-21T18:00:17.924-06:00 [APP/PROC/WEB/0] [ERR] INFO: Initialized TrustManager for /etc/ssl/certs/ca-certificates.crt
2017-11-21T18:00:17.939-06:00 [APP/PROC/WEB/0] [ERR] Nov 22, 2017 12:00:17 AM org.cloudfoundry.security.CloudFoundryContainerKeyManagerFactory engineGetKeyManagers
2017-11-21T18:00:17.940-06:00 [APP/PROC/WEB/0] [ERR] INFO: Adding System Key Manager
2017-11-21T18:01:16.866-06:00 [CELL/0] [ERR] Failed to make HTTP request to '/' on port 8080: connection refused
2017-11-21T18:01:16.866-06:00 [CELL/0] [ERR] Timed out after 1m0s: health check never passed.

Thank You !

@MuraliMolluru
Copy link

Any answer would greatly appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants