Hi again,

> […]
> Because of the "errors with program diagnostics" I would have expected
> more messages...
> 
> It would be most helpful if you could follow the instructions on
> https://rsync.samba.org/issues.html especially de second half of
> question 3.

So I did:

sh-5.0$ rsync -vvv --rsh=ssh --rsync-path=/usr/bin/rsync --numeric-ids --perms 
--owner --group -D --links --hard-links --times --block-size=2048 --recursive 
--one-file-system root@localhost:/var/lib/lxc /mnt/testrsync/ 
>/mnt/testrsync/stdout2.txt 2>/mnt/testrsync/stderr2.txt
sh-5.0$ echo $?
13

With the following results:

— begin stderr2.txt
rsync error: errors with program diagnostics (code 13) at log.c(245) 
[receiver=3.2.3]
rsync: [generator] write error: Broken pipe (32)
— end stderr2.txt

— tail of stdout2.txt
recv_generator(lxc/nextcloud/rootfs/var/backups/nextcloud-confbkp_20200119/extra-apps/groupfolders/l10n/sr.js,519849)
recv_generator(lxc/nextcloud/rootfs/var/backups/nextcloud-confbkp_20200119/extra-apps/groupfolders/l10n/sr.json,519850)
recv_generator(lxc/nextcloud/rootfs/var/backups/nextcloud-confbkp_20200119/extra-apps/groupfolders/l10n/sv.js,519851)
recv_generator(lxc/nextcloud/rootfs/var/backups/nextcloud-confbkp_20200119/extra-apps/groupfolders/l10n/sv.json,519852)
recv_generator(lxc/nextcloud/rootfs/var/backups/nextcloud-confbkp_20200119/extra-apps/groupfolders/l10n/tr.js,519853)
recv_generator(lxc/nextcloud/rootfs/var/backups/nextcloud-confbkp_20200119/extra-apps/groupfolders/l10n/tr.json,519854)
recv_generator(lxc/nextcloud/rootfs/var/backups/nextcloud-confbkp_20200119/extra-apps/groupfolders/l10n/uz.js,519855)
recv_generator(lxc/nextcloud/rootfs/var/backups/nextcloud-confbkp_20200119/extra-apps/groupfolders/l10n/uz.json,519856)
recv_generator(lxc/nextcloud/rootfs/var/backups/nextcloud-confbkp_20200119/extra-apps/groupfolders/l10n/zh_CN.js,519857)
recv_generator(lxc/nextcloud/rootfs/var/backups/nextcloud-confbkp_20200119/extra-apps/groupfolders/l10n/zh_CN.json,519858)
recv_generator(lxc/nextcloud/rootfs/var/backups/nextcloud-confbkp_20200119/extra-apps/groupfolders/l10n/zh_TW.js,519859)
recv_generator(lxc/nextcloud/rootfs/var/backups/nextcloud-confbkp_20200119/extra-apps/groupfolders/l10n/zh_TW.json,519860)
[receiver] _exit_cleanup(code=13, file=log.c, line=245): about to call exit(13)
[generator] _exit_cleanup(code=13, file=io.c, line=1644): about to call exit(13)
— end of stdout2.txt

— tail of sender-side strace
244242 12:26:26 select(2, [0], [1], [0], {tv_sec=60, tv_usec=0}) = 1 (out [1], 
left {tv_sec=59, tv_usec=999998})
244242 12:26:26 write(1, "\4\200\0\7\364\207\237\312\235\2176X\312\217m\t"..., 
32776) = 32776
244242 12:26:26 select(2, [0], [1], [0], {tv_sec=60, tv_usec=0}) = 1 (out [1], 
left {tv_sec=59, tv_usec=999999})
244242 12:26:26 write(1, "\4\200\0\7\370\37H\305,s\333G42,\261:\"..., 32776) = 
24584
244242 12:26:26 select(2, [0], [1], [0], {tv_sec=60, tv_usec=0}) = 2 (in [0], 
out [1], left {tv_sec=34, tv_usec=971695})
244242 12:26:51 read(0, "", 13405)      = 0
244242 12:26:51 select(2, [], [1], [], {tv_sec=60, tv_usec=0}) = 1 (out [1], 
left {tv_sec=59, tv_usec=999995})
244242 12:26:51 write(1, "u\226A\256\337\231\325\366\242"..., 8192) = -1 EPIPE 
(Datenübergabe unterbrochen (broken pipe))
244242 12:26:51 --- SIGPIPE {si_signo=SIGPIPE, si_code=SI_USER, si_pid=244242, 
si_uid=0} ---
244242 12:26:53 write(2, "rsync: [sender] write error: Broken pipe (32)\n", 46) 
= -1 EPIPE (Datenübergabe unterbrochen (broken pipe))
244242 12:26:53 --- SIGPIPE {si_signo=SIGPIPE, si_code=SI_USER, si_pid=244242, 
si_uid=0} ---
244242 12:26:53 rt_sigaction(SIGUSR1, {sa_handler=SIG_IGN, sa_mask=[], 
sa_flags=SA_RESTORER, sa_restorer=0x7f563bcb3e30}, NULL, 8) = 0
244242 12:26:53 rt_sigaction(SIGUSR2, {sa_handler=SIG_IGN, sa_mask=[], 
sa_flags=SA_RESTORER, sa_restorer=0x7f563bcb3e30}, NULL, 8) = 0
244242 12:26:53 write(2, "rsync error: errors with program diagnostics (code 
13) at log.c(245) [sender=3.2.3]\n", 84) = -1 EPIPE (Datenübergabe unterbrochen 
(broken pipe))
244242 12:26:53 --- SIGPIPE {si_signo=SIGPIPE, si_code=SI_USER, si_pid=244242, 
si_uid=0} ---
244242 12:26:53 rt_sigaction(SIGUSR1, {sa_handler=SIG_IGN, sa_mask=[], 
sa_flags=SA_RESTORER, sa_restorer=0x7f563bcb3e30}, NULL, 8) = 0
244242 12:26:53 rt_sigaction(SIGUSR2, {sa_handler=SIG_IGN, sa_mask=[], 
sa_flags=SA_RESTORER, sa_restorer=0x7f563bcb3e30}, NULL, 8) = 0
244242 12:26:53 write(2, "[sender] _exit_cleanup(code=13, file=log.c, 
line=245): about to call exit(13)\n", 78) = -1 EPIPE (Datenübergabe 
unterbrochen (broken pipe))
244242 12:26:53 --- SIGPIPE {si_signo=SIGPIPE, si_code=SI_USER, si_pid=244242, 
si_uid=0} ---
244242 12:26:53 rt_sigaction(SIGUSR1, {sa_handler=SIG_IGN, sa_mask=[], 
sa_flags=SA_RESTORER, sa_restorer=0x7f563bcb3e30}, NULL, 8) = 0
244242 12:26:53 rt_sigaction(SIGUSR2, {sa_handler=SIG_IGN, sa_mask=[], 
sa_flags=SA_RESTORER, sa_restorer=0x7f563bcb3e30}, NULL, 8) = 0
244242 12:26:53 clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=0, 
tv_nsec=100000000}, 0x7fff8399a960) = 0
244242 12:26:53 exit_group(13)          = ?
244242 12:26:53 +++ exited with 13 +++
— end of strace
Note I drastically shortened the content of the write(1, …) commands in the 
same style they were shortened anyway; guess it is just file content.

I must admit that I’m none the wiser. The sending half obviously wanted to 
write exactly the same diagnostic as the receiving half did ("errors with 
program diagnostics (code 13)“) - but couldn’t because the communication pipe 
was already broken. It looks as if the sending side was unexpectedly struck 
from the receiving side closing the connection. Whereas the receiving side 
doesn’t seem to give any indication of what is going wrong apart from that 
somewhat generic message.

Hope this helps anyway!

Best regards,
Andreas.

Reply via email to