-
Bug
-
Resolution: Unresolved
-
Minor
-
None
I have a Jenkins agent, Windows 2016 Server deployed using ec2-plugin. The issue I'm having is during the build job, I get an access denied error when it tries to copy a file to a DFS share. The strange part is this behavior doesn't happen when I use a different Jenkins agent, using same AMI but deployed using the slave-agent.JNLP. It's the same build job but on different nodes.
[ERROR] java.io.FileNotFoundException: <DFS share> (Access is denied)
12:57:14 at java.io.FileOutputStream.open0(Native Method)
12:57:14 at java.io.FileOutputStream.open(FileOutputStream.java:270)
12:57:14 at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
12:57:14 at com.google.common.io.Files$FileByteSink.openStream(Files.java:192)
12:57:14 at com.google.common.io.Files$FileByteSink.openStream(Files.java:180)
12:57:14 at com.google.common.io.ByteSource.copyTo(ByteSource.java:268)
12:57:14 at com.google.common.io.Files.copy(Files.java:319)
12:57:14 at common.sd.steps.SharedDriveSteps.copyFileToSharedFolder(SharedDriveSteps.java:69)12:57:14 at common.sd.steps.SharedDriveSteps.setupFileForRT(SharedDriveSteps.java:84)
12:57:14 at crm.steps.api.APIFlow.generateReportTransmission(APIFlow.java:712)
12:57:14 at crm.steps.api.APIFlow.generateReportTransmission(APIFlow.java:697)
12:57:14 at crm.test.ui.clinical.distribution_item.GenerateListForPathLabs.dlGeneratedForPathlabAndFaxEmailActivitiesSent(GenerateListForPathLabs.java:205)
12:57:14 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12:57:14 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
12:57:14 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
12:57:14 at java.lang.reflect.Method.invoke(Method.java:498)
12:57:14 at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
12:57:14 at org.testng.internal.Invoker.invokeMethod(Invoker.java:583)
12:57:14 at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:719)
12:57:14 at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:989)
12:57:14 at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
12:57:14 at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
12:57:14 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
12:57:14 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
12:57:14 at java.lang.Thread.run(Thread.java:748)
[JENKINS-63514] [ERROR] java.io.FileNotFoundException: <DFS File Path> (Access is denied)
Description |
Original:
I have a Jenkins agent, Windows 2016 Server deployed using ec2-plugin. The issue I'm having is during the build job, I get an access denied error when it tries to copy a file to a DFS share. The strange part is this behavior doesn't happen when I use a different Jenkins agent, using same AMI but deployed using the slave-agent.JNLP. It's the same build job but on different nodes. [ERROR] java.io.FileNotFoundException: <DFS share> (Access is denied)*12:57:14* at java.io.FileOutputStream.open0(Native Method)*12:57:14* at java.io.FileOutputStream.open(FileOutputStream.java:270)*12:57:14* at java.io.FileOutputStream.<init>(FileOutputStream.java:213)*12:57:14* at com.google.common.io.Files$FileByteSink.openStream(Files.java:192)*12:57:14* at com.google.common.io.Files$FileByteSink.openStream(Files.java:180)*12:57:14* at com.google.common.io.ByteSource.copyTo(ByteSource.java:268)*12:57:14* at com.google.common.io.Files.copy(Files.java:319)*12:57:14* at common.sd.steps.SharedDriveSteps.copyFileToSharedFolder(SharedDriveSteps.java:69)*12:57:14* at common.sd.steps.SharedDriveSteps.setupFileForRT(SharedDriveSteps.java:84)*12:57:14* at crm.steps.api.APIFlow.generateReportTransmission(APIFlow.java:712)*12:57:14* at crm.steps.api.APIFlow.generateReportTransmission(APIFlow.java:697)*12:57:14* at crm.test.ui.clinical.distribution_item.GenerateListForPathLabs.dlGeneratedForPathlabAndFaxEmailActivitiesSent(GenerateListForPathLabs.java:205)*12:57:14* at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)*12:57:14* at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)*12:57:14* at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)*12:57:14* at java.lang.reflect.Method.invoke(Method.java:498)*12:57:14* at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)*12:57:14* at org.testng.internal.Invoker.invokeMethod(Invoker.java:583)*12:57:14* at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:719)*12:57:14* at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:989)*12:57:14* at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)*12:57:14* at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)*12:57:14* at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)*12:57:14* at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)*12:57:14* at java.lang.Thread.run(Thread.java:748) |
New:
I have a Jenkins agent, Windows 2016 Server deployed using ec2-plugin. The issue I'm having is during the build job, I get an access denied error when it tries to copy a file to a DFS share. The strange part is this behavior doesn't happen when I use a different Jenkins agent, using same AMI but deployed using the slave-agent.JNLP. It's the same build job but on different nodes. [ERROR] java.io.FileNotFoundException: <DFS share> (Access is denied) *12:57:14* at java.io.FileOutputStream.open0(Native Method) *12:57:14* at java.io.FileOutputStream.open(FileOutputStream.java:270) *12:57:14* at java.io.FileOutputStream.<init>(FileOutputStream.java:213) *12:57:14* at com.google.common.io.Files$FileByteSink.openStream(Files.java:192) *12:57:14* at com.google.common.io.Files$FileByteSink.openStream(Files.java:180) *12:57:14* at com.google.common.io.ByteSource.copyTo(ByteSource.java:268) *12:57:14* at com.google.common.io.Files.copy(Files.java:319) *12:57:14* at common.sd.steps.SharedDriveSteps.copyFileToSharedFolder(SharedDriveSteps.java:69)*12:57:14* at common.sd.steps.SharedDriveSteps.setupFileForRT(SharedDriveSteps.java:84) *12:57:14* at crm.steps.api.APIFlow.generateReportTransmission(APIFlow.java:712) *12:57:14* at crm.steps.api.APIFlow.generateReportTransmission(APIFlow.java:697) *12:57:14* at crm.test.ui.clinical.distribution_item.GenerateListForPathLabs.dlGeneratedForPathlabAndFaxEmailActivitiesSent(GenerateListForPathLabs.java:205) *12:57:14* at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) *12:57:14* at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) *12:57:14* at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) *12:57:14* at java.lang.reflect.Method.invoke(Method.java:498) *12:57:14* at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124) *12:57:14* at org.testng.internal.Invoker.invokeMethod(Invoker.java:583) *12:57:14* at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:719) *12:57:14* at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:989) *12:57:14* at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125) *12:57:14* at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109) *12:57:14* at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) *12:57:14* at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) *12:57:14* at java.lang.Thread.run(Thread.java:748) |