Uploaded image for project: 'Bamboo Artifactory Plug-in'
  1. Bamboo Artifactory Plug-in
  2. BAP-291

unable to find valid certification path to requested target

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 1.8.1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      redhat 6.5

      Description

      bamboo artifactory plugin 1.8.1, Bamboo 5.9.3 and Artifactory 3.9.2
      When running either Artifactory maven 3 or Artifactory generic deploy tasks.

      Starting task 'Artifactory Generic Deploy' of type 'org.jfrog.bamboo.bamboo-artifactory-plugin:artifactoryGenericTask'
      error 21-Aug-2015 11:46:10 Exception occurred while executing task
      error 21-Aug-2015 11:46:10 java.lang.RuntimeException: Failed while invoking URL https://<server>:8443/plugins/servlet/artifactoryAdminConfigServlet?planKey=NA-P2AC-JOB1 to get Bamboo variables. sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
      error 21-Aug-2015 11:46:10 at org.jfrog.bamboo.configuration.ConfigurationHelper.getAllVariables(ConfigurationHelper.java:75)
      error 21-Aug-2015 11:46:10 at org.jfrog.bamboo.builder.BaseBuildInfoHelper.filterAndGetGlobalVariables(BaseBuildInfoHelper.java:119)
      error 21-Aug-2015 11:46:10 at org.jfrog.bamboo.util.generic.GenericBuildInfoHelper.extractBuildInfo(GenericBuildInfoHelper.java:89)
      error 21-Aug-2015 11:46:10 at org.jfrog.bamboo.task.ArtifactoryGenericDeployTask.deploy(ArtifactoryGenericDeployTask.java:160)
      error 21-Aug-2015 11:46:10 at org.jfrog.bamboo.task.ArtifactoryGenericDeployTask.execute(ArtifactoryGenericDeployTask.java:90)
      error 21-Aug-2015 11:46:10 at com.atlassian.bamboo.task.TaskExecutorImpl$2.call(TaskExecutorImpl.java:278)
      error 21-Aug-2015 11:46:10 at com.atlassian.bamboo.task.TaskExecutorImpl$2.call(TaskExecutorImpl.java:274)
      error 21-Aug-2015 11:46:10 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:200)
      error 21-Aug-2015 11:46:10 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:274)
      error 21-Aug-2015 11:46:10 at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:110)
      error 21-Aug-2015 11:46:10 at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:75)
      error 21-Aug-2015 11:46:10 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:196)
      error 21-Aug-2015 11:46:10 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:124)
      error 21-Aug-2015 11:46:10 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:115)
      error 21-Aug-2015 11:46:10 at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:215)
      error 21-Aug-2015 11:46:10 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:114)
      error 21-Aug-2015 11:46:10 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:118)
      error 21-Aug-2015 11:46:10 at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49)
      error 21-Aug-2015 11:46:10 at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
      error 21-Aug-2015 11:46:10 at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
      error 21-Aug-2015 11:46:10 at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
      error 21-Aug-2015 11:46:10 at java.lang.Thread.run(Thread.java:745)
      error 21-Aug-2015 11:46:10 Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
      error 21-Aug-2015 11:46:10 at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
      error 21-Aug-2015 11:46:10 at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1937)
      error 21-Aug-2015 11:46:10 at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)
      error 21-Aug-2015 11:46:10 at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
      error 21-Aug-2015 11:46:10 at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1478)
      error 21-Aug-2015 11:46:10 at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:212)
      error 21-Aug-2015 11:46:10 at sun.security.ssl.Handshaker.processLoop(Handshaker.java:957)
      error 21-Aug-2015 11:46:10 at sun.security.ssl.Handshaker.process_record(Handshaker.java:892)
      error 21-Aug-2015 11:46:10 at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1050)
      error 21-Aug-2015 11:46:10 at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1363)
      error 21-Aug-2015 11:46:10 at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:735)
      error 21-Aug-2015 11:46:10 at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:123)
      error 21-Aug-2015 11:46:10 at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
      error 21-Aug-2015 11:46:10 at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
      error 21-Aug-2015 11:46:10 at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:827)
      error 21-Aug-2015 11:46:10 at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1975)
      error 21-Aug-2015 11:46:10 at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993)
      error 21-Aug-2015 11:46:10 at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
      error 21-Aug-2015 11:46:10 at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
      error 21-Aug-2015 11:46:10 at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
      error 21-Aug-2015 11:46:10 at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
      error 21-Aug-2015 11:46:10 at org.jfrog.bamboo.configuration.ConfigurationHelper.executeMethod(ConfigurationHelper.java:110)
      error 21-Aug-2015 11:46:10 at org.jfrog.bamboo.configuration.ConfigurationHelper.getAllVariables(ConfigurationHelper.java:60)
      error 21-Aug-2015 11:46:10 ... 21 more
      error 21-Aug-2015 11:46:10 Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
      error 21-Aug-2015 11:46:10 at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:387)
      error 21-Aug-2015 11:46:10 at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292)
      error 21-Aug-2015 11:46:10 at sun.security.validator.Validator.validate(Validator.java:260)
      error 21-Aug-2015 11:46:10 at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)
      error 21-Aug-2015 11:46:10 at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229)
      error 21-Aug-2015 11:46:10 at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124)
      error 21-Aug-2015 11:46:10 at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1460)
      error 21-Aug-2015 11:46:10 ... 39 more
      error 21-Aug-2015 11:46:10 Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
      error 21-Aug-2015 11:46:10 at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:145)
      error 21-Aug-2015 11:46:10 at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:131)
      error 21-Aug-2015 11:46:10 at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
      error 21-Aug-2015 11:46:10 at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382)
      error 21-Aug-2015 11:46:10 ... 45 more
      simple 21-Aug-2015 11:46:10 Finished task 'Artifactory Generic Deploy' with result: Error

      simple 21-Aug-2015 10:41:00 Starting task 'Artifactory Maven 3' of type 'org.jfrog.bamboo.bamboo-artifactory-plugin:maven3Task'
      error 21-Aug-2015 10:41:00 Error occurred while preparing Artifactory Maven Runner dependencies. Build Info support is disabled: Failed while invoking URL: https://<server>:8443/download/resources/org.jfrog.bamboo.bamboo-artifactory-plugin/builder/dependencies/build-info-extractor-maven3-2.5.0-uber.jar sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
      error 21-Aug-2015 10:41:00 Error occurred while running Task '(2)' of type org.jfrog.bamboo.bamboo-artifactory-plugin:maven3Task.
      error 21-Aug-2015 10:41:00 java.lang.RuntimeException: Failed while invoking URL https://<server>:8443/plugins/servlet/artifactoryAdminConfigServlet?planKey=NA-P2AC-JOB1 to get Bamboo variables. sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
      error 21-Aug-2015 10:41:00 at org.jfrog.bamboo.configuration.ConfigurationHelper.getAllVariables(ConfigurationHelper.java:75)
      error 21-Aug-2015 10:41:00 at org.jfrog.bamboo.configuration.ConfigurationHelper.getBuildJdkOverride(ConfigurationHelper.java:43)
      error 21-Aug-2015 10:41:00 at org.jfrog.bamboo.task.ArtifactoryTaskType.getConfiguredJdkPath(ArtifactoryTaskType.java:85)
      error 21-Aug-2015 10:41:00 at org.jfrog.bamboo.task.ArtifactoryMaven3Task.getExecutable(ArtifactoryMaven3Task.java:147)
      error 21-Aug-2015 10:41:00 at org.jfrog.bamboo.task.ArtifactoryMaven3Task.getCommand(ArtifactoryMaven3Task.java:185)
      error 21-Aug-2015 10:41:00 at org.jfrog.bamboo.task.ArtifactoryMaven3Task.execute(ArtifactoryMaven3Task.java:104)
      error 21-Aug-2015 10:41:00 at com.atlassian.bamboo.task.TaskExecutorImpl$2.call(TaskExecutorImpl.java:278)
      error 21-Aug-2015 10:41:00 at com.atlassian.bamboo.task.TaskExecutorImpl$2.call(TaskExecutorImpl.java:274)
      error 21-Aug-2015 10:41:00 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:200)
      error 21-Aug-2015 10:41:00 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:274)
      error 21-Aug-2015 10:41:00 at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:106)
      error 21-Aug-2015 10:41:00 at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:75)
      error 21-Aug-2015 10:41:00 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:196)
      error 21-Aug-2015 10:41:00 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:124)
      error 21-Aug-2015 10:41:00 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:115)
      error 21-Aug-2015 10:41:00 at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:215)
      error 21-Aug-2015 10:41:00 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:114)
      error 21-Aug-2015 10:41:00 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:118)
      error 21-Aug-2015 10:41:00 at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49)
      error 21-Aug-2015 10:41:00 at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
      error 21-Aug-2015 10:41:00 at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
      error 21-Aug-2015 10:41:00 at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
      error 21-Aug-2015 10:41:00 at java.lang.Thread.run(Thread.java:745)
      error 21-Aug-2015 10:41:00 Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
      error 21-Aug-2015 10:41:00 at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
      error 21-Aug-2015 10:41:00 at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1937)
      error 21-Aug-2015 10:41:00 at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)
      error 21-Aug-2015 10:41:00 at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
      error 21-Aug-2015 10:41:00 at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1478)
      error 21-Aug-2015 10:41:00 at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:212)
      error 21-Aug-2015 10:41:00 at sun.security.ssl.Handshaker.processLoop(Handshaker.java:957)
      error 21-Aug-2015 10:41:00 at sun.security.ssl.Handshaker.process_record(Handshaker.java:892)
      error 21-Aug-2015 10:41:00 at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1050)
      error 21-Aug-2015 10:41:00 at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1363)
      error 21-Aug-2015 10:41:00 at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:735)
      error 21-Aug-2015 10:41:00 at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:123)
      error 21-Aug-2015 10:41:00 at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
      error 21-Aug-2015 10:41:00 at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
      error 21-Aug-2015 10:41:00 at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:827)
      error 21-Aug-2015 10:41:00 at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1975)
      error 21-Aug-2015 10:41:00 at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993)
      error 21-Aug-2015 10:41:00 at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
      error 21-Aug-2015 10:41:00 at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
      error 21-Aug-2015 10:41:00 at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
      error 21-Aug-2015 10:41:00 at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
      error 21-Aug-2015 10:41:00 at org.jfrog.bamboo.configuration.ConfigurationHelper.executeMethod(ConfigurationHelper.java:110)
      error 21-Aug-2015 10:41:00 at org.jfrog.bamboo.configuration.ConfigurationHelper.getAllVariables(ConfigurationHelper.java:60)
      error 21-Aug-2015 10:41:00 ... 22 more
      error 21-Aug-2015 10:41:00 Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
      error 21-Aug-2015 10:41:00 at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:387)
      error 21-Aug-2015 10:41:00 at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292)
      error 21-Aug-2015 10:41:00 at sun.security.validator.Validator.validate(Validator.java:260)
      error 21-Aug-2015 10:41:00 at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)
      error 21-Aug-2015 10:41:00 at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229)
      error 21-Aug-2015 10:41:00 at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124)
      error 21-Aug-2015 10:41:00 at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1460)
      error 21-Aug-2015 10:41:00 ... 40 more
      error 21-Aug-2015 10:41:00 Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
      error 21-Aug-2015 10:41:00 at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:145)
      error 21-Aug-2015 10:41:00 at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:131)
      error 21-Aug-2015 10:41:00 at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
      error 21-Aug-2015 10:41:00 at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382)
      error 21-Aug-2015 10:41:00 ... 46 more
      simple 21-Aug-2015 10:41:00 Running post build plugin 'Artifactory Release Management Staging'

        Attachments

          Activity

            People

            • Assignee:
              eyalbe Eyal Ben Moshe (Inactive)
              Reporter:
              dpilat Derek Pilat
            • Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: