wood burning stoves 2.0*
The moose likes Agile and Other Processes and the fly likes WARN  CVS              - problem getting CVSROOT/users; using empty email map Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » Agile and Other Processes
Bookmark "WARN  CVS              - problem getting CVSROOT/users; using empty email map" Watch "WARN  CVS              - problem getting CVSROOT/users; using empty email map" New topic
Author

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

geeta gonchala
Greenhorn

Joined: Jul 24, 2007
Posts: 18
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

Joined: Dec 16, 2003
Posts: 977
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


"Eppur si muove!"
geeta gonchala
Greenhorn

Joined: Jul 24, 2007
Posts: 18
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

Joined: Jul 11, 2001
Posts: 14112
What happens if you execute the shown command from the command line?


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
geeta gonchala
Greenhorn

Joined: Jul 24, 2007
Posts: 18
Hi,
Yes i can restart cc.
tahnks in adavnce
geeta gonchala
Greenhorn

Joined: Jul 24, 2007
Posts: 18
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

Joined: Dec 16, 2003
Posts: 977
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

Joined: Jul 24, 2007
Posts: 18
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

Joined: Dec 16, 2003
Posts: 977
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

Joined: Jul 11, 2001
Posts: 14112
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

Joined: Jul 24, 2007
Posts: 18
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

Joined: Dec 16, 2003
Posts: 977
Hi Geeta,

Did you solve the problem?

Gian
geeta gonchala
Greenhorn

Joined: Jul 24, 2007
Posts: 18
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

Joined: Dec 16, 2003
Posts: 977
Well done
 
GeeCON Prague 2014
 
subject: WARN CVS - problem getting CVSROOT/users; using empty email map