Page 1 of 1

Cannot Commit to CVS Server

Posted: Fri Aug 20, 2010 5:22 pm
by CampinCarl
Hey guys, I didn't know where to put this so I just decided the Dev. Den would work well.

Preface Information: Communicating over wireless to an old computer, running Xubuntu 10.04 and CVS via Pserver authentication on CVS version 1.12.13 client/server. Working on my Dell Laptop using Eclipse and Java is the language of choice in this case.

After my initial tribulations with Xubuntu (I ended up just buying a PCI Wireless NIC and using it, which works fine), I have been using the machine fine and dandy ever since.

However, recently (last couple of days), I have been unable to commit any changes to the CVS repositories. I can import projects, replace from head, etc., but any sort of write operations don't seem to work. The procedure hangs on "Receiving Server Response". I let it go for an hour at one point just to see what would happen, and it didn't budge an inch. I've been logging in as an anon user, and cvs owns all the folders for read, write, and execute, in the repos folder (all 4 show drwxrwxr -x).

The projects are not large, perhaps 4MB. I have even tried importing HEAD into a new project, making small changes...still nothing. I tried creating a new text file in an existing branch of the project, but outside of any packages, and committing that and it worked. A similar text file created inside of a package failed, however.

So it leads me to believe there is some problem with writing to the folders inside the project packages. However...what it is, or how to fix it, I have noooo clue. So I was wondering if any of all the knowledgeable gerbils here had any idea on how to fix this?

Re: Cannot Commit to CVS Server

Posted: Fri Aug 20, 2010 7:38 pm
by notfred
It's going to be somewhere in the CVS permissions rather than the networking side of things - a CVS read will do sends and receives just like a CVS write - just a different proportion of each. Sorry I can't help more on CVS itself, I use Clearcase at work and SVN for my home projects.

Re: Cannot Commit to CVS Server

Posted: Tue Aug 24, 2010 12:00 am
by CampinCarl
I figured it out. Somehow, during a commit, the connection was severed at one point in mid-commit, and so all of the files were still locked. For some reason, it wouldn't unlock them (even after a period of days). You'd think it would check the timestamp and remove write locks after a couple days, but I guess not. I just deleted all the lock files and everything worked great.

Took some digging to figure this out though; I didn't even know CVS used lock files :oops:

Re: Cannot Commit to CVS Server

Posted: Tue Aug 24, 2010 7:09 am
by just brew it!
CampinCarl wrote:
I figured it out. Somehow, during a commit, the connection was severed at one point in mid-commit, and so all of the files were still locked. For some reason, it wouldn't unlock them (even after a period of days). You'd think it would check the timestamp and remove write locks after a couple days, but I guess not. I just deleted all the lock files and everything worked great.

Took some digging to figure this out though; I didn't even know CVS used lock files :oops:

Just one of the many reasons that CVS is considered to be obsolete...