[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

"Couldn't perform atomic initialization" with CIFS / svn 1.6.x: SOLVED

From: Ignacio González <igtorque_at_yahoo.es>
Date: Wed, 9 Mar 2011 16:01:33 +0000 (GMT)

I'm using CollabNet server binaries on a Linux (CentOS 5.5) virtual
machine. The repos are located in a Windows 2008 share, so I has
something like this in /etc/fstab:

//winserver/repo /opt/csvn/data/repositories cifs \
user=csvn,password=***,rw,uid=500,gid=500, \
dir_mode=0755,file_mode=0755 0 0

I decided to upgrade from svn 1.5.5 to svn 1.6.16 "the clean way":
making a new virtual machine more or less identical to the previous
one, installing the new svn binaries and testing the new setting.

Well, in the new virtual machine I can create new repositories,
but the first import "almost" failed:

C:\tmp>svn import test http://prusvn/svn/repo1/test -m"Import test"
Adding test\branches
...
Adding test\versions
svn: Couldn't perform atomic initialization

The import seems to have happened indeed (the repo is updated),
but surely something went wrong.

After this, any commit failed, with the same message:
svn: Couldn't perform atomic initialization

After googling I found some references to similar cases involving
CIFS mounts and svn 1.6.x, but without conclusive workarounds.

Well, I think I have found a solution: simply add nobrl to the
mounting options in fstab:

//winserver/repo /opt/csvn/data/repositories cifs \
nobrl,user=csvn,password=***,rw,uid=500,gid=500, \
dir_mode=0755,file_mode=0755 0 0

I have not tested it thoroughly, but until now it seems to work.
I hope this helps other people.

-- 
Ignacio González T.
      
Received on 2011-03-09 17:07:10 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.