java.nio.file.AccessDeniedException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • *Summary* Download task failed to get resolved properly against working directory when it is configured with "/" in the field. In deployment log: {noformat} Unable to download artifact Shared artifact: [<etc>], pattern: [<etc>] anchored at: [/dir/] {noformat} In agent's log: {noformat} 2016-05-18 08:51:10,679 ERROR [0-BAM::Elastic Agent on i-4d95a7ca::Agent:pool-3-thread-1] [BambooArtifactHttpTransport] java.nio.file.AccessDeniedException: /release.tgz at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214) at java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:434) at java.nio.file.Files.newOutputStream(Files.java:216) at com.atlassian.bamboo.utils.BambooPathUtils.openOutputStreamInternal(BambooPathUtils.java:287) at com.atlassian.bamboo.utils.BambooPathUtils.openOutputStream(BambooPathUtils.java:279) at com.atlassian.bamboo.utils.BambooPathUtils.openOutputStream(BambooPathUtils.java:240) at com.atlassian.bamboo.v2.build.agent.messages.ArtifactStreams.deserialiseStreamToDir(ArtifactStreams.java:94) at com.atlassian.bamboo.build.artifact.BambooArtifactHttpTransport.retrieve(BambooArtifactHttpTransport.java:224) at com.atlassian.bamboo.build.artifact.BambooRemoteArtifactHandler$1.call(BambooRemoteArtifactHandler.java:77) {noformat}
    via by Muhammad Fahd [Atlassian],
  • *Summary* Download task failed to get resolved properly against working directory when it is configured with "/" in the field. In deployment log: {noformat} Unable to download artifact Shared artifact: [<etc>], pattern: [<etc>] anchored at: [/dir/] {noformat} In agent's log: {noformat} 2016-05-18 08:51:10,679 ERROR [0-BAM::Elastic Agent on i-4d95a7ca::Agent:pool-3-thread-1] [BambooArtifactHttpTransport] java.nio.file.AccessDeniedException: /release.tgz at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214) at java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:434) at java.nio.file.Files.newOutputStream(Files.java:216) at com.atlassian.bamboo.utils.BambooPathUtils.openOutputStreamInternal(BambooPathUtils.java:287) at com.atlassian.bamboo.utils.BambooPathUtils.openOutputStream(BambooPathUtils.java:279) at com.atlassian.bamboo.utils.BambooPathUtils.openOutputStream(BambooPathUtils.java:240) at com.atlassian.bamboo.v2.build.agent.messages.ArtifactStreams.deserialiseStreamToDir(ArtifactStreams.java:94) at com.atlassian.bamboo.build.artifact.BambooArtifactHttpTransport.retrieve(BambooArtifactHttpTransport.java:224) at com.atlassian.bamboo.build.artifact.BambooRemoteArtifactHandler$1.call(BambooRemoteArtifactHandler.java:77) {noformat}
    via by Muhammad Fahd [Atlassian],
  • GitHub comment 3#262789078
    via GitHub by ChrisLMerrill
    ,
  • Nexus Sonatype error
    via Stack Overflow by Kaushambi Suyal
    ,
    • java.nio.file.AccessDeniedException: /release.tgz at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214) at java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:434) at java.nio.file.Files.newOutputStream(Files.java:216) at com.atlassian.bamboo.utils.BambooPathUtils.openOutputStreamInternal(BambooPathUtils.java:287) at com.atlassian.bamboo.utils.BambooPathUtils.openOutputStream(BambooPathUtils.java:279) at com.atlassian.bamboo.utils.BambooPathUtils.openOutputStream(BambooPathUtils.java:240) at com.atlassian.bamboo.v2.build.agent.messages.ArtifactStreams.deserialiseStreamToDir(ArtifactStreams.java:94) at com.atlassian.bamboo.build.artifact.BambooArtifactHttpTransport.retrieve(BambooArtifactHttpTransport.java:224) at com.atlassian.bamboo.build.artifact.BambooRemoteArtifactHandler$1.call(BambooRemoteArtifactHandler.java:77)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    MoYapro
    4 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    13 more bugmates