• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WARN CVS - problem getting CVSROOT/users; using empty email map

 
geeta gonchala
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,
I am working on cruise control for continous integration.I am not able to set up this with my cvs.
my config.xml is like this


<project name="privo" buildafterfailed="true">
< !-- Bootstrappers are run every time the build runs,<br /> *before* the modification checks -->
<bootstrappers>
<currentbuildstatusbootstrapper file="cruise/logs/privo/buildstatus.txt"/>
< !--<cvsbootstrapper cvsroot=" server:chetan@192.168.1.95:/cvsroot" file="privo/privo/WEB-INF/build.xml" />-->
</bootstrappers>
< !-- Defines where cruise looks for changes, to decide whether to run the build -->
<modificationset quietperiod="10">
<cvs cvsroot=" server:suneeta@192.168.1.95:/cvsroot/privo/privo_hibernate" localworkingcopy="E:/build/cruise/checkout/privo"/>
<buildstatus logdir="cruise/logs/privo"/>

</modificationset>

< !-- Configures the actual build loop, how often and which build file/target -->
<schedule interval="60">
<ant antscript="E:\apache-ant-1.6.5\bin\ant.bat"<br /> buildfile="E:\build\cruise\build-privo.xml"<br /> target="build"<br /> uselogger="true"<br /> usedebug="false"/>
</schedule>

< !-- directory to write build logs to -->
<log dir="cruise/logs/privo">
<merge dir="E:\build\cruise\checkout\privo\junit"/>
</log>

< !-- more recent versions of CC should use the listener below, instead of the<br /> currentbuildstatusbootstrapper, currentbuildstatuspublisher combination.<br /> NOTE: Must match filename in CC reporting/jsp - override.properties: user.build.status.file -->
< !--<br /> <listeners><br /> <currentbuildstatuslistener file="logs/MY_PROJECT_1/buildstatus.txt"/><br /> </listeners><br /> -->

< !-- Publishers are run *after* a build completes -->
-->
<publishers>
<currentbuildstatuspublisher file="cruise/logs/privo/buildstatus.txt"/>

and i'm getting error in log file like this

2007-08-28 16:32:45,773 [Thread-1 ] INFO Project - Project privo: bootstrapping
2007-08-28 16:32:45,773 [Thread-1 ] INFO Project - Project privo: checking for modifications
2007-08-28 16:32:45,773 [Thread-1 ] ERROR CVS - Failed reading mail aliases
java.io.IOException: CreateProcess: cvs -d server:suneeta@192.168.1.95:/cvsroot/privo/privo_hibernate -q co -p CVSROOT/users error=2
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Win32Process.java:66)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:566)
at net.sourceforge.cruisecontrol.util.Commandline.execute(Commandline.java:512)
at net.sourceforge.cruisecontrol.sourcecontrols.CVS.getMailAliases(CVS.java:457)
at net.sourceforge.cruisecontrol.sourcecontrols.CVS.getModifications(CVS.java:416)
at net.sourceforge.cruisecontrol.ModificationSet.getModifications(ModificationSet.java:182)
at net.sourceforge.cruisecontrol.Project.getModifications(Project.java:347)
at net.sourceforge.cruisecontrol.Project.build(Project.java:176)
at net.sourceforge.cruisecontrol.Project.execute(Project.java:153)
at net.sourceforge.cruisecontrol.ProjectWrapper.run(ProjectWrapper.java:66)
at java.lang.Thread.run(Thread.java:534)
2007-08-28 16:32:45,789 [Thread-1 ] WARN CVS - problem getting CVSROOT/users; using empty email map
2007-08-28 16:32:45,789 [Thread-1 ] ERROR CVS - Log command failed to execute succesfully
java.io.IOException: CreateProcess: cvs -d server:suneeta@192.168.1.95:/cvsroot/privo/privo_hibernate -q log -N "-d2007-08-27 18:30:00 GMT<2007-08-28 11:02:45 GMT" -b error=2
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Win32Process.java:66)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:566)
at net.sourceforge.cruisecontrol.util.Commandline.execute(Commandline.java:512)
at net.sourceforge.cruisecontrol.sourcecontrols.CVS.execHistoryCommand(CVS.java:593)
at net.sourceforge.cruisecontrol.sourcecontrols.CVS.getModifications(CVS.java:420)
at net.sourceforge.cruisecontrol.ModificationSet.getModifications(ModificationSet.java:182)
at net.sourceforge.cruisecontrol.Project.getModifications(Project.java:347)
at net.sourceforge.cruisecontrol.Project.build(Project.java:176)
at net.sourceforge.cruisecontrol.Project.execute(Project.java:153)
at net.sourceforge.cruisecontrol.ProjectWrapper.run(ProjectWrapper.java:66)
at java.lang.Thread.run(Thread.java:534)

can any body help me.
Thanks in advanse.
 
Gian Franco
blacksmith
Ranch Hand
Posts: 979
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

What version of the CVS client are you using and
what java version?

Have you tried deleting the <projectname>.ser file
in the CC home directory?

Gian
 
geeta gonchala
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Gian,

Thank for your reponse.I am using cruisecontrol 2.2.1 and jdk1.5 in my system.and i deleted .ser file from home directory.

Thanks in advance.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What happens if you execute the shown command from the command line?
 
geeta gonchala
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Yes i can restart cc.
tahnks in adavnce
 
geeta gonchala
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
in below code i'm not giving password to connect cvs.i'm using only user name.shall i give any password here in this.If yes where should i add in this.
<bootstrappers>
<currentbuildstatusbootstrapper file="cruise/logs/privo/buildstatus.txt"/>
<cvsbootstrapper cvsroot=" server:ashwaq@192.168.1.95:/cvsroot/privo" file="privo/privo/WEB-INF/build.xml"/>
</bootstrappers>
< !-- Defines where cruise looks for changes, to decide whether to run the build -->
<modificationset quietperiod="10">
<cvs cvsroot=" server:ashwaq@192.168.1.95:/cvsroot" localworkingcopy="E:/build/cruise/checkout/privo"/>
<buildstatus logdir="cruise/logs/privo"/>
</modificationset>
Thanks in avance.
 
Gian Franco
blacksmith
Ranch Hand
Posts: 979
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Definitely...suppose your password is pandora
then you would have a cvsroot like:
cvsroot=":pserver:ashwaq:pandora@192.168.1.95:/cvsroot/privo"

Gian
[ August 29, 2007: Message edited by: Gian Franco ]
 
geeta gonchala
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I tried this also i'm getting same problem.I am not able to find out what is problem here in config.xml.

<bootstrappers>
<currentbuildstatusbootstrapper file="cruise/logs/privo_hibernate/buildstatus.txt"/>
<cvsbootstrapper cvsroot=" server:suneeta:suneeta@192.168.1.95:/cvsroot/privo_hibernate" file="privo_hibernate/privo/WEB-INF/build.xml"/>
</bootstrappers>
< !-- Defines where cruise looks for changes, to decide whether to run the build -->
<modificationset quietperiod="10">
<cvs cvsroot=" server:suneeta:suneeta@192.168.1.95:/cvsroot/privo_hibernate" localworkingcopy="E:\build\cruise\checkout\privo_hibernate"/>
<buildstatus logdir="cruise/logs/privo_hibernate"/>

</modificationset>

Thanks in avdavnce.
 
Gian Franco
blacksmith
Ranch Hand
Posts: 979
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Geeta,

You are running CC as a service, can you stop the
service, and run the cruisecontrol.bat file

Then force a build by clicking on the button and
see what happens on your CC machine.

Let me know...

Gian
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I remember correctly, you can use the "cvs login" command once at command line, so that you don't need to provide the password in the CC configuration.
 
geeta gonchala
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I changed cruisecontrol version to 2.5.my cvs version is 2.1.11-17.now i'm able to work with local copy.
cc running fine when i'm using set up in local system and if i get my working copy manually.I am not able to connect to cvs form my system through this pserver command
server:ashwaq:ashwaq@192.168.1.95:/cvsroot
In console i am able to connect to cvs by using this same command.
where i'm geting problem i'm not able to know.
Is this with version prb other than this i dont know.
welcome any help.
Thanks in advance.
 
Gian Franco
blacksmith
Ranch Hand
Posts: 979
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Geeta,

Did you solve the problem?

Gian
 
geeta gonchala
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Gian,
Yaa i solved this problem thank you.I just added cvs.exe in my current diectory.
Its working nice now.

Thank you.
 
Gian Franco
blacksmith
Ranch Hand
Posts: 979
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well done
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic