Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-31158

Push to Pivotal Cloud Foundry fails with 503 on start

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • cloudfoundry-plugin
    • Ubuntu 15.10, Docker 1.8.3, Java 1.8.0 u66, Jenkins 1.625.1, CloudFoundry plugin version 1.5

      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

            williamg William Gautier
            gkrupa Gerard Krupa
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: