rsync常见问题
2016-07-18 16:11
295 查看
Rsync configure:配置一:ignore errors说明:这个选项最好加上,否则再很多crontab的时候往往发生错误你也未可知,因为你不可能天天去看每时每刻去看log,不加上这个出现错误的几率相对会很高,因为任何大点的项目和系统,磁盘IO都是一个瓶颈 Rsync error: 错误一: @ERROR: auth failed on module xxxxx rsync: connection unexpectedly closed (90 bytes read sofar) rsync error: error in rsync protocol data stream (code 12) atio.c(150) 说明:这是因为密码设置错了,无法登入成功,检查一下rsync.pwd,看客服是否匹配。还有服务器端没启动rsync 服务也会出现这种情况,密码文件不对,还可能是600权限没有设置错误二: password file must not be other-accessible continuing without password file Password: 说明:这是因为rsyncd.pwd rsyncd.sec的权限不对,应该设置为600。如:chmod 600 rsyncd.pwd错误三: @ERROR: chroot failed rsync: connection unexpectedly closed (75 bytes read sofar) rsync error: error in rsync protocol data stream (code 12) atio.c(150) 说明:这是因为你在 rsync.conf 中设置的 path 路径不存在,要新建目录才能开启同步错误四: rsync: failed to connect to 218.107.243.2: No route to host(113) rsync error: error in socket IO (code 10) at clientserver.c(104)[receiver=2.6.9] 说明:防火墙问题导致,这个最好先彻底关闭防火墙,排错的基本法就是这样,无论是S还是C,还有ignore errors选项问题也会导致 错误五:@ERROR: accessdenied to www from unknown (192.168.1.123)rsync: connection unexpectedly closed (0 bytes received so far)[receiver]rsync error: error in rsync protocol data stream (code 12) atio.c(359)说明:此问题很明显,是配置选项hostallow的问题,初学者喜欢一个允许段做成一个配置,然后模块又是同一个,致使导致错误六:rsync error: receivedSIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(244) [generator=2.6.9]rsync error: received SIGUSR1 (code 19) at main.c(1182)[receiver=2.6.9]说明:导致此问题多半是服务端服务没有被正常启动,到服务器上去查查服务是否有启动,然后查看下 /var/run/rsync.pid文件是否存在,最干脆的方法是杀死已经启动了服务,然后再次启动服务或者让脚本加入系统启动服务级别然后shutdown -r now服务器错误七:rsync: read error:Connection reset by peer (104)rsync error: error in rsync protocol data stream (code 12) atio.c(604) [sender=2.6.9]说明:原数据目录里没有数据存在 错误八:@ERROR: chdirfailedrsync error: errorstarting client-server protocol (code 5) at main.c(1503) [receiver=3.0.6]检查一下密码文件的权限,服务端和客户端都要检查。检查服务端是否设置了setenforce 0 #@ERROR: chdir failed错误执行,或者文件目录不匹配(路径和大小写)
相关文章推荐
- 游戏测试---------------第6章
- 绑定IP和MAC地址提示ARP项添加失败拒绝访问
- 动画的显示与隐藏
- 全选 vue
- RTMPdump(libRTMP) 源代码分析 9: 接收消息(Message)(接收视音频数据)
- 使用jQuery的插件qrcode生成二维码(静态+动态生成)及常见问题解决方法
- css3属性 -webkit-filter
- 浅谈设计模式——对象的结构模式
- 下载单张图片到本地相册
- 检测内存泄漏malloc模块
- 遍历Map的六种方法
- Manipulating Galois Variables
- 第一次机房收费系统-回顾总结(一)
- RTMPdump(libRTMP) 源代码分析 8: 发送消息(Message)
- error=Error Domain=NSURLErrorDomain Code=-1003
- 认识createjs(二) Container容器及监听事件
- 计蒜客-程序设计竞赛入门
- cesiumjs开发实践 (七)
- Java-IO之Apache Commons IO(1)
- unity3d中上下左右键控制移动