You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Yuval Aviel <yu...@mirageinnovations.com> on 2006/12/04 15:04:16 UTC

svn fails to import a project to a cifs-mounted repository

Hi,

I'd be grateful if someone can reproduce or confirm this bug.

I am trying to create and use a repository on a shared disk in our company.
I am using FC 6, and the rest of the company use Windows. 
The shared disk is a Windows shared NTFS partition, that I mount using cifs. 
Here is the line from /etc/fstab:

//miragesrv/applic      /mnt/applic             cifs    
user=yuvala,password=*****,uid=500,gid=500
,workgroup=MIRAGE              1 2

Problem:
==========
I can read/write/create/delete files/directories on this partition.
I can also easily create a repository:

svnadmin create /mnt/applic/repo

However, when I try to import a project, I get:

fresnel:wc > svn import /tmp/proj/ file:///mnt/applic/repo/ -m "initial 
import"
Adding         /tmp/proj/trunk
Adding         /tmp/proj/trunk/Tolerances
Adding         /tmp/proj/trunk/Tolerances/get_fun_ranges.m
svn: Can't unlock prototype revision lockfile for transaction '0-1': 
Permission denied

Analysis:
==========
Repeating the same steps on a local folder, finished successfully. So it is a 
file system issue.

I compared the two directories; that is on the cifs (/mnt/applic/repo) and the 
local one. It seems that the following directory is the problematic one:

fresnel:wc > ls -Rlt /mnt/applic/repo/db/transactions/
/mnt/applic/repo/db/transactions/:
total 0
drwxrwxrwx 1 aviel aviel 0 Nov 28 12:54 0-1.txn

/mnt/applic/repo/db/transactions/0-1.txn:
total 0

This directory does not exist in the local repository, so I assume it holds 
info of the transaction being made. 
Presumably, svn fails to delete/change this directory, even though all 
permissions and ownership are OK. I can confirm this by manually removing 
this directory.

Any suggestions?

svn 1.4.2, (FC 6 with a cifs mounted NTFS partition from a Windows Server )
-- 
Regards,
Yuval Aviel.
-------------------------
www.MirageInnovations.com
054 7-56-56-52
-------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: svn fails to import a project to a cifs-mounted repository

Posted by Yuval Aviel <yu...@mirageinnovations.com>.
On Tuesday 05 December 2006 2:14 am, Malcolm Rowe wrote:
> On Mon, Dec 04, 2006 at 05:04:16PM +0200, Yuval Aviel wrote:
> > I'd be grateful if someone can reproduce or confirm this bug.
>
> (as would I; any takers?)
>
> > The shared disk is a Windows shared NTFS partition, that I mount using
> > cifs. Here is the line from /etc/fstab:
> >
> > //miragesrv/applic      /mnt/applic             cifs
> > user=yuvala,password=*****,uid=500,gid=500
> > ,workgroup=MIRAGE              1 2
> >
> >
> >
> > fresnel:wc > svn import /tmp/proj/ file:///mnt/applic/repo/ -m "initial
> > import"
> > Adding         /tmp/proj/trunk
> > Adding         /tmp/proj/trunk/Tolerances
> > Adding         /tmp/proj/trunk/Tolerances/get_fun_ranges.m
> > svn: Can't unlock prototype revision lockfile for transaction '0-1':
> > Permission denied
>
> I can't imagine why we'd get a permission denied error while trying to
> unlock a file we've just locked.  Note that while this is new code for
> 1.4.2, we do the same file operations to manage locking for the fs-wide
> write-lock, so it should work just the same.
>
> Did 1.4.0 work okay?
>

Don't know for 1.4.0, but with 1.3.2 we have no such problems.

> > fresnel:wc > ls -Rlt /mnt/applic/repo/db/transactions/
> > /mnt/applic/repo/db/transactions/:
> > total 0
> > drwxrwxrwx 1 aviel aviel 0 Nov 28 12:54 0-1.txn
> >
> > /mnt/applic/repo/db/transactions/0-1.txn:
> > total 0
> >
> > This directory does not exist in the local repository, so I assume it
> > holds info of the transaction being made.
>
> That's right.  Strange that it's empty, since I would have expected that
> it'd either have files in it (such as the prototype revision lockfile,
> for one), or it'd have been deleted completely.  It's probable that we
> encountered another error when trying to clean up the transaction
> directory, so we left it alone.
>
> > Any suggestions?
>
> Yes - could you produce an strace of the failing 'svn import' command?
> That might give us a clue as to whether the problem is happening at the
> local or remote end.  To save the bandwidth of everyone on this list,
> could you open a new issue and upload the strace output as an
> attachment?
>

I opened an issue with two straces; one of the 'svn import' and the other of 
the following (successful) 'rmdir /.../0-1.txn.
Issue is in http://subversion.tigris.org/issues/show_bug.cgi?id=2673
> Thanks,
> Malcolm

-- 
Regards,
Yuval Aviel.
-------------------------
www.MirageInnovations.com
054 7-56-56-52
-------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: svn fails to import a project to a cifs-mounted repository

Posted by Malcolm Rowe <ma...@farside.org.uk>.
On Mon, Dec 04, 2006 at 05:04:16PM +0200, Yuval Aviel wrote:
> I'd be grateful if someone can reproduce or confirm this bug.
> 

(as would I; any takers?)

> The shared disk is a Windows shared NTFS partition, that I mount using cifs. 
> Here is the line from /etc/fstab:
> 
> //miragesrv/applic      /mnt/applic             cifs    
> user=yuvala,password=*****,uid=500,gid=500
> ,workgroup=MIRAGE              1 2
> 


> fresnel:wc > svn import /tmp/proj/ file:///mnt/applic/repo/ -m "initial 
> import"
> Adding         /tmp/proj/trunk
> Adding         /tmp/proj/trunk/Tolerances
> Adding         /tmp/proj/trunk/Tolerances/get_fun_ranges.m
> svn: Can't unlock prototype revision lockfile for transaction '0-1': 
> Permission denied
> 

I can't imagine why we'd get a permission denied error while trying to
unlock a file we've just locked.  Note that while this is new code for
1.4.2, we do the same file operations to manage locking for the fs-wide
write-lock, so it should work just the same.

Did 1.4.0 work okay?

> fresnel:wc > ls -Rlt /mnt/applic/repo/db/transactions/
> /mnt/applic/repo/db/transactions/:
> total 0
> drwxrwxrwx 1 aviel aviel 0 Nov 28 12:54 0-1.txn
> 
> /mnt/applic/repo/db/transactions/0-1.txn:
> total 0
> 
> This directory does not exist in the local repository, so I assume it holds 
> info of the transaction being made. 

That's right.  Strange that it's empty, since I would have expected that
it'd either have files in it (such as the prototype revision lockfile,
for one), or it'd have been deleted completely.  It's probable that we
encountered another error when trying to clean up the transaction
directory, so we left it alone.

> Any suggestions?
> 

Yes - could you produce an strace of the failing 'svn import' command?
That might give us a clue as to whether the problem is happening at the
local or remote end.  To save the bandwidth of everyone on this list,
could you open a new issue and upload the strace output as an
attachment?

Thanks,
Malcolm