[Errno 45] Operation not supported error with SMB mount on OSX
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
New
|
Undecided
|
Unassigned |
Bug Description
This is a similar bug to #31006 and #114528 but I'm not just using afp (like 114528) and I'm finding this error with bzr init (unlike 31006). I'm using the latest version of bzr at the time of writing (1.10) on OSX (10.5.6) with Python 2.5.1
To reproduce this error, if I try any bzr operations on a samba mounted volume (I've tested this on samba running on a Buffalo Linkstation Pro Duo NAS [linux] and on an Apple XServe mount over AFP and I get very similar error messages on both).
I get the following error ("Could not acquire lock"). In #31006 there is a suggestion that a similar issue to this was fixed for other bzr commands (not init) although I wasn't sure whether the fix had been released yet (maybe I should check a nightly build for this?)
FWIW: i installed mercurial on the same machine to see whether it was a more general python issue with OSX and SMB (for example); on both filesystems, hg init doesn't produce this error, so this might be an issue with bzr which is why I wanted to file a bug:
Steps to reproduce:
Go to a samba mounted device on OSX (tested with both smb:// and afp:// on 2 different servers with the same result)
$ bzr init testrepo
bzr: ERROR: Could not acquire lock "[Errno 45] Operation not supported"
/Library/
warn("lock on %r not released" % self.f)
Exception exceptions.IOError: (45, 'Operation not supported') in <bound method _fcntl_
/Library/
warnings.warn("%r was gc'd while locked" % self)
My bzr --version output:
Bazaar (bzr) 1.10
Python interpreter: /System/
Python standard library: /System/
bzrlib: /Library/
Bazaar configuration: /Users/
Bazaar log file: /Users/
The relevant section from ~/.bzr.log:
Sat 2009-01-03 20:59:57 -0600
0.930 bzr arguments: [u'init', u'testrepo']
1.035 looking for plugins in /Users/
1.035 looking for plugins in /Library/
1.856 bzr-svn: using Subversion 1.4.4 ()
4.247 encoding stdout as sys.stdout encoding 'UTF-8'
5.144 opening SVN RA connection to 'file:/
5.200 Unable to open <bzrlib.
7.278 opening SVN RA connection to 'file:/
7.291 Unable to open <bzrlib.
7.319 opening SVN RA connection to 'file:/
7.320 Unable to open <bzrlib.
7.331 opening SVN RA connection to 'file:///Volumes'
7.332 Unable to open <bzrlib.
7.335 opening SVN RA connection to 'file:'
7.337 creating repository in file://
9.616 creating branch <bzrlib.
11.683 trying to create missing lock '/Volumes/
11.832 Traceback (most recent call last):
File "/Library/
return run_bzr(argv)
File "/Library/
ret = run(*run_argv)
File "/Library/
return self.run(
File "/Library/
possible_
File "/Library/
bzrdir.
File "/Library/
accelerator
File "/Library/
state = dirstate.
File "/Library/
result.
File "/Library/
self.
File "/Library/
raise errors.
LockContention: Could not acquire lock "[Errno 45] Operation not supported"
11.911 return code 3
tags dirstate lock macos
duplicate 31006
Thanks for reporting this.
I think it is a recurrence of 31006, to which I'll add some more
information.
It should be possible to have file locks work over CIFS/SMB maybe by
changing a configuration setting - maybe you can find out how.
-- launchpad. net/~mbp>
Martin <http://