info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unable to commit a file ( locked after an update operation )


From: Mark D. Baushke
Subject: Re: unable to commit a file ( locked after an update operation )
Date: Mon, 05 Jan 2004 08:25:05 -0800

<#part sign=pgp address@hidden>
LUSSIEZ Eric <address@hidden> writes:

> Hello , I'm using winCVS with a repository designed by a local mounted
> directory.
> I'm alone working on that repository. I modified a file and performed ( for
> testing and unusefull as i'm alone  ) an update operation. No major problem
> since may local modified file was not replaced.
> But when I try to commit that file, there is the error "cvs [commit
> aborted]: could not open lock file".
> My file is locked : why ?

For reasons unclear, cvs was unable to create locks in the repository.
Do you own and have write permissions to the repository? Is the
directory mounted read-only or something? If it is mounted read-write,
then it must be that there is a file in the repository named the same as
the file you are trying to commit, but which has "," added to the
beginning and end of the filename. For example, assume you are
committing the file 'foo', then the error is about ',foo,' not being
able to be created.

> I read the help that says I should log as an administrator to unlock but
> there is no administrator declared on the repository. Should I manage an
> administrator profile ? How do I create it ? Could someone help me, please ?

You are the cvs administrator of this repository (ie, the individual
responsible for creating the repository). It is not necessarily talking
about the Windows priviledged account 'administrator' in this instance
(or at least I don't think it is, but you don't mention what help you
have read to lead you to believe this).

The error message is coming from the rcs.c file in the
rcs_internal_lockfile() function.

    rcs_lockfd = open (rcs_lockfile,
                       OPEN_BINARY | O_WRONLY | O_CREAT | O_EXCL | O_TRUNC,
                       S_IRUSR | S_IRGRP | S_IROTH);

    if (rcs_lockfd < 0)
    {
        error (1, errno, "could not open lock file `%s'", rcs_lockfile);
    }

the rcs_lockfile for a 'file,v' would be ',file,' so the error message
is telling you that for your commit of some 'file.c' it is not able to
create a ',file.c,' as a temporary location for your updated 'file.c,v'
because either one already exists in the repository or it has no
permissions to create one.

This mailing list is devoted to the cvshome.org version of cvs rather
than the WinCVS version. You may wish to contact the folks at cvsnt.org
concerning specific help for the WinCVS program.

        Good luck,
        -- Mark




reply via email to

[Prev in Thread] Current Thread [Next in Thread]