码迷,mamicode.com
首页 > 其他好文 > 详细

rsyn常见错误总结--方便用于排错

时间:2016-01-11 16:36:10      阅读:535      评论:0      收藏:0      [点我收藏+]

标签:排错用 rsync

rsyn常见错误总结--方便用于排错

下面是rsyncd.conf的配置:

#########zhaofanrsync########

uid = rsync

gid = rsync

use chroot =no

maxconnections = 200

timeout = 300

pid file =/var/run/rsyncd.pid

lock file =/var/run/rsync.lock

log file =/var/log/rsyncd.log

[zhaofan]

path = /zhaofan/

ignore errors

read only =false

list = false

hosts allow =192.168.1/0/24

hosts deny =0.0.0.0/32

auth users =rsync_backup

secrets file= /etc/rsync.password

#########zhaofanrsync########

1、当服务端zhaofan共享目录被误删除了,会提示的错误信息:

@ERROR: chdir failed

rsync error: error starting client-server protocol (code5) at main.c(1503) [receiver=3.0.6]

[root@ru data]#

2、当服务端的密码文件/etc/rsync.password的权限过大时,出现的错误信息提示:(建议设置成600)

@ERROR: auth failed on module zhaofan

rsync error: error starting client-server protocol (code5) at main.c(1503) [receiver=3.0.6]

[root@ru data]#

日志

2016/01/09 11:34:23 [28176] params.c:Parameter() -Ignoring badly formed line in configuration file: ignore errors

2016/01/09 11:34:23 [28176] name lookup failed for192.168.1.101: Temporary failure in name resolution

2016/01/09 11:34:23 [28176] connect from UNKNOWN(192.168.1.101)

2016/01/09 11:34:23 [28176] malformed mask in192.168.1/0/24

2016/01/09 11:34:23 [28176] secrets file must not be other-accessible(see strict modes option)

2016/01/09 11:34:23 [28176] continuing without secretsfile

2016/01/09 11:34:23 [28176] auth failed on modulezhaofan from unknown (192.168.1.101): missing secret for user"rsync_backup"

[root@fan /]#

3、当服务端的配置文件中关于模块部分出现错误时:

例如下面:本应是zhaofan误写为zhaofn

#########zhaofanrsync########

uid = rsync

gid = rsync

use chroot =no

maxconnections = 200

timeout = 300

pid file =/var/run/rsyncd.pid

lock file =/var/run/rsync.lock

log file =/var/log/rsyncd.log

[zhaofn]

path = /zhaofan/

ignore errors

read only =false

list = false

hosts allow =192.168.1/0/24

hosts deny =0.0.0.0/32

auth users =rsync_backup

secrets file= /etc/rsync.password

#########zhaofanrsync########

 

@ERROR: Unknown module ‘zhaofan‘

rsync error: error starting client-server protocol (code5) at main.c(1503) [receiver=3.0.6]

[root@ru data]#

4、当配置文件的共享目录错误时path = /zhaofan/:

@ERROR: chdir failed

rsync error: error starting client-server protocol (code5) at main.c(1503) [receiver=3.0.6]

[root@ru data]#

5、当服务端防火墙打开时,会出现的错误信息

rsync: failed to connect to 192.168.1.100: No route tohost (113)

rsync error: error in socket IO (code 10) atclientserver.c(124) [receiver=3.0.6]

[root@ru data]#


本文出自 “8703732” 博客,请务必保留此出处http://8713732.blog.51cto.com/8703732/1733803

rsyn常见错误总结--方便用于排错

标签:排错用 rsync

原文地址:http://8713732.blog.51cto.com/8703732/1733803

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!