[Anthill] build failed due to password to CVS --- where is wr ong?

Hu, Sigang SHu at imc.com
Wed Oct 26 16:31:48 CDT 2005


Andy,
 
  Previously I thought it should be the same user in the following 2 places:

  (1)user specified when configuring CVS repository adapter for Anthill
  (2)user that manually login to CVS on the same machine

  Are you saying the user account of starting Tomcat Instance for anthill
has to be the same user as the above 2 places?

  Looks like it works after I changed the logon user account for the Anthill
Tomcat instance.

sigang

-----Original Message-----
From: Schaefer, Andreas (c) [mailto:Andreas.Schaefer at Gateway.com] 
Sent: Wednesday, October 26, 2005 5:19 PM
To: Anthill user list
Subject: RE: [Anthill] build failed due to password to CVS --- where is wr
ong?

Then tomcat is started with the system account. Please make sure that
you change the user the Windows Service is using to start the
application.

-Andy

-----Original Message-----
From: anthill-bounces at lists.urbancode.com
[mailto:anthill-bounces at lists.urbancode.com] On Behalf Of Hu, Sigang
Sent: Wednesday, October 26, 2005 2:08 PM
To: Anthill user list
Subject: RE: [Anthill] build failed due to password to CVS --- where is
wr ong?

Yes, I did. 
I was actually successful using Anthill to build before in running
Tomcat
from startup batch file with only one instance. 
Now I have 2 instances of Tomcat running as Windows services(one for
building using Anthill and one for running my web application). I start
the
service from Control Panel/Administrative Tools/Services.

-----Original Message-----
From: Schaefer, Andreas (c) [mailto:Andreas.Schaefer at Gateway.com] 
Sent: Wednesday, October 26, 2005 4:46 PM
To: Anthill user list
Subject: RE: [Anthill] build failed due to password to CVS --- where is
wr
ong?

Did you make a manual 'cvs login' before starting Tomcat. I know that
for example TortoiseCVS is not setting the password for my CVS from
cygwin which I use with Anthill.

-Andy

-----Original Message-----
From: anthill-bounces at lists.urbancode.com
[mailto:anthill-bounces at lists.urbancode.com] On Behalf Of Hu, Sigang
Sent: Wednesday, October 26, 2005 1:36 PM
To: Anthill user list
Subject: RE: [Anthill] build failed due to password to CVS --- where is
wr ong?

Yes, the same user. I am running AnthillOS.

-----Original Message-----
From: varban [mailto:vvv at urbancode.com] 
Sent: Wednesday, October 26, 2005 4:33 PM
To: Anthill user list
Subject: Re: [Anthill] build failed due to password to CVS --- where is
wrong?

Hi Sigang,

when you ran cvs client manually, did you run it under the same user 
that AnthillPro's instance of Tomcat is running?
The reason I am asking is because cvs stores the passwords in the user's

home directory and if tomcat is runing under a different user then cvs 
will not find the password that you used.

Regards,
Varban

Hu, Sigang wrote:
> I was successful in building my project and then I set up 2 instances
of 
> Tomcat as windows services and one is for Anthill building.
> 
> I got the following error email:
> 
> Anthill version 1.8.0.264
> 
>  
> 
> Retrieving project files: OK
> 
> FAILED to build project.  Message: ProfileAdapter prepareForEdit
failed: 
> 1 FAILED to get revision list.  Message: cvs log failed.  Exit code: 1
> 
>  
> 
> And in my tomcat instance log, I see:
> 
> 'cvs'
> 
> '-d'
> 
> ':pserver:shu at hfehr.imc.com:/usr/local/cvs-hfehr'
> 
> 'edit'
> 
> 'server\build_version.txt'
> 
>  
> 
> The ' characters around the executable and arguments are
> 
> not part of the command.
> 
>  
> 
>  
> 
> WorkingDir: none
> 
>  
> 
> 11:27:54:890 [Thread - AnthillBuildDaemon] DEBUG 
> com.urbancode.anthill.adapter.ProfileRepositoryAdapter  -
> 
>  
> 
> Environment Variables: none
> 
> 11:27:54:890 [Thread - AnthillBuildDaemon] DEBUG 
> org.apache.commons.execute.ProcessThreadRegistry  - Adding a process
for 
> thread: Thread - AnthillBuildDaemon
> 
> cvs edit: Empty password used - try 'cvs login' with a real password
> 
>  
> 
> cvs [edit aborted]: authorization failed: server adenine.imc.com 
> rejected access to /usr/local/cvs-hfehr for user shu
> 
> 11:27:55:000 [Thread - AnthillBuildDaemon] ERROR 
> com.urbancode.anthill.BuildManager  - ProfileAdapter prepareForEdit 
> failed: 1
> 
> com.urbancode.anthill.adapter.RepositoryException: ProfileAdapter 
> prepareForEdit failed: 1
> 
>             at 
>
com.urbancode.anthill.adapter.ProfileRepositoryAdapter.executeCommand(Pr
ofil
eRepositoryAdapter.java:441)
> 
>             at 
>
com.urbancode.anthill.adapter.ProfileRepositoryAdapter.prepareFileForEdi
t(Pr
ofileRepositoryAdapter.java:365)
> 
>             at 
>
com.urbancode.anthill.adapter.UrbanCodeVersionAdapter.doPreVersionFileMo
dify
(UrbanCodeVersionAdapter.java:252)
> 
>             at 
>
com.urbancode.anthill.adapter.UrbanCodeVersionAdapter.setCurrentVersion(
Urba
nCodeVersionAdapter.java:175)
> 
>             at 
> com.urbancode.anthill.BuildManager.build(BuildManager.java:138)
> 
>             at 
>
com.urbancode.anthill.AnthillProject.releaseProject(AnthillProject.java:
231)
> 
>             at 
> com.urbancode.anthill.BuildDefinition.run(BuildDefinition.java:158)
> 
>             at
com.urbancode.anthill.BuildDaemon.run(BuildDaemon.java:73)
> 
> 11:27:55:000 [Thread - AnthillBuildDaemon] INFO  
> com.urbancode.anthill.adapter.CVSRepositoryAdapter  - Get revisions 
> since command: cmd /x/c
> 
>  
> 
>         cd /d C:\Anthill1.8.0\work &&
> 
>  
> 
> cvs -d :pserver:shu at hfehr.imc.com:/usr/local/cvs-hfehr log 
> -d">2005-10-24 21:56:57 GMT" -rHEAD -N hfehr
> 
>  
> 
> cvs log: Empty password used - try 'cvs login' with a real password
> 
>  
> 
> I have followed this instruction when configuring CVS repository
adapter 
> - I run cvs manually both on command line and using WinCvs client. But

> looks like the password is not stored. So I can't get authenticated
and 
> can't get revision list.
> 
> "The CVS ROOT used to log in to CVS. Please keep in mind that if you
are 
> using pserver authentication, then the user must log in manually from 
> the machine running Anthill into the CVS. (Logging in manually will 
> allow the CVS client to store the CVS password for future use). "
> 
> Thanks in Advance.
> 
> sigang
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
> 
>
------------------------------------------------------------------------
> 
> _______________________________________________
> Anthill mailing list
> Anthill at lists.urbancode.com
> http://lists.urbancode.com/mailman/listinfo/anthill

_______________________________________________
Anthill mailing list
Anthill at lists.urbancode.com
http://lists.urbancode.com/mailman/listinfo/anthill
_______________________________________________
Anthill mailing list
Anthill at lists.urbancode.com
http://lists.urbancode.com/mailman/listinfo/anthill
_______________________________________________
Anthill mailing list
Anthill at lists.urbancode.com
http://lists.urbancode.com/mailman/listinfo/anthill
_______________________________________________
Anthill mailing list
Anthill at lists.urbancode.com
http://lists.urbancode.com/mailman/listinfo/anthill
_______________________________________________
Anthill mailing list
Anthill at lists.urbancode.com
http://lists.urbancode.com/mailman/listinfo/anthill



More information about the Anthill mailing list