Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-14640

Artifact preparation failed due to agent being unauthorized

    XMLWordPrintable

Details

    Description

      The build failed because the agent couldn't download the artifact from the Bamboo server:

      2014-05-28 05:02:09,575 INFO [2-BAM::agent-18-11.buildeng.atlassian.com (2)::Agent:pool-6-thread-1] [PrepareBuildTask] Executing build JIRA JDK8 Plans - CI Functional Tests - Java 8 - Func 07 #131 (JJDK8-FUNCJ8-F07-131)
      2014-05-28 05:02:09,575 INFO [2-BAM::agent-18-11.buildeng.atlassian.com (2)::Agent:pool-6-thread-1] [PrepareBuildTask] Preparing artifact for use: hallelujah-dist
      2014-05-28 05:02:09,634 WARN [2-BAM::agent-18-11.buildeng.atlassian.com (2)::Agent:pool-6-thread-1] [HttpMethodDirector] Unable to respond to any of these challenges: {oauth=OAuth realm="https%3A%2F%2Fjira-bamboo.internal.atlassian.com"}
      2014-05-28 05:02:09,634 ERROR [2-BAM::agent-18-11.buildeng.atlassian.com (2)::Agent:pool-6-thread-1] [HttpMessageSender] Failed to send message.
      java.io.IOException: Unexpected HTTP status code: 401 Unauthorized
              at com.atlassian.bamboo.v2.build.agent.remote.sender.HttpMessageSender.send(HttpMessageSender.java:105)
              at com.atlassian.bamboo.build.artifact.BambooRemoteArtifactHandler.internalRetrieve(BambooRemoteArtifactHandler.java:74)
              at com.atlassian.bamboo.build.artifact.BambooRemoteArtifactHandler.retrieve(BambooRemoteArtifactHandler.java:53)
              at com.atlassian.bamboo.build.artifact.AbstractArtifactManager$3.call(AbstractArtifactManager.java:341)
              at com.atlassian.bamboo.build.artifact.AbstractArtifactManager$3.call(AbstractArtifactManager.java:335)
              at com.atlassian.bamboo.plugin.BambooPluginUtils.callUnsafeCode(BambooPluginUtils.java:86)
              at com.atlassian.bamboo.build.artifact.AbstractArtifactManager.retrieveArtifact(AbstractArtifactManager.java:334)
              at com.atlassian.bamboo.build.artifact.AbstractArtifactManager.retrieve(AbstractArtifactManager.java:294)
              at com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask.prepareArtifacts(PrepareBuildTask.java:150)
              at com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask.call(PrepareBuildTask.java:98)
              at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:183)
              at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:111)
              at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:110)
              at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49)
              at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
              at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
              at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
              at java.lang.Thread.run(Thread.java:662)
      2014-05-28 05:02:09,635 ERROR [2-BAM::agent-18-11.buildeng.atlassian.com (2)::Agent:pool-6-thread-1] [BambooPluginUtils] Unable to retrieve artifact hallelujah-dist for JJDK8-FUNCJ8-F07-131 via com.atlassian.bamboo.build.artifact.BambooRemoteArtifactHandler@4fb22e7b
      java.lang.RuntimeException: java.io.IOException: Unexpected HTTP status code: 401 Unauthorized
              at com.atlassian.bamboo.v2.build.agent.remote.sender.HttpMessageSender.send(HttpMessageSender.java:111)
              at com.atlassian.bamboo.build.artifact.BambooRemoteArtifactHandler.internalRetrieve(BambooRemoteArtifactHandler.java:74)
              at com.atlassian.bamboo.build.artifact.BambooRemoteArtifactHandler.retrieve(BambooRemoteArtifactHandler.java:53)
              at com.atlassian.bamboo.build.artifact.AbstractArtifactManager$3.call(AbstractArtifactManager.java:341)
              at com.atlassian.bamboo.build.artifact.AbstractArtifactManager$3.call(AbstractArtifactManager.java:335)
              at com.atlassian.bamboo.plugin.BambooPluginUtils.callUnsafeCode(BambooPluginUtils.java:86)
              at com.atlassian.bamboo.build.artifact.AbstractArtifactManager.retrieveArtifact(AbstractArtifactManager.java:334)
              at com.atlassian.bamboo.build.artifact.AbstractArtifactManager.retrieve(AbstractArtifactManager.java:294)
              at com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask.prepareArtifacts(PrepareBuildTask.java:150)
              at com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask.call(PrepareBuildTask.java:98)
              at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:183)
              at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:111)
              at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:110)
              at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49)
              at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
              at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
              at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
              at java.lang.Thread.run(Thread.java:662)
      Caused by: java.io.IOException: Unexpected HTTP status code: 401 Unauthorized
              at com.atlassian.bamboo.v2.build.agent.remote.sender.HttpMessageSender.send(HttpMessageSender.java:105)
              ... 17 more
      2014-05-28 05:02:09,635 WARN [2-BAM::agent-18-11.buildeng.atlassian.com (2)::Agent:pool-6-thread-1] [PrepareBuildTask] Failure in artifact preparation phase during processing of: Subscription for Shared artifact: [hallelujah-dist], pattern: [jira-*-dist.zip] anchored at: [jira-distribution/jira-func-tests-runner/target], destination: []
      

      build log:

      28-May-2014 05:02:09 	Build JIRA JDK8 Plans - CI Functional Tests - Java 8 - Func 07 #131 (JJDK8-FUNCJ8-F07-131) started building on agent agent-18-11.buildeng.atlassian.com (2)
      28-May-2014 05:02:09 	Build working directory is /opt/bamboo-agent/xml-data/build-dir/JJDK8-FUNCJ8-F07
      28-May-2014 05:02:09 	Executing build JIRA JDK8 Plans - CI Functional Tests - Java 8 - Func 07 #131 (JJDK8-FUNCJ8-F07-131)
      28-May-2014 05:02:09 	Preparing artifact for use: hallelujah-dist
      28-May-2014 05:02:09 	Failure in artifact preparation phase during processing of: Subscription for Shared artifact: [hallelujah-dist], pattern: [jira-*-dist.zip] anchored at: [jira-distribution/jira-func-tests-runner/target], destination: []
      28-May-2014 05:02:09 	1 error(s) found when performing pre-build actions.
      28-May-2014 05:02:32 	Running on server: post build plugin 'Clover Delta Calculator'
      28-May-2014 05:02:33 	Running on server: post build plugin 'Build Hanging Detection Configuration'
      28-May-2014 05:02:33 	Running on server: post build plugin 'NCover Results Collector'
      28-May-2014 05:02:33 	Running on server: post build plugin 'Maven Dependencies Postprocessor'
      28-May-2014 05:02:33 	All post build plugins have finished
      28-May-2014 05:02:33 	Generating build results summary...
      28-May-2014 05:02:33 	Saving build results to disk...
      28-May-2014 05:02:33 	Indexing build results...
      28-May-2014 05:02:33 	Finished building JJDK8-FUNCJ8-F07-131.
      

      server log

      2014-05-28 04:59:26,409 ERROR [http-bio-8085-exec-190] [DeliverMessageServlet] Cannot process message: invalid authentication token for JJDK8-FUNCJ8-131
      2014-05-28 04:59:26,426 ERROR [http-bio-8085-exec-126] [DeliverMessageServlet] Cannot process message: invalid authentication token for JJDK8-FUNCJ8-131
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mmeinhold Martin Meinhold
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: