xebialabs-community/xld-folder-plugin

XLD Dev - xld.folder - Temp file failure during deploy

smandavi opened this issue · 0 comments

his has bit me a few times...
There seems to be some type of internal file handling failure when XLD tries to create a temporary file.
This usually works on a re-try - but this HALTS automated deployments and causes unnecessary downtime/delays.
If this is not easy to resolve, I recommend that built-in reties be implemented to keep deployment moving.

Here are the details:
Uploading artifact [/tmp/ot-20190403T121222056.1/201904031022.zip]
Copying /tmp/ot-20190403T121222056.1/201904031022.zip to /tmp/ot-20190403T121222056/working.directory.tmp/xld.587/201904031022.zip on host Infrastructure/n2a/apache/flex/myapps.paychex.com/extwsn2aw55
Uploading artifact [/tmp/ot-20190403T121222056.2/201904021548.zip]
Copying /tmp/ot-20190403T121222056.2/201904021548.zip to /tmp/ot-20190403T121222056/working.directory.tmp/xld.9301/201904021548.zip on host Infrastructure/n2a/apache/flex/myapps.paychex.com/extwsn2aw55
Creating path /tmp/ot-20190403T121222056/working.directory.tmp/xld.Folder on host Infrastructure/n2a/apache/flex/myapps.paychex.com/extwsn2aw55
Processing freemarker template xld.Folder/unpack_destroy.sh.ftl to /tmp/ot-20190403T121222056/working.directory.tmp/xld.Folder/unpack_destroy.sh
Step failed
java.io.IOException: N:\xebialabs\xld\server\temp\scp_upload5445969491651042197.tmp is not a regular file or directory
at net.schmizz.sshj.xfer.scp.SCPUploadClient.process(SCPUploadClient.java:80)
at net.schmizz.sshj.xfer.scp.SCPUploadClient.startCopy(SCPUploadClient.java:70)
at net.schmizz.sshj.xfer.scp.SCPUploadClient.copy(SCPUploadClient.java:50)
at net.schmizz.sshj.xfer.scp.SCPUploadClient.copy(SCPUploadClient.java:43)
at net.schmizz.sshj.xfer.scp.SCPFileTransfer.upload(SCPFileTransfer.java:55)
at com.xebialabs.overthere.ssh.SshScpFile$2.uploadAndDelete(SshScpFile.java:243)
at com.xebialabs.overthere.ssh.SshScpFile$2.close(SshScpFile.java:236)
at java.io.FilterOutputStream.close(FilterOutputStream.java:159)
at com.xebialabs.deployit.plugin.steps.FreemarkerSupport.renderFreemarkerTo(FreemarkerSupport.scala:41)
at com.xebialabs.deployit.plugin.steps.FreemarkerSupport.renderFreemarkerTo$(FreemarkerSupport.scala:35)
at com.xebialabs.deployit.plugin.steps.OsScriptStep.renderFreemarkerTo(OsScriptStep.scala:18)
at com.xebialabs.deployit.plugin.steps.OsScriptStep.processAndUploadResource(OsScriptStep.scala:75)
at com.xebialabs.deployit.plugin.steps.OsScriptStep.processScript(OsScriptStep.scala:61)
at com.xebialabs.deployit.plugin.steps.OsScriptStep.executeOnTargetHost(OsScriptStep.scala:54)
at com.xebialabs.deployit.plugin.steps.TargetHostSupport.execute(TargetHostSupport.scala:47)
at com.xebialabs.deployit.plugin.steps.TargetHostSupport.execute$(TargetHostSupport.scala:44)
at com.xebialabs.deployit.plugin.steps.OsScriptStep.execute(OsScriptStep.scala:18)
at com.xebialabs.deployit.engine.tasker.StepExecutingActor.$anonfun$executeStep$2(StepExecutingActor.scala:128)
at com.xebialabs.deployit.engine.tasker.MdcUtils$.withMdc(MdcUtils.scala:16)
at com.xebialabs.deployit.engine.tasker.StepExecutingActor.$anonfun$executeStep$1(StepExecutingActor.scala:118)
at scala.concurrent.Future$.$anonfun$apply$1(Future.scala:653)
at scala.util.Success.$anonfun$map$1(Try.scala:251)
at scala.util.Success.map(Try.scala:209)
at scala.concurrent.Future.$anonfun$map$1(Future.scala:287)
at scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:29)
at scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:29)
at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:60)
at akka.dispatch.BatchingExecutor$AbstractBatch.processBatch(BatchingExecutor.scala:55)
at akka.dispatch.BatchingExecutor$BlockableBatch.$anonfun$run$1(BatchingExecutor.scala:91)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:81)
at akka.dispatch.BatchingExecutor$BlockableBatch.run(BatchingExecutor.scala:91)
at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:40)
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)