We generally access our CVS server via Eclipse. One of our teammates, steveo
created a new package Testing
under our Java src
folder for project ProjectName
.
Afterwards, this caused failures with all checkouts for ProjectName
.
The server reported an error while performing the "cvs checkout" command.
: cvs checkout: failed to create lock directory for `/app/cvs/repository/Main/ProjectName/src/Testing' (/app/cvs/repository/Main/ProjectName/src/Testing/#cvs.lock): Permission denied
: cvs checkout: failed to obtain dir lock in repository `/app/cvs/repository/Main/ProjectName/src/Testing'
: cvs [checkout aborted]: read lock failed - giving up
I putty'd to the CVS server and did an ls -l
on the src
folder
drwxrwxr-x 5 root cvs 4096 May 19 12:05 com
drwxrwxr-x 3 steveo steveo 4096 May 19 12:05 Testing
I sudo su
, backed up to the project folder, and ran chgrp -R cvs ProjectName
.
drwxrwxr-x 5 root cvs 4096 May 19 12:05 com
drwxrwxr-x 3 steveo cvs 4096 May 19 12:05 Testing
This has solved the issue for now... until another user creates a package.
What is causing this and how do I default them all to cvs
instead?
The answers to this similar SO question were not helpful.