Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when deploying from Linux-based XLD, but not Windows-based XLD #6

Open
pgroenin opened this issue Jan 26, 2022 · 0 comments
Open

Comments

@pgroenin
Copy link

(This might be a duplicate of issue #5, but since that has no details in it, I cannot tell for sure)

We recently moved our XLD instances to run on Linux hosts, in a master/worker setup, rather than running as a single node on a Windows host. After doing so, this plugin appears to have broken.

The error is being received on the mongoDB deployment steps:

Uploading file 0000-EmployeeRetention_HighPerf_HighRisk.js to working directory.
Step failed
com.xebialabs.overthere.RuntimeIOException: Cannot copy local:work/task-20220105T111843813.3375/artifact.2124/mongoscripts.1159/mongoscripts.zip/0000-EmployeeRetention_HighPerf_HighRisk.js to ssh:sudo://user:[email protected]:22/tmp/ot-20220105T111845170/generic_plugin.tmp/0000-Script.js: java.io.IOException: com.xebialabs.overthere.ssh.OverthereFileLocalSourceFile@60c2144f is not a regular file or directory
at com.xebialabs.overthere.ssh.SshScpFile.copyFrom(SshScpFile.java:368)
at com.xebialabs.overthere.ssh.SshElevatedUserFile.copyFrom(SshElevatedUserFile.java:131)
at com.xebialabs.overthere.spi.BaseOverthereFile.copyToDestination(BaseOverthereFile.java:201)
at com.xebialabs.overthere.spi.BaseOverthereFile.copyTo(BaseOverthereFile.java:110)
at com.xebialabs.deployit.plugin.generic.step.BaseStep.uploadToWorkingDirectory(BaseStep.java:182)
at com.xebialabs.deployit.plugin.generic.step.BaseExecutionStep.uploadArtifactIfPresent(BaseExecutionStep.java:128)
at com.xebialabs.deployit.plugin.generic.step.BaseExecutionStep.doExecute(BaseExecutionStep.java:96)
at com.xebialabs.deployit.plugin.generic.step.BaseStep.handleExecute(BaseStep.java:88)
at com.xebialabs.deployit.plugin.generic.step.ScriptExecutionStep.execute(ScriptExecutionStep.java:23)
at com.xebialabs.deployit.engine.tasker.StepExecutingActor.$anonfun$executeStep$3(StepExecutingActor.scala:144)
at com.xebialabs.deployit.engine.tasker.MdcUtils$.withMdc(MdcUtils.scala:16)
at com.xebialabs.deployit.engine.tasker.StepExecutingActor.$anonfun$executeStep$2(StepExecutingActor.scala:134)
at scala.concurrent.Future$.$anonfun$apply$1(Future.scala:659)
at scala.util.Success.$anonfun$map$1(Try.scala:255)
at scala.util.Success.map(Try.scala:213)
at scala.concurrent.Future.$anonfun$map$1(Future.scala:292)
at scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:33)
at scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:33)
at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
at akka.dispatch.BatchingExecutor$AbstractBatch.processBatch(BatchingExecutor.scala:55)
at akka.dispatch.BatchingExecutor$BlockableBatch.$anonfun$run$1(BatchingExecutor.scala:92)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:85)
at akka.dispatch.BatchingExecutor$BlockableBatch.run(BatchingExecutor.scala:92)
at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:41)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.io.IOException: com.xebialabs.overthere.ssh.OverthereFileLocalSourceFile@60c2144f 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 com.xebialabs.overthere.ssh.SshScpFile.copyFrom(SshScpFile.java:365)
... 27 more

I have taken the same package generating this error back into an XLD node running on Windows, and again it works fine there, so it does not appear to be an issue with the build of the package.

I did report the issue to Digital.ai, as it feels to me like the issue is within the XLD/overthere code, but they recommended posting the issue here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant