Uploaded image for project: 'Subversion'
  1. Subversion
  2. SVN-2673

'Can't unlock' error committing against a cifs-mounted (file://) repository

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.4.x
    • nonblocking
    • libsvn_ra_local
    • None
    • Linux

    Description

      Problem:
      ==========
      When trying to import a project, one gets:
      
      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
      
      This issue does not occure in version 1.3.2.
      
      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.
      
      attached are strace of the failed 'svn import' command and of the following
      successful 'rmdir /mnt/applic/repo/db/transactions/0-1.txn' command.
      

      http://subversion.tigris.org/servlets/ReadMsg?list=dev&msgNo=121995

      Original issue reported by yuvalaviel

      Attachments

        1. 1_strace_svn_import.txt
          46 kB
          Subversion Importer
        2. 2_strace_rmdir.txt
          2 kB
          Subversion Importer
        3. 3_locktest.c
          0.8 kB
          Subversion Importer
        4. 4_normal.txt
          2 kB
          Subversion Importer
        5. 5_cifs.txt
          2 kB
          Subversion Importer

        Activity

          People

            Unassigned Unassigned
            subversion-importer Subversion Importer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: