最初传输约 56KB 后突然rsync (3.1.0 client, 3.0.1 server)
开始间歇性失败。当我继续尝试相同的命令时,它最终成功了。Ping 和其他网络测试看起来正常。结果如下:
alecm@dev2 ~/im/push> rsync -rlptcz --exclude="config.*" --exclude=logs --exclude=weblogs --exclude=red5 --exclude="start_server.sh" --exclude=keys --exclude="stop_server.sh" --exclude="robots.txt" --exclude="livepush.cfg" --exclude="command_pipe" --delete --force --stats -e ssh $BUILDDIR/im $PUSH_HOST:/nail/push
rsync: [sender] write error: Broken pipe (32)
rsync: connection unexpectedly closed (56591 bytes received so far) [generator]
rsync error: error in rsync protocol data stream (code 12) at io.c(359)
rsync error: error in rsync protocol data stream (code 12) at io.c(837) [sender=3.1.0]
继续尝试直到最终成功:
alecm@dev2 ~/im/push> rsync -rlptcz --exclude="config.*" --exclude=logs --exclude=weblogs --exclude=red5 --exclude="start_server.sh" --exclude=keys --exclude="stop_server.sh" --exclude="robots.txt" --exclude="livepush.cfg" --exclude="command_pipe" --delete --force --stats -e ssh $BUILDDIR/im $PUSH_HOST:/nail/push
Number of files: 1,488 (reg: 1,394, dir: 94)
Number of regular files transferred: 182
Total file size: 41,240,607 bytes
Total transferred file size: 4,080,560 bytes
Literal data: 2,073,945 bytes
Matched data: 2,006,615 bytes
File list size: 0
File list generation time: 0.122 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 2,090,800
Total bytes received: 22,468
验证是否成功:
alecm@dev2 ~/im/push> rsync -rlptcz --exclude="config.*" --exclude=logs --exclude=weblogs --exclude=red5 --exclude="start_server.sh" --exclude=keys --exclude="stop_server.sh" --exclude="robots.txt" --exclude="livepush.cfg" --exclude="command_pipe" --delete --force --stats -e ssh $BUILDDIR/im $PUSH_HOST:/nail/push
Number of files: 1,488 (reg: 1,394, dir: 94)
Number of regular files transferred: 0
Total file size: 41,240,607 bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 0
File list generation time: 0.116 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 56,595
Total bytes received: 16
sent 56,595 bytes received 16 bytes 16,174.57 bytes/sec
total size is 41,240,607 speedup is 728.49
直到最近,它都正常工作,无需任何更改或更新。我注意到它总是在发送大约 56591 个字节时失败,但在它成功并且我验证所有内容都已同步后,它显示的内容大致相同Total bytes sent: 56,595
。