#875813 rsync: missed "Number of deleted files"

Package:
rsync
Source:
rsync
Description:
fast, versatile, remote (and local) file-copying tool
Submitter:
max
Date:
2017-09-16 21:57:08 UTC
Severity:
normal
#875813#5
Date:
2017-09-14 18:19:50 UTC
From:
To:
Dear Maintainer,

I using sshpass -p password rsync -vrz source1 source2 -e ssh user@ip:dest

works but in the output of rsync "Number of deleted files:" is missed

using rsync in tradition way: rsync source dest the output is correct

thanks

Pol

#875813#10
Date:
2017-09-14 18:32:31 UTC
From:
To:
Hi,

Please try to show *exact* commands with the corresponding output.
Best case scenario is if you could present a script that reproduces the
problem so that it takes the guesswork out of the equation for me.


Thanks
Paul

#875813#15
Date:
2017-09-14 18:51:16 UTC
From:
To:
 > Please try to show *exact* commands with the corresponding output.

sshpass -p password rsync -vrz /mnt/data0 -e ssh user@ip:data0

Number of files: 1 (dir: 1)
Number of created files: 0
Number of regular files transferred: 0
Total file size: 0 bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 35
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 74
Total bytes received: 53

sent 74 bytes  received 53 bytes  254.00 bytes/sec
total size is 0  speedup is 0.00

Output of rsync missed this line:

"Number of deleted files: 0"

Thanks

Pol

#875813#20
Date:
2017-09-14 19:04:41 UTC
From:
To:
give a script that reproduces the problem.


thanks,
Paul

#875813#25
Date:
2017-09-14 19:07:58 UTC
From:
To:
--stats --delete --size-only -vrz "/data" -e ssh root@$IP:data/ 2> 
/tmp/rsync-error >> $EXTLOG

cat $EXTLOG

Number of files: 1 (dir: 1)
Number of created files: 0
Number of regular files transferred: 0
Total file size: 0 bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 35
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 74
Total bytes received: 53

sent 74 bytes  received 53 bytes  254.00 bytes/sec
total size is 0  speedup is 0.00

Max

#875813#30
Date:
2017-09-14 19:38:28 UTC
From:
To:
Unfortunately I still cannot reproduce this:

$ mkdir /tmp/data
$ sshpass -p $PASS rsync --timeout=30 --bwlimit=10 --log-file=/tmp/rsync-log --stats --delete --size-only -vrz /tmp/data -e ssh root@localhost:data/ 2> /tmp/rsync-error >> /tmp/rsync-stdout
$ cat /tmp/rsync-stdout
sending incremental file list
created directory data
data/

Number of files: 1 (dir: 1)
Number of created files: 1 (dir: 1)
Number of deleted files: 0
Number of regular files transferred: 0
Total file size: 0 bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 0
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 55
Total bytes received: 54

sent 55 bytes  received 54 bytes  72.67 bytes/sec
total size is 0  speedup is 0.00


Rerunning the command (to match your output of the directory already
being created) gives:

Number of files: 1 (dir: 1)
Number of created files: 0
Number of deleted files: 0
Number of regular files transferred: 0
Total file size: 0 bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 0
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 52
Total bytes received: 28

sent 52 bytes  received 28 bytes  160.00 bytes/sec
total size is 0  speedup is 0.00



Does the stderr or the log-file contain anything relevant?


Paul

#875813#35
Date:
2017-09-14 19:41:48 UTC
From:
To:
no errors or warning :/

which version of rsync you used?
seems that the problem is with Debian old stable

I've to check it

Max
(sent from mobile)

#875813#40
Date:
2017-09-14 19:48:36 UTC
From:
To:
My versions are basically the same as yours:

base-files          10
init-system-helpers 1.49
libacl1:amd64       2.2.52-3+b1
libattr1:amd64      1:2.4.47-2+b2
libattr1:i386       1:2.4.47-2+b2
libc6:amd64         2.24-17
libc6:i386          2.24-17
libpopt0:amd64      1.16-10+b2
lsb-base            9.20161125
openssh-client      1:7.5p1-10
openssh-server      1:7.5p1-10
rsync               3.1.2-2
sshpass             1.06-1


Paul

#875813#45
Date:
2017-09-16 14:51:21 UTC
From:
To:
what else can I do?

I tried delete-during, delete-before, etc
same problem

Max

#875813#50
Date:
2017-09-16 15:09:50 UTC
From:
To:
Ok, the problem happens only with sshdroid (android ssh server
application). With other pc clients everything ok :)

well, is it a bug of rsync or of sshdroid?

thanks

Max

#875813#55
Date:
2017-09-16 21:54:38 UTC
From:
To:
You could try using strace on the rsync process to see if it actually
does emit the missing line; if so, rsync can hardly be held to blame.

It would be a curiously specific error in sshdroid though. Am I to
understand that you are running rsync on an android system and
connecting to it via this sshdroid? Might it then not be a problem in
the rsync running on the android, that it does not pass this info?

Please test it yourself with rsync running on debian at both ends,
I'm confident that then there it no problem, and hence there's nothing
Debian can do to fix this.


Paul