org.cloudfoundry.client.lib.org.springframework.web.client.HttpServerErrorException: 503 Service Unavailable

GitHub | jonathanamartin | 2 months ago
  1. 0

    Exception using Plugin

    GitHub | 2 months ago | jonathanamartin
    org.cloudfoundry.client.lib.org.springframework.web.client.HttpServerErrorException: 503 Service Unavailable
  2. 0

    When attempting to deploy a Java (WAR) app to Pivotal Cloud Foundry, the operation seems to be successful but the build fails with a 503 error when starting the application. I've managed to push the same application (the spring-music app that Pivotal use for their training) using the CLI without issue. Output is as follows: Cloud Foundry Plugin: Pushing spring-music app to https://api.run.pivotal.io Creating new app. Pushing app bits. Starting application. org.cloudfoundry.client.lib.org.springframework.web.client.HttpServerErrorException: 503 Service Unavailable at org.cloudfoundry.client.lib.rest.CloudControllerResponseErrorHandler.handleError(CloudControllerResponseErrorHandler.java:26) at org.cloudfoundry.client.lib.org.springframework.web.client.RestTemplate.handleResponseError(RestTemplate.java:589) at org.cloudfoundry.client.lib.org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:547) at org.cloudfoundry.client.lib.rest.LoggingRestTemplate.doExecute(LoggingRestTemplate.java:54) at org.cloudfoundry.client.lib.org.springframework.web.client.RestTemplate.execute(RestTemplate.java:511) at org.cloudfoundry.client.lib.org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:248) at org.cloudfoundry.client.lib.rest.CloudControllerClientImpl.getInstanceInfoForApp(CloudControllerClientImpl.java:1154) at org.cloudfoundry.client.lib.rest.CloudControllerClientImpl.doGetApplicationStats(CloudControllerClientImpl.java:1140) at org.cloudfoundry.client.lib.rest.CloudControllerClientImpl.getRunningInstances(CloudControllerClientImpl.java:1119) at org.cloudfoundry.client.lib.rest.CloudControllerClientImpl.mapCloudApplication(CloudControllerClientImpl.java:1107) at org.cloudfoundry.client.lib.rest.CloudControllerClientImpl.getApplication(CloudControllerClientImpl.java:1075) at org.cloudfoundry.client.lib.CloudFoundryClient.getApplication(CloudFoundryClient.java:226) at com.hpe.cloudfoundryjenkins.CloudFoundryPushPublisher.processOneApp(CloudFoundryPushPublisher.java:287) at com.hpe.cloudfoundryjenkins.CloudFoundryPushPublisher.perform(CloudFoundryPushPublisher.java:188) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671) at hudson.model.Run.execute(Run.java:1766) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) Build step 'Push to Cloud Foundry' marked build as failure Finished: FAILURE

    Jenkins JIRA | 1 year ago | Gerard Krupa
    org.cloudfoundry.client.lib.org.springframework.web.client.HttpServerErrorException: 503 Service Unavailable
  3. 0

    When attempting to deploy a Java (WAR) app to Pivotal Cloud Foundry, the operation seems to be successful but the build fails with a 503 error when starting the application. I've managed to push the same application (the spring-music app that Pivotal use for their training) using the CLI without issue. Output is as follows: Cloud Foundry Plugin: Pushing spring-music app to https://api.run.pivotal.io Creating new app. Pushing app bits. Starting application. org.cloudfoundry.client.lib.org.springframework.web.client.HttpServerErrorException: 503 Service Unavailable at org.cloudfoundry.client.lib.rest.CloudControllerResponseErrorHandler.handleError(CloudControllerResponseErrorHandler.java:26) at org.cloudfoundry.client.lib.org.springframework.web.client.RestTemplate.handleResponseError(RestTemplate.java:589) at org.cloudfoundry.client.lib.org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:547) at org.cloudfoundry.client.lib.rest.LoggingRestTemplate.doExecute(LoggingRestTemplate.java:54) at org.cloudfoundry.client.lib.org.springframework.web.client.RestTemplate.execute(RestTemplate.java:511) at org.cloudfoundry.client.lib.org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:248) at org.cloudfoundry.client.lib.rest.CloudControllerClientImpl.getInstanceInfoForApp(CloudControllerClientImpl.java:1154) at org.cloudfoundry.client.lib.rest.CloudControllerClientImpl.doGetApplicationStats(CloudControllerClientImpl.java:1140) at org.cloudfoundry.client.lib.rest.CloudControllerClientImpl.getRunningInstances(CloudControllerClientImpl.java:1119) at org.cloudfoundry.client.lib.rest.CloudControllerClientImpl.mapCloudApplication(CloudControllerClientImpl.java:1107) at org.cloudfoundry.client.lib.rest.CloudControllerClientImpl.getApplication(CloudControllerClientImpl.java:1075) at org.cloudfoundry.client.lib.CloudFoundryClient.getApplication(CloudFoundryClient.java:226) at com.hpe.cloudfoundryjenkins.CloudFoundryPushPublisher.processOneApp(CloudFoundryPushPublisher.java:287) at com.hpe.cloudfoundryjenkins.CloudFoundryPushPublisher.perform(CloudFoundryPushPublisher.java:188) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671) at hudson.model.Run.execute(Run.java:1766) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) Build step 'Push to Cloud Foundry' marked build as failure Finished: FAILURE

    Jenkins JIRA | 1 year ago | Gerard Krupa
    org.cloudfoundry.client.lib.org.springframework.web.client.HttpServerErrorException: 503 Service Unavailable
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.cloudfoundry.client.lib.org.springframework.web.client.HttpServerErrorException

      503 Service Unavailable

      at org.cloudfoundry.client.lib.rest.CloudControllerResponseErrorHandler.handleError()
    2. Cloud Foundry Java Client Library
      CloudControllerResponseErrorHandler.handleError
      1. org.cloudfoundry.client.lib.rest.CloudControllerResponseErrorHandler.handleError(CloudControllerResponseErrorHandler.java:26)
      1 frame
    3. org.cloudfoundry.client
      RestTemplate.doExecute
      1. org.cloudfoundry.client.lib.org.springframework.web.client.RestTemplate.handleResponseError(RestTemplate.java:589)
      2. org.cloudfoundry.client.lib.org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:547)
      2 frames
    4. Cloud Foundry Java Client Library
      LoggingRestTemplate.doExecute
      1. org.cloudfoundry.client.lib.rest.LoggingRestTemplate.doExecute(LoggingRestTemplate.java:54)
      1 frame
    5. org.cloudfoundry.client
      RestTemplate.getForObject
      1. org.cloudfoundry.client.lib.org.springframework.web.client.RestTemplate.execute(RestTemplate.java:503)
      2. org.cloudfoundry.client.lib.org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:240)
      2 frames
    6. Cloud Foundry Java Client Library
      CloudFoundryClient.<init>
      1. org.cloudfoundry.client.lib.rest.CloudControllerClientFactory.getInfoMap(CloudControllerClientFactory.java:101)
      2. org.cloudfoundry.client.lib.rest.CloudControllerClientFactory.createOauthClient(CloudControllerClientFactory.java:91)
      3. org.cloudfoundry.client.lib.rest.CloudControllerClientFactory.newCloudController(CloudControllerClientFactory.java:75)
      4. org.cloudfoundry.client.lib.CloudFoundryClient.<init>(CloudFoundryClient.java:164)
      4 frames
    7. com.hpe.cloudfoundryjenkins
      CloudFoundryPushPublisher.perform
      1. com.hpe.cloudfoundryjenkins.CloudFoundryPushPublisher.perform(CloudFoundryPushPublisher.java:131)
      1 frame
    8. Hudson
      AbstractBuild$AbstractBuildExecution.performAllBuildSteps
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
      3 frames
    9. Hudson Maven Embedder
      MavenModuleSetBuild$MavenModuleSetBuildExecution.post2
      1. hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1037)
      1 frame
    10. Hudson
      Run.execute
      1. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)
      2. hudson.model.Run.execute(Run.java:1763)
      2 frames
    11. Hudson Maven Embedder
      MavenModuleSetBuild.run
      1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
      1 frame
    12. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:98)
      2. hudson.model.Executor.run(Executor.java:410)
      2 frames