Unable to publish artifact with NoSuchFileException

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

Problem

Agent fail to publish artifact

The following appears in the atlassian-bamboo.log

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2017-05-05 12:29:37,698 WARN [26-BAM::Default agent::Agent:pool-41-thread-1] [AbstractArtifactManager] /usr/local/share/atlassian-bamboo-home/xml-data/build-dir/PROJ-PLAN-JOB1/test/path java.nio.file.NoSuchFileException: /usr/local/share/atlassian-bamboo-home/xml-data/build-dir/PROJ-PLAN-JOB1/test/path at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) at sun.nio.fs.UnixFileAttributeViews$Posix.readAttributes(UnixFileAttributeViews.java:218) at sun.nio.fs.UnixFileAttributeViews$Posix.readAttributes(UnixFileAttributeViews.java:131) at com.atlassian.bamboo.utils.BambooFileAttributes$ExecutablePermissionGetter.visitPosix(BambooFileAttributes.java:159) at com.atlassian.bamboo.utils.BambooFileAttributes$FileAttributeVisitor.accept(BambooFileAttributes.java:42) at com.atlassian.bamboo.utils.BambooFiles.isExecutable(BambooFiles.java:79) at com.atlassian.bamboo.build.artifact.FileTransferTask.execute(FileTransferTask.java:33) at com.atlassian.bamboo.build.artifact.ArtifactHandlingUtils.transferFileSet(ArtifactHandlingUtils.java:89) at com.atlassian.bamboo.build.artifact.ArtifactHandlingUtils.copyFileSet(ArtifactHandlingUtils.java:73) at com.atlassian.bamboo.build.artifact.AbstractLocalArtifactHandler.publish(AbstractLocalArtifactHandler.java:56) at com.atlassian.bamboo.build.artifact.ServerLocalArtifactHandler.publish(ServerLocalArtifactHandler.java:32) at com.atlassian.bamboo.build.artifact.handlers.ArtifactHandlerPackagingDecorator.publish(ArtifactHandlerPackagingDecorator.java:96) at com.atlassian.bamboo.build.artifact.AbstractArtifactManager$1.call(AbstractArtifactManager.java:230)

Diagnosis

Environment

  • Unix

Diagnostic Steps

  • Check if there is a broken symlink, e.g.

    1 ls -al /usr/local/share/atlassian-bamboo-home/xml-data/build-dir/PROJ-PLAN-JOB1/test/path

Cause

The broken symlink cause Bamboo unable to upload the directory as artifact.

Solution

Resolution

Delete the broken symlink.

Updated on April 2, 2025

Still need help?

The Atlassian Community is here for you.