• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hudson jobs: unable to checkOUT from CVS

 
Jeevan Sunkersett
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Using wrapper.exe, I configured my JBoss server to work as native windows service.

In this JBoss server, I have deployed hudson, but the hudson jobs configured are unable to do a CVS checkout

Every time I get the same error:



Started by user anonymous
[Saitech Donation] $ d:\cvsnt\cvs.exe -Q -z3 -d :pserver:cts\124872@ctsinpunvdev:/saitech co -P -d workspace -D "Monday, November 22, 2010 5:04:08 AM UTC" it/saitech/applications/donation
cvs checkout: Empty password used - try 'cvs login' with a real password

cvs [checkout aborted]: authorization failed: server ctsinpunvdev rejected access to /saitech for user cts\124872
FATAL: CVS failed. exit code=1
Finished: FAILURE



We use CVSNT on a Windows 2K server with widnows domain users, no specific CVS user are defined.

I tried the following

1. Creating an empty .CVSPASS file in the users home directory (C:\Document and Settings\Default User)

2. Defined an environment varibale HUDSON_HOME to a specific folder on D:\

3. Changed the properties of the JBoss-Windows-service to interact with desktop / logIN as a specific user
and specified my windows domain credentials

but none helped resolved the error.

Any clues will be appreciated.

PS:
When logged in interactively into the win2k server sa a local 'Administrator' I could use WinCVS to checkIN/ checkOUT
Ofcourse, for the first time, I had to do a "cvs login" using my domain credentials
which created a registry entry HKCU\Software\Cvsnt\cvspass

TIA
Jeevan
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I configured my JBoss server to work as native windows service.

What account are you using to run JBoss AS as a service? Make sure that, when logged in as that exact same account, that you can do the CVS checkout. Also, where are you setting the env vars? Make sure that you set them at the system level, not at the user level - user level env vars usually do not show up for services.
 
Jeevan Sunkersett
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Peter,

The JBossService that I have configured using wrapper.exe runs as "Local system account"

'wrapper.exe' show up in Task Manager as running under the system account.

But I can only log in (via mstsc/ remote desktop), interactively as the computers local 'Administrator' (in which I have done a cvs login and so now I can do cvs ckeckOut)

What should I do?

PS: I have attached the screen shot.
Also, all environment variables are set @ system level (only TEMP and TMP are set @ user level)

~jeevan
JBossService.JPG
jboss service screen shot
[Thumbnail for JBossService.JPG]
 
Jeevan Sunkersett
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Found the solution.

From http://www.adp-gmbh.ch/misc/tools/cvs/cvspass.html learnt that CVSNT does not use a .cvspass file but makes a 'cvspass' entry under

HKEY_CURRENT_USER\Software\Cvsnt\

As I could login to the windows 2K m/c using mstsc and Adminstrator credentials,
I had used WinCVS to to checkOUT from CVS into a working folder ... in the process had done a CVS login

So when logged in Administrator, using regedit I copied the HKEY_CURRENT_USER\Software\Cvsnt\cvspass into

HKEY_USERS\.DEFAULT\Software\Cvsnt

That resolved my my problem .... hudson could checkOUT from CVS

HTH others with similar problems.

~Jeevan
 
Jeevan Sunkersett
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
and I guess,

ever time my network password chnages,

I will need to do a CVS login, to refresh HKEY_CURRENT_USER\Software\Cvsnt\cvspass

and copy that entry into HKEY_USERS\.DEFAULT\Software\Cvsnt\cvspass

~jeevan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic