samba-bugs@samba.org
2005-Jan-03 01:01 UTC
[Bug 2208] New: rsync failed at random file with same error rsync: writefd_unbuffered failed to write 4 bytes: phase "unknown" [sender]: Connection reset by peer (104) rsync error: error in rsync protocol data stream (code 12) at /home/lapo/packaging/tmp/rsync-2.6.3/io.c(515)
https://bugzilla.samba.org/show_bug.cgi?id=2208 Summary: rsync failed at random file with same error rsync: writefd_unbuffered failed to write 4 bytes: phase "unknown" [sender]: Connection reset by peer (104) rsync error: error in rsync protocol data stream (code 12) at /home/lapo/packaging/tmp/rsync-2.6.3/io.c(515) Product: rsync Version: 2.6.3 Platform: x86 OS/Version: Windows XP Status: NEW Severity: major Priority: P3 Component: core AssignedTo: wayned@samba.org ReportedBy: michal.mu@seznam.cz QAContact: rsync-qa@samba.org client MS Win XP SP2 Cygwin 1.5.12 -> server Linux 2.4.27 both using rsync version 2.6.3 protocol version 28 clinet command: rsync.exe -r -t -v "/cygdrive/w/MuhlpachrM/My Documents/" michalm@emil::test client output: Password: building file list ... done ./ Bluetooth/ Default.rdp ... some directories and files ... Doc/Eurotel Internet.txt Doc/Exchange_2003_TechNet.ppt rsync: writefd_unbuffered failed to write 4 bytes: phase "unknown" [sender]: Connection reset by peer (104) rsync: read error: Connection reset by peer (104) rsync error: error in rsync protocol data stream (code 12) at /home/lapo/packaging/tmp/rsync-2.6.3/io.c(515) But server do not hangs connection, it waits for input and then timeout ocur. Server log: 2005/01/03 00:48:03 [23119] rsyncd version 2.6.3 starting, listening on port 873 2005/01/03 00:48:19 [23121] rsync to test from michalm@muhlpachr-n (192.168.0.3) 2005/01/03 00:48:20 [23121] ./ 2005/01/03 00:48:20 [23121] Bluetooth/ ... some directories and files ... 2005/01/03 00:48:21 [23121] recv muhlpachr-n [192.168.0.3] test (michalm) Doc/Eurotel Internet.txt 800 2005/01/03 00:58:21 [23121] rsync error: timeout in data send/receive (code 30) at io.c(153) 2005/01/03 00:58:21 [23121] rsync: connection unexpectedly closed (25858 bytes received so far) [generator] 2005/01/03 00:58:21 [23121] rsync error: error in rsync protocol data stream (code 12) at io.c(359) Server strace (diffrent session with same client hang): [pid 23247] write(3, "\6\0\0\tWRAP/\n", 10) = 10 [pid 23247] lstat64("WRAP/book.pdf", 0xbfffd810) = -1 ENOENT (No such file or directory) [pid 23247] lstat64("WRAP/tb13.pdf", 0xbfffd810) = -1 ENOENT (No such file or directory) [pid 23247] lstat64("WRAP/wrap1c.pdf", 0xbfffd810) = -1 ENOENT (No such file or directory) [pid 23247] lstat64("assistance.pdf", 0xbfffd810) = -1 ENOENT (No such file or directory) [pid 23247] lstat64("desktop.ini", 0xbfffd810) = -1 ENOENT (No such file or directory) [pid 23247] lstat64("map.bat", 0xbfffd810) = -1 ENOENT (No such file or directory) [pid 23247] lstat64("předání konsolidace ECH FUBAR.doc", 0xbfffd810) = -1 ENOENT (No such file or directory) [pid 23247] lstat64("refman-5.0.pdf", 0xbfffd810) = -1 ENOENT (No such file or directory) [pid 23247] lstat64("reg.reg", 0xbfffd810) = -1 ENOENT (No such file or directory) [pid 23247] lstat64("reg.txt", 0xbfffd810) = -1 ENOENT (No such file or directory) [pid 23247] lstat64("unison-2.10.2-manual.html", 0xbfffd810) = -1 ENOENT (No such file or directory) [pid 23247] lstat64("unison-2.10.2-manual.pdf", 0xbfffd810) = -1 ENOENT (No such file or directory) [pid 23247] lstat64("valc-4.asx", 0xbfffd810) = -1 ENOENT (No such file or directory) [pid 23247] select(4, NULL, [3], NULL, {60, 0}) = 1 (out [3], left {60, 0}) [pid 23247] write(3, "\10\1\0\7x\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0y\3\0\0"..., 268) = 268 [pid 23247] select(7, [6], [], NULL, {60, 0} <unfinished ...> [pid 23248] <... select resumed> ) = 0 (Timeout) [pid 23248] time(NULL) = 1104732886 [pid 23248] select(4, [3], [], NULL, {60, 0} <unfinished ...> [pid 23247] <... select resumed> ) = 0 (Timeout) [pid 23247] select(7, [6], [], NULL, {60, 0} <unfinished ...> [pid 23248] <... select resumed> ) = 0 (Timeout) [pid 23248] time(NULL) = 1104732946 ... same select/time calls repeated ... [pid 23248] select(4, [3], [], NULL, {60, 0} <unfinished ...> [pid 23247] <... select resumed> ) = 0 (Timeout) [pid 23247] select(7, [6], [], NULL, {60, 0} <unfinished ...> [pid 23248] <... select resumed> ) = 0 (Timeout) [pid 23248] time(NULL) = 1104733426 [pid 23248] rt_sigaction(SIGUSR1, {SIG_IGN}, {0x8052a70, [USR1], SA_RESTORER|SA_RESTART, 0x4006a678}, 8) = 0 [pid 23248] rt_sigaction(SIGUSR2, {SIG_IGN}, {0x8052aa0, [USR2], SA_RESTORER|SA_RESTART, 0x4006a678}, 8) = 0 [pid 23248] unlink("Directory/.ISE Czech organigramm.ppt.KiG34J") = 0 [pid 23248] getpid() = 23248 [pid 23248] write(7, "A\0\0\10rsync error: timeout in data"..., 69) = 69 Client exit approx 10 seconds after last file synchronized, server drop connection and exit after timeout (600 seconds). Same behaviour (same client error) ocurs while I am using ssh transport. The file at which transfer hangs is diffrent every time, but the error is same. Thanks for help and fix. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
Reasonably Related Threads
- DO NOT REPLY [Bug 3488] New: writefd_unbuffered failed to write 4096 bytes: phase "unknown" [generator]: Broken pipe (32)
- rsync: writefd_unbuffered failed to write 32768 bytes: phase "unknown": Broken pipe
- rsync: writefd_unbuffered failed to write 4 bytes [sender]: Broken pipe
- writefd_unbuffered failed to write 32768 bytes: phase "unknown"
- [Bug 1959] New: writefd_unbuffered failed to write 4092 bytes phase send_file_entry broken pipe