Cannot Commit to CVS Server

From Visual Basic to GNU C, this is the place to talk programming.

Moderators: SecretSquirrel, just brew it!

Cannot Commit to CVS Server

Postposted on Fri Aug 20, 2010 5:22 pm

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?
Gigabyte Z77-DS3H | Core i7 3770 | 2x8 GB Crucial Ballistix DDR3-1600| Samsung 830 128GB SSD | Gigabyte HD7950 3GB | Win 7 Pro x86-64
CampinCarl
Graphmaster Gerbil
 
Posts: 1321
Joined: Mon Jul 04, 2005 9:53 pm

Re: Cannot Commit to CVS Server

Postposted on Fri Aug 20, 2010 7:38 pm

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.
notfred
Grand Gerbil Poohbah
 
Posts: 3775
Joined: Tue Aug 10, 2004 10:10 am
Location: Ottawa, Canada

Re: Cannot Commit to CVS Server

Postposted on Tue Aug 24, 2010 12:00 am

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:
Gigabyte Z77-DS3H | Core i7 3770 | 2x8 GB Crucial Ballistix DDR3-1600| Samsung 830 128GB SSD | Gigabyte HD7950 3GB | Win 7 Pro x86-64
CampinCarl
Graphmaster Gerbil
 
Posts: 1321
Joined: Mon Jul 04, 2005 9:53 pm

Re: Cannot Commit to CVS Server

Postposted on Tue Aug 24, 2010 7:09 am

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...
(this space intentionally left blank)
just brew it!
Administrator
Gold subscriber
 
 
Posts: 38128
Joined: Tue Aug 20, 2002 10:51 pm
Location: Somewhere, having a beer


Return to Developer's Den

Who is online

Users browsing this forum: No registered users and 2 guests