Unable to publish artifact with NoSuchFileException

Still need help?

The Atlassian Community is here for you.

Ask the community

Problem

Agent fail to publish artifact

The following appears in the atlassian-bamboo.log

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. 

    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.

Resolution

Delete the broken symlink.

Last modified on May 15, 2017

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.