rsync rename operation not permitted with SSHFS
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
rsync |
Invalid
|
Medium
|
|||
rsync (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: rsync
I have a SSHFS mounted volume and when using rsync (ex: rsync -av /home/me/ /ssfsvolume) to copy files to this volume I receive the following error message:
rsync: rename "/home/
It appears to be related to some sort of permission problems related to either SSHFS or rsync in managing the file. In this case it appears rsync has named a temporary file to transmit the file and then it attempts to rename it to the correct name once it is copied and the error message occurs. There is already a file with that name on that volume in this case.
I don't know if the problem is some sort of compatibility with rsync or SSHFS - a permission problem or a configuration problem.
uname -a
Linux moerder 2.6.31-16-generic #53-Ubuntu SMP Tue Dec 8 04:01:29 UTC 2009 i686 GNU/Linux
lsb_release -rd
Description: Ubuntu 9.10
Release: 9.10
rsync --version
rsync version 3.0.6 protocol version 30
Copyright (C) 1996-2009 by Andrew Tridgell, Wayne Davison, and others.
Web site: http://
Capabilities:
64-bit files, 64-bit inums, 32-bit timestamps, 64-bit long ints,
socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace,
append, ACLs, xattrs, iconv, symtimes
rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you
are welcome to redistribute it under certain conditions. See the GNU
General Public Licence for details.
sshfs --version
SSHFS version 2.2
FUSE library version: 2.7.4
fusermount version: 2.7.4
using FUSE kernel interface version 7.8
Any suggestions?
Changed in rsync (Ubuntu): | |
status: | New → Invalid |
Changed in rsync: | |
status: | Unknown → Invalid |
Changed in rsync: | |
importance: | Unknown → Medium |
Some additional information:
I set up a simple test with more verbose output from rsync below. It seems that the rename fails but a copy would work. Don't know if that means it is something with SSHFS now or not. Is there a way to 'force' RSYNC to always copy a file?
rsync -avvvv $HOME/rtest/ $HOME/Net/rtest fred/Net/ rtest /home/fred/ Net/rtest file.two, *,2) file.one, *,2) Net/rtest file.one, 2) rtest/file. one) rtest/file. one of size 7 rtest/file. one rtest/file. one file.two, 3) rtest/file. two) rtest/file. two of size 4 rtest/file. two rtest/file. two file.one) fred/Net/ rtest/. file.one. S1dlNG" -> "file.one": Operation not permitted (1) file.two) fred/Net/ rtest/. file.two. DXXjW4" -> "file.two": Operation not permitted (1)
cmd=<NULL> machine=<NULL> user=<NULL> path=/home/
cmd[0]=. cmd[1]=
note: iconv_open("UTF-8", "UTF-8") succeeded.
(Client) Protocol versions: remote=30, negotiated=30
(Server) Protocol versions: remote=30, negotiated=30
sending incremental file list
[sender] make_file(.,*,0)
[sender] make_file(
[sender] make_file(
[sender] flist start=1, used=3, low=0, high=2
[sender] i=1 /home/fred/rtest ./ mode=040755 len=4096 uid=1000 gid=1000 flags=5
[sender] i=2 /home/fred/rtest file.one mode=0100644 len=7 uid=1000 gid=1000 flags=0
[sender] i=3 /home/fred/rtest file.two mode=0100644 len=4 uid=1000 gid=1000 flags=0
send_file_list done
file list sent
send_files starting
server_recv(2) starting pid=8128
received 3 names
[receiver] flist start=1, used=3, low=0, high=2
[receiver] i=1 0 ./ mode=040755 len=4096 gid=1000 flags=5
[receiver] i=2 1 file.one mode=0100644 len=7 gid=1000 flags=0
[receiver] i=3 1 file.two mode=0100644 len=4 gid=1000 flags=0
recv_file_list done
get_local_name count=3 /home/fred/
generator starting pid=8128
delta-transmission disabled for local transfer or --whole-file
recv_generator(.,0)
recv_files(3) starting
send_files(0, /home/fred/rtest/.)
recv_generator(.,1)
recv_generator(
send_files(2, /home/fred/
count=0 n=0 rem=0
send_files mapped /home/fred/
calling match_sums /home/fred/
file.one
sending file_sum
false_alarms=0 hash_hits=0 matches=0
sender finished /home/fred/
recv_generator(
recv_files(.)
send_files(3, /home/fred/
count=0 n=0 rem=0
send_files mapped /home/fred/
calling match_sums /home/fred/
file.two
sending file_sum
false_alarms=0 hash_hits=0 matches=0
sender finished /home/fred/
recv_files(
generate_files phase=1
recv mapped file.one of size 6
data recv 7 at 0
got file_sum
set modtime of .file.one.S1dlNG to (1262142762) Tue Dec 29 22:12:42 2009
renaming .file.one.S1dlNG to file.one
rsync: rename "/home/
recv_files(
recv mapped file.two of size 4
data recv 4 at 0
got file_sum
set modtime of .file.two.DXXjW4 to (1262142749) Tue Dec 29 22:12:29 2009
renaming .file.two.DXXjW4 to file.two
rsync: rename "/home/
send_files phase=1
touch_up_dirs: . (0)
set modtime of . to (1262142781) Tue Dec 29 22:13:01 2009
recv_files phase=1
generate_files phase=2
send_files phase=2
send files finished
total: matches=0 hash_hits=0 false_alarms=0 data=11
recv_files phase=2
generate_files phase=3
recv_files finished
generate_files finished
client_run waiting on 8128
sent 179 bytes received 53 bytes 464.00 bytes/sec
total size is 11 speedup is 0.05
_...