Build Failures

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Build Failures

Alok T
I have cvs server installed on a linux machine where I have installed Hudson. I am getting the following error when executing the build:
started
[workspace] $ cvs -Q -z0 -d /u03/cvs/cvsroot co -D "Friday, August 17, 2007 2:58:47 PM UTC" GPS-SID GPS-SIDEar GPS-SIDWeb
cvs [checkout aborted]: /u03/cvs/cvsroot/CVSROOT: Permission denied
FATAL: CVS failed. exit code=1
finished: FAILURE

Any help would be appreciated.

When I try to check-out code from my windows client I am able to. I use wincvs with the pserver protocol to connect to cvs.

Any ideas?
Reply | Threaded
Open this post in threaded view
|

Re: Build Failures

Kohsuke Kawaguchi
Administrator
Alok T wrote:

> I have cvs server installed on a linux machine where I have installed Hudson.
> I am getting the following error when executing the build:
> started
> [workspace] $ cvs -Q -z0 -d /u03/cvs/cvsroot co -D "Friday, August 17, 2007
> 2:58:47 PM UTC" GPS-SID GPS-SIDEar GPS-SIDWeb
> cvs [checkout aborted]: /u03/cvs/cvsroot/CVSROOT: Permission denied
> FATAL: CVS failed. exit code=1
> finished: FAILURE
>
> Any help would be appreciated.
>
> When I try to check-out code from my windows client I am able to. I use
> wincvs with the pserver protocol to connect to cvs.
>
> Any ideas?
It's most likely because the user account that's running Hudson simply
doesn't have the permission to access the said folder. Maybe you launch
Hudson as a daemon, which would normally have a different user id than
your own?

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Build Failures

Kohsuke Kawaguchi
Administrator
In reply to this post by Alok T
[hidden email] wrote:
> Thanks for your response.
>
> Hudson has been launched by using the command java -jar hudson.war under
> my user account.My home folder has been given public read write access.

OK.

> I figured that it is cvs. Is there a way to configure hudson to login
> into cvs using pserver prior to executing the checkout command?

The reason Hudson doesn't provide GUI for this is that it turns out the
way cvs stores credentials are highly environment dependent --- in
particular CVSNT uses a non-standard place like Windows registry. (I
guess maybe I should provide the functionality just for Unix systems.)

But more importantly, I don't think local repository access like that
takes "cvs login". I suggest you run "hudson.scm.CVSSCM.debug=true;"
from the scripting console and run it again --- this will run cvs with
the '-t' option to get more information.

>
> Thanks
> Alok
>
> kohsuke wrote:
>>
>> Alok T wrote:
>>> I have cvs server installed on a linux machine where I have installed
>>> Hudson.
>>> I am getting the following error when executing the build:
>>> started
>>> [workspace] $ cvs -Q -z0 -d /u03/cvs/cvsroot co -D "Friday, August 17,
>>> 2007
>>> 2:58:47 PM UTC" GPS-SID GPS-SIDEar GPS-SIDWeb
>>> cvs [checkout aborted]: /u03/cvs/cvsroot/CVSROOT: Permission denied
>>> FATAL: CVS failed. exit code=1
>>> finished: FAILURE
>>>
>>> Any help would be appreciated.
>>>
>>> When I try to check-out code from my windows client I am able to. I use
>>> wincvs with the pserver protocol to connect to cvs.
>>>
>>> Any ideas?
>>
>> It's most likely because the user account that's running Hudson simply
>> doesn't have the permission to access the said folder. Maybe you launch
>> Hudson as a daemon, which would normally have a different user id than
>> your own?
>>
>> --
>> Kohsuke Kawaguchi
>> Sun Microsystems                   [hidden email]
>>
>>  
>>
> Quoted from:  http://www.nabble.com/Build-Failures-tf4286791.html#a12209753
>
>


--
Kohsuke Kawaguchi

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]