08.01
recently starting managing a cvs repository and came to an issue where by when one of the developer was trying to checkout code got an error “cvs checkout: failed to create lock directory” as below :
> `/cvs/app/repository/internet/src/com/dubious/webservices/direct’
> (/cvs/app/repository/internet/src/com/dubious/webservices/direct/#cvs.lock):
> Permission denied
> cvs update: failed to obtain dir lock in repository
> `/cvs/app/repository/internet/src/com/dubious/webservices/direct’
> cvs [update aborted]: read lock failed - giving up
The main cause of the issue happened due to the user who created the module having a different primary group than the user who was checking out. If you go to “/cvs/app/repository/internet/src/com/dubious/webservices/” and issue a command “ls -l” you will see
The error message came due to the fact the user who wanted to check out was not the member of the group “group”
To resolve this kind off issue I simply changed the group for the file in the cvs to be the group to which all the developers belong to , its a good idea to make a seperate group, something like “cvsusers” and then add developers/users to that group.
so to change the group give the following command
No Comment.
Add Your Comment