Open lj34 opened 8 years ago
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!
@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
?
@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 !
Any answer would greatly appreciated.
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