1 @ERRPR:chdirfailed 服务器端没有提供访问的目录 /backup ,需要在服务器端创建,并赋予权限rsync管理权限 mkdir /backup chown -R rsync.rsync /backup/ 2 @ERROR: auth failed on module backup 查看 服务端/etc/rsync.password 配置文件是否有问题 比如: 多余的空格 空行 3 @ERROR:invalid uid rsync 不可用的uid useradd rsync -s /sbin/nologin -M 4 @ERROR: chroot failed rsync error: error starting client-serverprotocol (code 5) at main.c(1522) [receiver=3.0.3] 服务器端的目录不存在或无权限,创建目录并修正权限可解决问题。 5 @ERROR: auth failed on module tee rsync error: error starting client-serverprotocol (code 5) at main.c(1522) [receiver=3.0.3] 服务器端该模块(tee)需要验证用户名密码,但客户端没有提供正确的用户名密码,认证失败。 提供正确的用户名密码解决此问题。 6 @ERROR: Unknown module ‘tee_nonexists' rsync error: error starting client-serverprotocol (code 5) at main.c(1522) [receiver=3.0.3] 服务器不存在指定模块。提供正确的模块名或在服务器端修改成你要的模块以解决问题。 7 rsync:--passwork-file=/etc/rsync.password: unknown option rsync error: syntax or usage error (code 1)at main.c(1422) [client=3.0.6] 密码文件名称写错了。。。。(本人写错文件名称了。。) 8 网络收集问题 实例 磁盘问题 rsync: write failed on"/home/backup2010/wensong": No space left on device (28) rsync error: error in file IO (code 11) atreceiver.c(302) [receiver=3.0.7] rsync: connection unexpectedly closed (2721bytes received so far) [generator] rsync error: error in rsync protocol datastream (code 12) at io.c(601) [generator=3.0.7] 磁盘空间不够,所以无法操作。 可以通过df /home/backup2010 来查看可用空间和已用空间 实例 权限问题 类似如下的提示:rsync: opendir "/kexue"(in dtsChannel) failed: Permission denied (13)注意查看同步的目录权限是否为755 还有一种在同步过程中可能会提示没有权限 (将同步目录加上SvcwRsync全部权限即可,更简单的方法就是将SvcwRsync设为管理员即可) 需要给/etc/rsync.password 600权限 [iyunv@backup backup]# ll -ld/etc/rsync.password -rw-------. 1 root root 20 Sep 22 21:16/etc/rsync.password 实例time out rsync: failed to connect to 203.100.192.66:Connection timed out (110) rsync error: error in socket IO (code 10)at clientserver.c(124) [receiver=3.0.5] 检查服务器的端口netstat ?tunlp,远程telnet测试。 可能因为客户端或者服务端的防火墙开启 导致无法通信,可以设置规则放行 rsync(873端口) 或者直接关闭防火墙。 实例 服务未启动 rsync: failed to connect to 10.10.10.170:Connection refused (111) rsync error: error in socket IO (code 10)at clientserver.c(124) [receiver=3.0.5] 启动服务:rsync --daemon--config=/etc/rsyncd.conf 实例 磁盘空间满 rsync: recv_generator: mkdir"/teacherclubBackup/rsync……" failed: No space left on device (28) ***Skipping any contents from this failed directory *** 实例Ctrl+C或者大量文件 rsync error: received SIGINT, SIGTERM, orSIGHUP (code 20) at rsync.c(544) [receiver=3.0.5] rsync error: received SIGINT, SIGTERM, orSIGHUP (code 20) at rsync.c(544) [generator=3.0.5] 实例 xnetid启动 rsync: read error: Connection reset by peer(104) rsync error: error in rsync protocol datastream (code 12) at io.c(759) [receiver=3.0.5] 查看rsync日志 rsync: unable to open configuration file"/etc/rsyncd.conf": No such file or directory xnetid查找的配置文件位置默认是/etc下,根据具体情况创建软链接。例如: ln -s /etc/rsyncd/rsyncd.conf/etc/rsyncd.conf 或者更改指定默认的配置文件路径,在/etc/xinetd.d/rsync配置文件中。
|