Windows cmd and 2 Executors

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Windows cmd and 2 Executors

Grundmann, Christian

When i try to run more than 1 Executor on 1 Slave (Windows – CMD)

I get the Error

 

The directory name is invalid

FATAL: Befehlsausführung fehlgeschlagen

java.io.IOException: Cannot run program "cmd" (in directory "C:\hudson\jobs\CI_WIN9\workspace"): CreateProcess error=267, The directory name is invalid

        at java.lang.ProcessBuilder.start(Unknown Source)

        at hudson.Proc$LocalProc.<init>(Proc.java:145)

        at hudson.Proc$LocalProc.<init>(Proc.java:118)

        at hudson.Launcher$LocalLauncher.launch(Launcher.java:632)

        at hudson.Launcher$ProcStarter.start(Launcher.java:267)

        at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:771)

        at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:749)

        at hudson.remoting.UserRequest.perform(UserRequest.java:69)

        at hudson.remoting.UserRequest.perform(UserRequest.java:23)

        at hudson.remoting.Request$2.run(Request.java:213)

        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 hudson.remoting.Engine$1$1.run(Engine.java:31)

        at java.lang.Thread.run(Unknown Source)

Caused by: java.io.IOException: CreateProcess error=267, The directory name is invalid

        at java.lang.ProcessImpl.create(Native Method)

        at java.lang.ProcessImpl.<init>(Unknown Source)

        at java.lang.ProcessImpl.start(Unknown Source)

        ... 17 more

Finished: FAILURE

 

 

I did’t configure any workspace

Reply | Threaded
Open this post in threaded view
|

Re: Windows cmd and 2 Executors

Kohsuke Kawaguchi
Administrator

Does the given directory exist?

Grundmann, Christian wrote:

> When i try to run more than 1 Executor on 1 Slave (Windows - CMD)
>
> I get the Error
>
>  
>
> The directory name is invalid
>
> FATAL: Befehlsausführung fehlgeschlagen
>
> java.io.IOException: Cannot run program "cmd" (in directory "C:\hudson\jobs\CI_WIN9\workspace"): CreateProcess error=267, The directory name is invalid
>
>         at java.lang.ProcessBuilder.start(Unknown Source)
>
>         at hudson.Proc$LocalProc.<init>(Proc.java:145)
>
>         at hudson.Proc$LocalProc.<init>(Proc.java:118)
>
>         at hudson.Launcher$LocalLauncher.launch(Launcher.java:632)
>
>         at hudson.Launcher$ProcStarter.start(Launcher.java:267)
>
>         at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:771)
>
>         at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:749)
>
>         at hudson.remoting.UserRequest.perform(UserRequest.java:69)
>
>         at hudson.remoting.UserRequest.perform(UserRequest.java:23)
>
>         at hudson.remoting.Request$2.run(Request.java:213)
>
>         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 hudson.remoting.Engine$1$1.run(Engine.java:31)
>
>         at java.lang.Thread.run(Unknown Source)
>
> Caused by: java.io.IOException: CreateProcess error=267, The directory name is invalid
>
>         at java.lang.ProcessImpl.create(Native Method)
>
>         at java.lang.ProcessImpl.<init>(Unknown Source)
>
>         at java.lang.ProcessImpl.start(Unknown Source)
>
>         ... 17 more
>
> Finished: FAILURE
>
>  
>
>  
>
> I did't configure any workspace
>
>

--
Kohsuke Kawaguchi
Sun Microsystems                   http://weblogs.java.net/blog/kohsuke/


smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

AW: Windows cmd and 2 Executors

Grundmann, Christian
Now i created the directory
And get

'C:\DOCUME~1\BUILDU~1.CI\LOCALS~1\Temp\hudson80084.bat' is not recognized as an internal or external command,
operable program or batch file.

On the second executor
The First works just fine

-----Ursprüngliche Nachricht-----
Von: Kohsuke Kawaguchi [mailto:[hidden email]]
Gesendet: Mittwoch, 22. Juli 2009 22:53
An: [hidden email]
Betreff: Re: Windows cmd and 2 Executors


Does the given directory exist?

Grundmann, Christian wrote:

> When i try to run more than 1 Executor on 1 Slave (Windows - CMD)
>
> I get the Error
>
>  
>
> The directory name is invalid
>
> FATAL: Befehlsausführung fehlgeschlagen
>
> java.io.IOException: Cannot run program "cmd" (in directory "C:\hudson\jobs\CI_WIN9\workspace"): CreateProcess error=267, The directory name is invalid
>
>         at java.lang.ProcessBuilder.start(Unknown Source)
>
>         at hudson.Proc$LocalProc.<init>(Proc.java:145)
>
>         at hudson.Proc$LocalProc.<init>(Proc.java:118)
>
>         at hudson.Launcher$LocalLauncher.launch(Launcher.java:632)
>
>         at hudson.Launcher$ProcStarter.start(Launcher.java:267)
>
>         at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:771)
>
>         at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:749)
>
>         at hudson.remoting.UserRequest.perform(UserRequest.java:69)
>
>         at hudson.remoting.UserRequest.perform(UserRequest.java:23)
>
>         at hudson.remoting.Request$2.run(Request.java:213)
>
>         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 hudson.remoting.Engine$1$1.run(Engine.java:31)
>
>         at java.lang.Thread.run(Unknown Source)
>
> Caused by: java.io.IOException: CreateProcess error=267, The directory name is invalid
>
>         at java.lang.ProcessImpl.create(Native Method)
>
>         at java.lang.ProcessImpl.<init>(Unknown Source)
>
>         at java.lang.ProcessImpl.start(Unknown Source)
>
>         ... 17 more
>
> Finished: FAILURE
>
>  
>
>  
>
> I did't configure any workspace
>
>


--
Kohsuke Kawaguchi
Sun Microsystems                   http://weblogs.java.net/blog/kohsuke/


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]