File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes Hudson jobs: unable to checkOUT from CVS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Hudson jobs: unable to checkOUT from CVS" Watch "Hudson jobs: unable to checkOUT from CVS" New topic
Author

Hudson jobs: unable to checkOUT from CVS

Jeevan Sunkersett
Ranch Hand

Joined: Jul 03, 2007
Posts: 75
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

Joined: May 14, 2008
Posts: 5779
    
    7

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.


JBoss In Action
Jeevan Sunkersett
Ranch Hand

Joined: Jul 03, 2007
Posts: 75
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



[Thumbnail for JBossService.JPG]

Jeevan Sunkersett
Ranch Hand

Joined: Jul 03, 2007
Posts: 75
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

Joined: Jul 03, 2007
Posts: 75
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hudson jobs: unable to checkOUT from CVS
 
Similar Threads
CVSNT and Eclipse
unable to checkout using CVS
CVS Problem
Eclipse's ANT using CVS gets error code 1
CVSNT Adding user