Remote runs: failing with IOException applying patch
Hi,
Environment: IntelliJ IDEA 6.0.4 on Windows XP; TeamCity 4037 on Windows Vista
All remote runs issued from IntelliJ are failing in my environment, but builds triggered by VCS changes or manually are succeeding. I am presented with the following error message: "Error while applying patch: The system cannot find the path specified". I've included a relevant snippet from my agent's log file at the end of this message.
I've only just configured this installation, so it's probably some environment variable / permission problem, but sadly, the error message doesn't include any information about what file TeamCity was trying to create. Any suggestions?
Also, I was surprised to see that if the first run failed, the dependent build configurations still were triggered. I expected that a dependent configuration would only be triggered if the configurations that it depended on all passed. Is this expected?
Thanks,
-Patrick
INFO - jetbrains.buildServer.AGENT - Sources loaded for 1 seconds
INFO - jetbrains.buildServer.AGENT - Found runner Maven2 for
INFO - jetbrains.buildServer.AGENT - Getting sources...
INFO - jetbrains.buildServer.AGENT - Requesting patch from server, cleanPatch=false
INFO - jetbrains.buildServer.AGENT - Copying patch to temp file...
INFO - jetbrains.buildServer.AGENT - Patch downloaded
INFO - Server.vcs.patches.PatcherImpl - Clearing working directory c:\TeamCity\buildAgent\work\Server\OpenJPA
WARN - jetbrains.buildServer.AGENT -
java.io.IOException: The system cannot find the path specified
at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(Unknown Source)
at java.io.File.createTempFile(Unknown Source)
at java.io.File.createTempFile(Unknown Source)
at com.intellij.openapi.util.io.FileUtil.doCreateTempFile(FileUtil.java:245)
at com.intellij.openapi.util.io.FileUtil.createTempFile(FileUtil.java:231)
at jetbrains.buildServer.vcs.patches.UndoSupportingPatcherImpl.applyPatch(UndoSupportingPatcherImpl.java:17)
at jetbrains.buildServer.agent.impl.ApplyPatch.execute(ApplyPatch.java:20)
at jetbrains.buildServer.agent.impl.BuildAgentImpl.applyPatch(BuildAgentImpl.java:894)
at jetbrains.buildServer.agent.impl.BuildAgentImpl.applyPathToDisc(BuildAgentImpl.java:847)
at jetbrains.buildServer.agent.impl.BuildAgentImpl.applyPatch(BuildAgentImpl.java:822)
at jetbrains.buildServer.agent.impl.BuildAgentImpl.getProjectSources(BuildAgentImpl.java:613)
at jetbrains.buildServer.agent.impl.BuildAgentImpl.access$1400(BuildAgentImpl.java:53)
at jetbrains.buildServer.agent.impl.BuildAgentImpl$7.run(BuildAgentImpl.java:537)
at java.lang.Thread.run(Unknown Source)
Please sign in to leave a comment.
Hello Patrick,
please try to change default temp directory for build agent (set new value
to java.io.tmpdir system property) or change user under whom agent is run.
Seems agent does not have permissions to default temp directory.
--
Olesya Smirnova
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Patrick Linskey" <no_reply@jetbrains.com> wrote in message
news:2010701.1175621067101.JavaMail.itn@is.intellij.net...
>
>
>
>
>
>
>
>
Possibly the problem relates to the temp directory specified in
c:\TeamCity\buildAgent\conf\buildAgent.properties file?
As I remember, this directory should be used to create temp files for build agent.
Regards,
KIR
I tried setting values in that file, and in a couple of other places, but was unsuccessful.
I eventually just created a new teamcity user on my machine and reconfigured my services to run as that user. Things now work.
I think that this was my fault -- I forgot to un-select the VCS trigger when adding the others.
-Patrick