problems with hg plugin

조회수 116회
읽지 않은 첫 메시지로 건너뛰기

Matt Fair

읽지 않음,
2012. 1. 28. 오후 1:36:1712. 1. 28.
받는사람 jenkins...@googlegroups.com
I'm having horrible reliability issues with the mercurial retrieving
via hgweb, specifically for one of my matrix jobs where I have a total
of 4 jobs. The error I get is:

$ hg log --rev 39d1d4c9d7496469ffbdea22cdad48c96642dc70
ERROR: Failed to capture change log
java.io.IOException: Cannot run program "hg" (in directory "...."):
error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
at hudson.Proc$LocalProc.<init>(Proc.java:244)
at hudson.Proc$LocalProc.<init>(Proc.java:216)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:707)
at hudson.Launcher$ProcStarter.start(Launcher.java:338)
at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:932)
at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:899)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:287)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
at java.lang.ProcessImpl.start(ProcessImpl.java:130)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1021)
... 15 more

Could there be an issue with all of my jobs trying to hit the hgweb at
the same time? The repository hgweb server is running locally. Is
there a way to not have to use hgweb and instead just give the local
path to the repository?

Is anyone else having this problem? If I re-run the jobs, they will
work and others will fail, completely random. Which makes me believe
it could be an issue retrieving the change log via hgweb because it's
being hit simultaneously by 4 jobs.

Thanks,
Matt

Matt

읽지 않음,
2012. 1. 28. 오후 1:52:1912. 1. 28.
받는사람 Jenkins Users
I tried the local file system instead of giving a URL and it didn't
work for remote hosts, as the repository isn't local to those
machines, only for the CI server.
Matt

On Jan 28, 11:36 am, Matt Fair <matt.f...@gmail.com> wrote:
> I'm having horrible reliability issues with the mercurial retrieving
> via hgweb, specifically for one of my matrix jobs where I have a total
> of 4 jobs.  The error I get is:
>
> $ hg log --rev 39d1d4c9d7496469ffbdea22cdad48c96642dc70
> ERROR: Failed to capture change log
> java.io.IOException: Cannot run program "hg" (in directory "...."):
> error=2, No such file or directory
>         at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
>         at hudson.Proc$LocalProc.<init>(Proc.java:244)
>         at hudson.Proc$LocalProc.<init>(Proc.java:216)
>         at hudson.Launcher$LocalLauncher.launch(Launcher.java:707)
>         at hudson.Launcher$ProcStarter.start(Launcher.java:338)
>         at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:932)
>         at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:899)
>         at hudson.remoting.UserRequest.perform(UserRequest.java:118)
>         at hudson.remoting.UserRequest.perform(UserRequest.java:48)
>         at hudson.remoting.Request$2.run(Request.java:287)
>         at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorServ ice.java:72)

Matt Fair

읽지 않음,
2012. 1. 28. 오후 4:38:2012. 1. 28.
받는사람 Jenkins Users
I switched from 'hg serve' to
http://mercurial.selenic.com/wiki/modwsgi using Apache and that fixed
my problem.
Matt
전체답장
작성자에게 답글
전달
새 메시지 0개