佛系程序员
首页
栏目
标签
归档
关于
友链
佛系程序员
首页
栏目
标签
归档
友链
关于
rsync错误: writefd_unbuffered failed to write 4 bytes to socket [sender]: Broken pipe (32)
Linux
技术开发
发布日期: 2023-06-29 14:00:27
喜欢量: 54 个
阅读次数:
1243
执行服务器中的rsyncd时,发现卡住了。查看日志,里面是这样的:<br...
执行服务器中的rsyncd时,发现卡住了。查看日志,里面是这样的:<br>2023/06/26 23:48:36 [63035] rsync: writefd_unbuffered failed to write 4 bytes to socket [sender]: Broken pipe (32) 2023/06/26 23:48:36 [63035] rsync: connection unexpectedly closed (12474414 bytes received so far) [sender] 2023/06/26 23:48:36 [63035] rsync error: unexplained error (code 255) at io.c(600) [sender=3.0.6] 2023/06/27 01:01:03 [65443] rsync: connection unexpectedly closed (0 bytes received so far) [sender] 2023/06/27 01:01:03 [65443] rsync error: unexplained error (code 255) at io.c(600) [sender=3.0.6] 2023/06/28 01:01:03 [99402] rsync: connection unexpectedly closed (0 bytes received so far) [sender] 2023/06/28 01:01:03 [99402] rsync error: unexplained error (code 255) at io.c(600) [sender=3.0.6] 2023/06/29 01:01:03 [36581] rsync: connection unexpectedly closed (0 bytes received so far) [sender] 2023/06/29 01:01:03 [36581] rsync error: unexplained error (code 255) at io.c(600) [sender=3.0.6] 2023/06/29 13:25:11 [51575] building file list<br><br><div>在网上找到一篇文章里写的:</div><div><br></div><div>1)日志文件越大,越有可能发生上述错误</div><div><br></div><div>2)rsync并发数量越多,越有可能发生上述错误</div><div><br></div><div>针对上述两个规律,对同步程序进行了一些改动:</div><div><br></div><div>1)将同步线程的sleep时间修改为随机值</div><div><br></div><div>2)缩短日志同步间隔</div><div><br></div><div>3)修改ssh加密算法</div><div><br></div><div>4)延长rsync命令超时时间</div><div><br></div><div>于是我检查发现日志文件已达到198M,删除日志文件,问题就解决了。</div><div><br></div><div>参考文章:https://blog.csdn.net/azhao_dn/article/details/7073931</div>
文章作者:
yyii
文章链接:
https://amtb.info/show/MzU=
版权声明:
本博客所有文章除特別声明外,转载请注明来源
佛系程序员
!
分享:
搜索