hudson運行出現java.io.IOException Cannot run program的錯誤分析


作者:朱金燦

來源:http://blog.csdn.net/clever101

 

      在昨天運行每日構建時hudson突然出錯,錯誤信息如下:

[MySoft3.1] $ cmd /c call "D:\ProgramFiles\Apache Software Foundation\Tomcat6.0\temp\hudson7759370013689135994.bat"

FATAL: command execution failed

java.io.IOException: Cannot run program"cmd" (in directory "E:\workspace\MySoft3.1"):CreateProcess error=1455, ???????С????¨?ê?

       atjava.lang.ProcessBuilder.start(Unknown Source)

       athudson.Proc$LocalProc.<init>(Proc.java:192)

       athudson.Proc$LocalProc.<init>(Proc.java:164)

       athudson.Launcher$LocalLauncher.launch(Launcher.java:639)

       athudson.Launcher$ProcStarter.start(Launcher.java:274)

       athudson.Launcher$ProcStarter.join(Launcher.java:281)

       athudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:84)

       athudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:60)

       athudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)

       athudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:630)

       athudson.model.Build$RunnerImpl.build(Build.java:175)

       athudson.model.Build$RunnerImpl.doRun(Build.java:137)

       athudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:429)

       athudson.model.Run.run(Run.java:1366)

       athudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)

       athudson.model.ResourceController.execute(ResourceController.java:88)

       athudson.model.Executor.run(Executor.java:145)

Caused by: java.io.IOException:CreateProcess error=1455, ???????С????¨?ê?

       atjava.lang.ProcessImpl.create(Native Method)

       atjava.lang.ProcessImpl.<init>(Unknown Source)

       atjava.lang.ProcessImpl.start(Unknown Source)

       ...17 more

Checking console output

[DEBUG] Skipping watched dependency updatefor build: BuildMySoft #1923 due to result: FAILURE

Finished: FAILURE

 

        初步分析是hudson無法創建一個編譯進程而出錯。之前運行得好好的,為什么會這樣呢?上網搜索了一下,網上有篇相關帖子:java-io-ioexception-cannot-run-program-cmd-exe-createprocess-error-5-access-denied,初步判斷是權限問題,。我回憶了一下之前在服務器上做了什么動作,想到最近在服務器上安裝了360殺毒,於是把360殺毒卸載了,果然就好了。360殺毒還能禁止tomcat用戶啟動命令行,這真是一個神奇的殺毒軟件!


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM