can't PUSH over an sshfs fuse file share
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
bazaar is a terrific design, but this bug almost caused me to abandon my plans to use it, drove me totally raving bonkers :-) trying to isolate the problem. The symptom is that ~apparently at random~, it fails to do a push.
os = gentoo.
bazaar = 1.0 installed from tarball because gentoo is not up to date
paramiko = 1.6.3
sshfs-fuse = 1.6
Because of bug 183705 authentication.conf I decided to use fuse to access/create a central store on another server. I use fuse all the time for other purposes and have found it to be reliable.
#Establish the connection
mkdir -p /virt/svr1
sshfs <email address hidden>:/some/path/ /virt/svr1
password = ~~~~~~
#Create a branch with some files in it and commit them, then do
bzr push --remember --create-prefix /virt/svr1/
Result: bzr: ERROR: [Errno 1] Operation not permitted
Partial contents do get written, but it's invalid. This error repro's 100% of the time, what caused me to view it as random is that I was also pushing via sftp (works) and also via cifs (works, see below).
on irc people suggested that it was a permissions problem, however I made the connection as root just to ensure that permissions would not be a factor.
Now what really drove me nuts is that I also have a samba cifs connection to a shared folder on a windows computer and it works fine over there, thus making it very hard to discern why the apparently random failures.
#install samba cifs....
mkdir -p /virt/svr2
mount -t cifs //server/share /virt/svr2 -o "password=
bzr push --remember --create-prefix /virt/svr2/
Result: no errors, the branch is created
I don't know why the cifs share works, but the one thing that I noticed about the push is that if I use a symbolic link it resolves that link to an absolute path name --- use bzr info to see this. Just as a wild guess, what I suspect is happening is that sometimes it is seeing the fuse mapped share and sometimes it is seeing the underlying mount point instead. I checked the mount point and it is empty.
Changed in bzr: | |
status: | New → Won't Fix |
just spotted this bug 32669 it's probably related.
why is urlutils. local_path_ to_url( ) doing a normpath ?? and does it deal properly with fuse points?