I don't remember whether or not you said you were running rsync over ssh but if you are you can also debug the ssh layer. You can even do it at both ends....
On the server run a debugging sshd on an alternate port with: /usr/sbin/sshd -dDp222 (note that this will only accept 1 connection, debug to the terminal, then exit) then on the client use rsync -e "ssh -vp222" to go verbose and use the debugging port. On 10/13/2016 08:05 PM, Kip Warner wrote: > On Thu, 2016-10-13 at 16:58 -0700, Wayne Davison wrote: >> No, that's totally expected. While select() is waiting for I/O to >> arrive, it returns to rsync every 60 seconds to allow it to decide if >> it wants to continue waiting or do something else. You have to find >> the process that is exiting first to discover why the connection is >> closing. This assumes that it's not a network issue, where all of the >> programs get a closed-connection >> error. > > Hey Wayne, > > I took Paul's advice and tried monitoring with lsof. This is what I > saw: > > $ lsof -p 3104 > COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME > rsync 3104 kip cwd DIR 0,19 4096 214695958 > /home/kip/Disk_Backups/kip-desktop/yakkety > rsync 3104 kip rtd DIR 179,2 4096 2 / > rsync 3104 kip txt REG 179,2 460584 7817 /usr/bin/rsync > rsync 3104 kip mem REG 179,2 42692 3974 > /lib/arm-linux-gnueabihf/libnss_files-2.13.so > rsync 3104 kip mem REG 179,2 71624 3971 > /lib/arm-linux-gnueabihf/libnsl-2.13.so > rsync 3104 kip mem REG 179,2 38608 3976 > /lib/arm-linux-gnueabihf/libnss_nis-2.13.so > rsync 3104 kip mem REG 179,2 26484 3972 > /lib/arm-linux-gnueabihf/libnss_compat-2.13.so > rsync 3104 kip mem REG 179,2 2953776 18967 > /usr/lib/locale/locale-archive > rsync 3104 kip mem REG 179,2 1216624 3965 > /lib/arm-linux-gnueabihf/libc-2.13.so > rsync 3104 kip mem REG 179,2 130448 41964 > /lib/arm-linux-gnueabihf/libgcc_s.so.1 > rsync 3104 kip mem REG 179,2 43024 10745 > /lib/arm-linux-gnueabihf/libpopt.so.0.0.0 > rsync 3104 kip mem REG 179,2 26240 1840 > /lib/arm-linux-gnueabihf/libacl.so.1.1.0 > rsync 3104 kip mem REG 179,2 17904 1854 > /lib/arm-linux-gnueabihf/libattr.so.1.1.0 > rsync 3104 kip mem REG 179,2 10170 28719 > /usr/lib/arm-linux-gnueabihf/libcofi_rpi.so > rsync 3104 kip mem REG 179,2 126236 3961 > /lib/arm-linux-gnueabihf/ld-2.13.so > rsync 3104 kip 1w FIFO 0,10 0t0 8455 pipe > rsync 3104 kip 2w FIFO 0,10 0t0 8456 pipe > rsync 3104 kip 3u unix 0xdbda86c0 0t0 8466 socket > > And on the strace... > > ... > 3104 select(4, [3], [1], [3], {60, 0}) = 1 (out [1], left {59, 999978}) > 3104 write(1, > "h\340\0\7\0y@\312\227\241\236\255\367\312\3637\323X\206\314\250\372\362P1\202\374\"i\265c\16"..., > 57452) = 57452 > 3104 select(4, [3], [], [3], {60, 0}) = 0 (Timeout) > (repeats above line until client (sender) reports connection timed out) > > Sender reports the following until it times out... > > ... > match at 32949141504 last_match=32949141504 j=251382 len=131072 n=0 > 32.95G 96% 83.55MB/s 0:00:12 > > > -- ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._., Kevin Korb Phone: (407) 252-6853 Systems Administrator Internet: FutureQuest, Inc. ke...@futurequest.net (work) Orlando, Florida k...@sanitarium.net (personal) Web page: http://www.sanitarium.net/ PGP public key available on web site. ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
signature.asc
Description: OpenPGP digital signature
-- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html