[JIRA] (JENKINS-50569) AccessDeniedException when copying VCS dir
Title: Message Title Rafael Pestano resolved as Fixed Jenkins / JENKINS-50569 AccessDeniedException when copying VCS dir Change By: Rafael Pestano Status: Open Resolved Assignee: Rafael Pestano Resolution: Fixed Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-50569) AccessDeniedException when copying VCS dir
Title: Message Title SCM/JIRA link daemon commented on JENKINS-50569 Re: AccessDeniedException when copying VCS dir Code changed in jenkins User: rafael-pestano Path: src/main/java/com/github/jenkins/lastchanges/LastChangesBuildAction.java src/main/java/com/github/jenkins/lastchanges/LastChangesPublisher.java http://jenkins-ci.org/commit/last-changes-plugin/98787fdb1a775b1a81c8c0fff96c408d25e711d0 Log: refs #JENKINS-50569 Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-50569) AccessDeniedException when copying VCS dir
Title: Message Title Rafael Pestano commented on JENKINS-50569 Re: AccessDeniedException when copying VCS dir The issue happens when the plugin tries to copy vcsDir from slave to master workspace and the directory already exists. If the build runs on master the plugin can override vcsDir but when on slave it cannot. I've checked file permissions and they look ok. The solution is not to copy to master workspace if the directory already exists. This fix will come in *v2.6.2 * Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-50569) AccessDeniedException when copying VCS dir
Title: Message Title Rafael Pestano updated an issue Jenkins / JENKINS-50569 AccessDeniedException when copying VCS dir Change By: Rafael Pestano Some times LastChanges throws java.nio.file.AccessDeniedException at [this line|https://github.com/jenkinsci/last-changes-plugin/blob/2e0f1c1c58d7a1ccda8118f98d874951a4dab7f6/src/main/java/com/github/jenkins/lastchanges/LastChangesPublisher.java#L169]: bq. {code:java} vcsTargetDir = new FilePath(new File(workspaceTargetDir.getRemote() + "/.svn")); bq. vcsDirFound.copyRecursiveTo("**/*", vcsTargetDir); //here is where the exception is raised {code} It looks like it is related to slave, need to confirm that. Following is full stacktrace: bq. {noformat} java.nio.file.AccessDeniedException: /var/procergs/build-tools/jenkins/jobs/apm-pipeline/builds/34/.svn/all-wcprops bq. at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84) bq. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) bq. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) bq. at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214) bq. at java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:434) bq. at java.nio.file.Files.newOutputStream(Files.java:216) bq. at hudson.util.IOUtils.copy(IOUtils.java:39) bq. at hudson.FilePath.readFromTar(FilePath.java:2307) bq. Caused: java.io.IOException: Failed to extract /var/procergs/build-tools-2/workspace/apm-pipeline/.svn/**/* bq. at hudson.FilePath.readFromTar(FilePath.java:2317) bq. at hudson.FilePath.copyRecursiveTo(FilePath.java:2221) bq. at hudson.FilePath.copyRecursiveTo(FilePath.java:2124) bq. at hudson.FilePath.copyRecursiveTo(FilePath.java:2107) bq. at com.github.jenkins.lastchanges.LastChangesPublisher.perform(LastChangesPublisher.java:169) bq. at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80) bq. at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67) bq. at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:49) bq. at hudson.security.ACL.impersonate(ACL.java:260) bq. at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:46) bq. at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) bq. at java.util.concurrent.FutureTask.run(FutureTask.java:266) bq. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) bq. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) bq. at java.lang.Thread.run(Thread.java:748) {noformat} Environment:Jenkins 2.89.3 LastChanges 2.6.1
[JIRA] (JENKINS-50569) AccessDeniedException when copying VCS dir
Title: Message Title Rafael Pestano updated an issue Jenkins / JENKINS-50569 AccessDeniedException when copying VCS dir Change By: Rafael Pestano Some times LastChanges throws java.nio.file.AccessDeniedException at [this line|https://github.com/jenkinsci/last-changes-plugin/blob/2e0f1c1c58d7a1ccda8118f98d874951a4dab7f6/src/main/java/com/github/jenkins/lastchanges/LastChangesPublisher.java#L169]: bq. vcsTargetDir = new FilePath(new File(workspaceTargetDir.getRemote() + "/.svn"));bq. vcsDirFound.copyRecursiveTo("**/*", vcsTargetDir); //here is where the exception is raised It looks like it is related to slave, need to confirm that. Following is full stacktrace:bq. java.nio.file.AccessDeniedException: /var/procergs/build-tools/jenkins/jobs/apm-pipeline/builds/34/.svn/all-wcpropsbq. at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)bq. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)bq. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)bq. at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)bq. at java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:434)bq. at java.nio.file.Files.newOutputStream(Files.java:216)bq. at hudson.util.IOUtils.copy(IOUtils.java:39)bq. at hudson.FilePath.readFromTar(FilePath.java:2307)bq. Caused: java.io.IOException: Failed to extract /var/procergs/build-tools-2/workspace/apm-pipeline/.svn/**/*bq. at hudson.FilePath.readFromTar(FilePath.java:2317)bq. at hudson.FilePath.copyRecursiveTo(FilePath.java:2221)bq. at hudson.FilePath.copyRecursiveTo(FilePath.java:2124)bq. at hudson.FilePath.copyRecursiveTo(FilePath.java:2107)bq. at com.github.jenkins.lastchanges.LastChangesPublisher.perform(LastChangesPublisher.java:169)bq. at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)bq. at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)bq. at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:49)bq. at hudson.security.ACL.impersonate(ACL.java:260)bq. at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:46)bq. at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)bq. at java.util.concurrent.FutureTask.run(FutureTask.java:266)bq. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)bq. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)bq. at java.lang.Thread.run(Thread.java:748) Environment:Jenkins 2.89.3 LastChanges 2.6.1
[JIRA] (JENKINS-50569) AccessDeniedException when copying VCS dir
Title: Message Title Rafael Pestano updated an issue Jenkins / JENKINS-50569 AccessDeniedException when copying VCS dir Change By: Rafael Pestano Some times LastChanges throws java.nio.file.AccessDeniedException at [this line|https://github.com/jenkinsci/last-changes-plugin/blob/2e0f1c1c58d7a1ccda8118f98d874951a4dab7f6/src/main/java/com/github/jenkins/lastchanges/LastChangesPublisher.java#L169]: bq. vcsTargetDir = new FilePath(new File(workspaceTargetDir.getRemote() + "/.svn"));bq. vcsDirFound.copyRecursiveTo("**/*", vcsTargetDir); //here is where the exception is raised It looks like it is related to slave, need to confirm that. Following is full stacktrace:bq. java.nio.file.AccessDeniedException: /var/procergs/build-tools/jenkins/jobs/apm-pipeline/builds/34/.svn/all-wcpropsbq. at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)bq. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)bq. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)bq. at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)bq. at java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:434)bq. at java.nio.file.Files.newOutputStream(Files.java:216)bq. at hudson.util.IOUtils.copy(IOUtils.java:39)bq. at hudson.FilePath.readFromTar(FilePath.java:2307)bq. Caused: java.io.IOException: Failed to extract /var/procergs/build-tools-2/workspace/apm-pipeline/.svn/**/*bq. at hudson.FilePath.readFromTar(FilePath.java:2317)bq. at hudson.FilePath.copyRecursiveTo(FilePath.java:2221)bq. at hudson.FilePath.copyRecursiveTo(FilePath.java:2124)bq. at hudson.FilePath.copyRecursiveTo(FilePath.java:2107)bq. at com.github.jenkins.lastchanges.LastChangesPublisher.perform(LastChangesPublisher.java:169)bq. at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)bq. at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)bq. at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:49)bq. at hudson.security.ACL.impersonate(ACL.java:260)bq. at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:46)bq. at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)bq. at java.util.concurrent.FutureTask.run(FutureTask.java:266)bq. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)bq. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)bq. at java.lang.Thread.run(Thread.java:748) LastChanges 2.6.1
[JIRA] (JENKINS-50569) AccessDeniedException when copying VCS dir
Title: Message Title Rafael Pestano updated an issue Jenkins / JENKINS-50569 AccessDeniedException when copying VCS dir Change By: Rafael Pestano Some times LastChanges throws java.nio.file.AccessDeniedException at [this line|https://github.com/jenkinsci/last-changes-plugin/blob/2e0f1c1c58d7a1ccda8118f98d874951a4dab7f6/src/main/java/com/github/jenkins/lastchanges/LastChangesPublisher.java#L169]: {{ bq. vcsTargetDir = new FilePath(new File(workspaceTargetDir.getRemote() + "/.svn")); bq. vcsDirFound.copyRecursiveTo("**/*", vcsTargetDir); }} It looks like it is related to slave, need to confirm that. Following is full stacktrace:{{ java.nio.file.AccessDeniedException: /var/procergs/build-tools/jenkins/jobs/apm-pipeline/builds/34/.svn/all-wcprops 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 hudson.util.IOUtils.copy(IOUtils.java:39) at hudson.FilePath.readFromTar(FilePath.java:2307)Caused: java.io.IOException: Failed to extract /var/procergs/build-tools-2/workspace/apm-pipeline/.svn/**/* at hudson.FilePath.readFromTar(FilePath.java:2317) at hudson.FilePath.copyRecursiveTo(FilePath.java:2221) at hudson.FilePath.copyRecursiveTo(FilePath.java:2124) at hudson.FilePath.copyRecursiveTo(FilePath.java:2107) at com.github.jenkins.lastchanges.LastChangesPublisher.perform(LastChangesPublisher.java:169) at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80) at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67) at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:49) at hudson.security.ACL.impersonate(ACL.java:260) at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:46) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) }}
[JIRA] (JENKINS-50569) AccessDeniedException when copying VCS dir
Title: Message Title Rafael Pestano updated an issue Jenkins / JENKINS-50569 AccessDeniedException when copying VCS dir Change By: Rafael Pestano Some times LastChanges throws java.nio.file.AccessDeniedException at [this line|https://github.com/jenkinsci/last-changes-plugin/blob/2e0f1c1c58d7a1ccda8118f98d874951a4dab7f6/src/main/java/com/github/jenkins/lastchanges/LastChangesPublisher.java#L169]: bq. vcsTargetDir = new FilePath(new File(workspaceTargetDir.getRemote() + "/.svn"));bq. vcsDirFound.copyRecursiveTo("**/*", vcsTargetDir); It looks like it is related to slave, need to confirm that. Following is full stacktrace: {{ bq. java.nio.file.AccessDeniedException: /var/procergs/build-tools/jenkins/jobs/apm-pipeline/builds/34/.svn/all-wcprops bq. at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84) bq. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) bq. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) bq. at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214) bq. at java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:434) bq. at java.nio.file.Files.newOutputStream(Files.java:216) bq. at hudson.util.IOUtils.copy(IOUtils.java:39) bq. at hudson.FilePath.readFromTar(FilePath.java:2307) bq. Caused: java.io.IOException: Failed to extract /var/procergs/build-tools-2/workspace/apm-pipeline/.svn/**/* bq. at hudson.FilePath.readFromTar(FilePath.java:2317) bq. at hudson.FilePath.copyRecursiveTo(FilePath.java:2221) bq. at hudson.FilePath.copyRecursiveTo(FilePath.java:2124) bq. at hudson.FilePath.copyRecursiveTo(FilePath.java:2107) bq. at com.github.jenkins.lastchanges.LastChangesPublisher.perform(LastChangesPublisher.java:169) bq. at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80) bq. at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67) bq. at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:49) bq. at hudson.security.ACL.impersonate(ACL.java:260) bq. at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:46) bq. at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) bq. at java.util.concurrent.FutureTask.run(FutureTask.java:266) bq. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) bq. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) bq. at java.lang.Thread.run(Thread.java:748) }}
[JIRA] (JENKINS-50569) AccessDeniedException when copying VCS dir
Title: Message Title Rafael Pestano created an issue Jenkins / JENKINS-50569 AccessDeniedException when copying VCS dir Issue Type: Bug Assignee: Unassigned Components: last-changes-plugin Created: 2018-04-04 12:21 Priority: Minor Reporter: Rafael Pestano Some times LastChanges throws java.nio.file.AccessDeniedException at this line: {{ vcsTargetDir = new FilePath(new File(workspaceTargetDir.getRemote() + "/.svn")); vcsDirFound.copyRecursiveTo("*/", vcsTargetDir); }} It looks like it is related to slave, need to confirm that. Following is full stacktrace: {{java.nio.file.AccessDeniedException: /var/procergs/build-tools/jenkins/jobs/apm-pipeline/builds/34/.svn/all-wcprops 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 hudson.util.IOUtils.copy(IOUtils.java:39) at hudson.FilePath.readFromTar(FilePath.java:2307) Caused: java.io.IOException: Failed to extract /var/procergs/build-tools-2/workspace/apm-pipeline/.svn/*/ at hudson.FilePath.readFromTar(FilePath.java:2317) at hudson.FilePath.copyRecursiveTo(FilePath.java:2221) at hudson.FilePath.copyRecursiveTo(FilePath.java:2124) at hudson.FilePath.copyRecursiveTo(FilePath.java:2107) at com.github.jenkins.lastchanges.LastChangesPublisher.perform(LastChangesPublisher.java:169) at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80) at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67) at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:49) at hudson.security.ACL.impersonate(ACL.java:260) at org.jenkinsci.plugins.w