hudson.util.IOException2: Failed to create a temp file on c:\hudson\workspace\testw32\label/win2k3

Jenkins JIRA | gbr4 | 8 years ago
  1. 0

    Building matrix projects on windows targets with execute shell fails. It appears that the temporary file path inserts a / in the final directory name: c:\hudson\workspace\testw32\label/win2k3 This also seems to fail in the same place with a windows batch file. stack trace below: Thanks --Greg Roth Cornell University started Building remotely on win2k3bs FATAL: Unable to produce a script file hudson.util.IOException2: Failed to create a temp file on c:\hudson\workspace\testw32\label/win2k3 at hudson.FilePath.createTextTempFile(FilePath.java:573) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:43) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:34) at hudson.model.Build$RunnerImpl.build(Build.java:138) at hudson.model.Build$RunnerImpl.doRun(Build.java:113) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:241) at hudson.model.Run.run(Run.java:817) at hudson.model.Build.run(Build.java:88) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:88) Caused by: hudson.util.IOException2: remote file operation failed at hudson.FilePath.act(FilePath.java:384) at hudson.FilePath.createTextTempFile(FilePath.java:551) ... 9 more Caused by: hudson.util.IOException2: Failed to create a temporary directory in null at hudson.FilePath$9.invoke(FilePath.java:562) at hudson.FilePath$9.invoke(FilePath.java:551) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1201) at hudson.remoting.UserRequest.perform(UserRequest.java:69) at hudson.remoting.UserRequest.perform(UserRequest.java:23) at hudson.remoting.Request$2.run(Request.java:200) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.io.IOException: Access is denied at java.io.WinNTFileSystem.createFileExclusively(Native Method) at java.io.File.checkAndCreate(Unknown Source) at java.io.File.createTempFile(Unknown Source) at hudson.FilePath$9.invoke(FilePath.java:560) ... 11 more finished: FAILURE

    Jenkins JIRA | 8 years ago | gbr4
    hudson.util.IOException2: Failed to create a temp file on c:\hudson\workspace\testw32\label/win2k3
  2. 0

    Building matrix projects on windows targets with execute shell fails. It appears that the temporary file path inserts a / in the final directory name: c:\hudson\workspace\testw32\label/win2k3 This also seems to fail in the same place with a windows batch file. stack trace below: Thanks --Greg Roth Cornell University started Building remotely on win2k3bs FATAL: Unable to produce a script file hudson.util.IOException2: Failed to create a temp file on c:\hudson\workspace\testw32\label/win2k3 at hudson.FilePath.createTextTempFile(FilePath.java:573) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:43) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:34) at hudson.model.Build$RunnerImpl.build(Build.java:138) at hudson.model.Build$RunnerImpl.doRun(Build.java:113) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:241) at hudson.model.Run.run(Run.java:817) at hudson.model.Build.run(Build.java:88) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:88) Caused by: hudson.util.IOException2: remote file operation failed at hudson.FilePath.act(FilePath.java:384) at hudson.FilePath.createTextTempFile(FilePath.java:551) ... 9 more Caused by: hudson.util.IOException2: Failed to create a temporary directory in null at hudson.FilePath$9.invoke(FilePath.java:562) at hudson.FilePath$9.invoke(FilePath.java:551) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1201) at hudson.remoting.UserRequest.perform(UserRequest.java:69) at hudson.remoting.UserRequest.perform(UserRequest.java:23) at hudson.remoting.Request$2.run(Request.java:200) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.io.IOException: Access is denied at java.io.WinNTFileSystem.createFileExclusively(Native Method) at java.io.File.checkAndCreate(Unknown Source) at java.io.File.createTempFile(Unknown Source) at hudson.FilePath$9.invoke(FilePath.java:560) ... 11 more finished: FAILURE

    Jenkins JIRA | 8 years ago | gbr4
    hudson.util.IOException2: Failed to create a temp file on c:\hudson\workspace\testw32\label/win2k3
  3. 0

    java.io.WinNTFileSystem.createFileExclusively error

    Stack Overflow | 3 years ago | user3477268
    java.io.IOException: Access is denied
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    gcloud preview app run "bad port Access Denied" error on Windows

    Stack Overflow | 2 years ago | yaraju
    java.io.IOException: Access is denied
  6. 0

    Problems with command dispatch to Windows Node

    Google Groups | 7 years ago | Serban Alexe
    java.io.IOException: Access is denied

  1. davidvanlaatum 2 times, last 6 days ago
  2. Vladimir Dmie 1 times, last 4 months ago
  3. davidvanlaatum 5 times, last 6 months ago
21 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.IOException

    Access is denied

    at java.io.WinNTFileSystem.createFileExclusively()
  2. Java RT
    File.createTempFile
    1. java.io.WinNTFileSystem.createFileExclusively(Native Method)
    2. java.io.File.checkAndCreate(Unknown Source)
    3. java.io.File.createTempFile(Unknown Source)
    3 frames
  3. Hudson
    FilePath$FileCallableWrapper.call
    1. hudson.FilePath$9.invoke(FilePath.java:560)
    2. hudson.FilePath$9.invoke(FilePath.java:551)
    3. hudson.FilePath$FileCallableWrapper.call(FilePath.java:1201)
    3 frames
  4. Hudson :: Remoting Layer
    Request$2.run
    1. hudson.remoting.UserRequest.perform(UserRequest.java:69)
    2. hudson.remoting.UserRequest.perform(UserRequest.java:23)
    3. hudson.remoting.Request$2.run(Request.java:200)
    3 frames
  5. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    2. java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    3. java.util.concurrent.FutureTask.run(Unknown Source)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    5. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    6. java.lang.Thread.run(Unknown Source)
    6 frames