gitlab-ci-runner-scala icon indicating copy to clipboard operation
gitlab-ci-runner-scala copied to clipboard

Error

Open wattnpapa opened this issue 10 years ago • 6 comments

Hi i get this error any idea how to fix it?

java.io.IOException: Cannot run program "cmd /c C:\Users\build\.gitlab-ci-runner-scala\projects\build-2-15-script.bat" (in directory "C:\Users\build\.gitlab-ci-runner-scala\projects"): CreateProcess error=2, Das System kann die angegebene Datei nicht finden

wattnpapa avatar Feb 03 '15 13:02 wattnpapa

Can you post the full stack trace please?

nafg avatar Feb 04 '15 01:02 nafg

Hmm, I don't think I actually tested it on Windows. Can you try changing

https://github.com/nafg/gitlab-ci-runner-scala/blob/a5bf6a08f35965fcbe09070c5ee8cb8bca712a1d/src/main/scala/gitlab_ci_runner/runner/Build.scala#L78

to say "cmd.exe" rather than just "cmd" please?

Thanks.

nafg avatar Feb 04 '15 01:02 nafg

Ok i will try it on friday.

The file ist still at the given Path and i can execute ist manually.

The Translation of the last Part of the Error:

Das System kann die angegebene Datei nicht finden
The System can not find the given file

wattnpapa avatar Feb 04 '15 06:02 wattnpapa

Yeah, I'm suspecting it's "cmd" that can't be found.

On Wed, Feb 4, 2015 at 1:33 AM, Johannes Rudolph [email protected] wrote:

Ok i will try it on friday.

The file ist still at the given Path and i can execute ist manually.

The Translation of the last Part of the Error:

Das System kann die angegebene Datei nicht finden The System can not find the given file

Reply to this email directly or view it on GitHub https://github.com/nafg/gitlab-ci-runner-scala/issues/3#issuecomment-72798102 .

nafg avatar Feb 04 '15 06:02 nafg

Ok here is the wohle Error Message i get form the GitLab CI GUI:

java.io.IOException: Cannot run program "cmd /c C:\Users\build\.gitlab-ci-runner-scala\projects\build-2-15-script.bat" (in directory "C:\Users\build\.gitlab-ci-runner-scala\projects"): CreateProcess error=2, Das System kann die angegebene Datei nicht finden
    at java.lang.ProcessBuilder.start(Unknown Source)
    at gitlab_ci_runner.runner.Build.exec(Build.scala:98)
    at gitlab_ci_runner.runner.Build.run(Build.scala:62)
    at gitlab_ci_runner.runner.Runner$$anonfun$1.apply$mcV$sp(Runner.scala:27)
    at gitlab_ci_runner.runner.Runner$$anonfun$1.apply(Runner.scala:24)
    at gitlab_ci_runner.runner.Runner$$anonfun$1.apply(Runner.scala:24)
    at scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)
    at scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)
    at scala.concurrent.impl.ExecutionContextImpl$$anon$3.exec(ExecutionContextImpl.scala:107)
    at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
    at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
    at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
    at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
Caused by: java.io.IOException: CreateProcess error=2, Das System kann die angegebene Datei nicht finden
    at java.lang.ProcessImpl.create(Native Method)
    at java.lang.ProcessImpl.<init>(Unknown Source)
    at java.lang.ProcessImpl.start(Unknown Source)
    ... 13 more

wattnpapa avatar Feb 06 '15 07:02 wattnpapa

Please try changing cmd to cmd.exe.

Are you running the release jar or building from source yourself?

nafg avatar Feb 09 '15 11:02 nafg