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

Unable to publish artifact to Bamboo Cloud from remote agent: 403 error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 5.10.1
    • 5.10-OD-10
    • Agents
    • None

    Description

      Summary

      When trying to publish artifacts from a remote agent on Bamboo Cloud the Build log shows the message:

      Unable to publish artifact [Artifact-name]: Unable to publish artifact Shared artifact: [Artifact-name], pattern: [**/*] 
      

      The Remote Agent logs at atlassian-bamboo-agent.log log a 403 error.

      Environment

      • Bamboo Cloud
      • Remote Agents

      Steps to Reproduce

      1. Create a new remote agent and authorise it with your cloud instance
      2. Create a plan containing a script that touches a file
        # creates a new file
        touch executable.jar
        
        # list files
        ls -l
        
      3. Set up a new artifact definition
        Name: myArtifact
        Location:
        Copy pattern: executable.jar
        [x] Shared
        
      4. Run the build

      Expected Results

      Artifact is published

      Actual Results

      The below exception is thrown in the atlassian-bamboo-agent.log file:

      INFO   | jvm 1    | 2015/12/16 17:20:21 | 2015-12-16 17:20:21,317 INFO [2-BAM::1.1.1.1::Agent:pool-5-thread-1
      ] [AbstractArtifactManager] Publishing [myArtifact] for BBT-YEAP-JOB1-3: 1 file(s) matching [*] in directory /Users/username/bamboo
      -agent-home/xml-data/build-dir/BBT-YEAP-JOB1
      INFO   | jvm 1    | 2015/12/16 17:20:21 | 2015-12-16 17:20:21,318 INFO [2-BAM::1.1.1.1::Agent:pool-5-thread-1
      ] [AbstractArtifactManager] Trying to publish the artifact with handler: com.atlassian.bamboo.build.artifact.BambooRemoteArtifactH
      andler
      INFO   | jvm 1    | 2015/12/16 17:20:22 | 2015-12-16 17:20:22,266 INFO [2-BAM::1.1.1.1::Agent:pool-5-thread-1
      ] [BambooArtifactHttpTransport] Finished writing the artifact to the output stream.
      INFO   | jvm 1    | 2015/12/16 17:20:22 | 2015-12-16 17:20:22,433 ERROR [2-BAM::1.1.1.1::Agent:pool-5-thread-1] [BambooArtifactHttpTransport] Unexpected HTTP status code: HTTP/1.1 403 Forbidden
      INFO   | jvm 1    | 2015/12/16 17:20:22 | 2015-12-16 17:20:22,433 INFO [2-BAM::1.1.1.1::Agent:pool-5-thread-1] [AbstractArtifactManager] Handler com.atlassian.bamboo.build.artifact.BambooRemoteArtifactHandler did not publish the artifact
      

      Workaround

      Use Amazon S3 artifact storage until this bug is fixed

      Attachments

        Issue Links

          Activity

            People

              pbruski Przemek Bruski
              mhunter Matthew Hunter
              Votes:
              7 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: