|
提示UID或GID非法 现象:@ERROR: invalid gid xxx 或者 @ERROR: invalid uid xxxx 解决办法:可以设置gid=0,uid=0 chdir失败(切换目录) 现象:@ERROR: chdir failed 解决办法: 1、查看日志文件,日志文件在安装目录下。从日志文件中确定是哪个目录出问题 2、查看服务启动用户对该目录是否有权限 3、确认该目录是否包含中文字符 @ERROR: failed to open lock file 现象:rsync error: error starting client-server protocol (code 5) at main.c(1495) [receiver=3.0.2] 解决:配置文件 rsync.conf中添加 lock file = rsyncd.lock 即可解决。 @ERROR: auth failed on module xxxxx rsync: connection unexpectedly closed (90 bytes read so far) rsync error: error in rsync protocol data stream (code 12) at io.c(150) 说明:这是因为密码设置错了,无法登入成功,检查一下rsyncd.secrets,看客服是否匹配。还有服务器端没启动rsync 服务也会出现这种情况。 password file must not be other-accessible continuing without password file Password: 说明:这是因为rsyncd.secrets的权限不对,应该设置为600。如:chmod 600 rsyncd.pwd @ERROR: chroot failed rsync: connection unexpectedly closed (75 bytes read so far) rsync error: error in rsync protocol data stream (code 12) at io.c(150) 说明:这是因为你在 rsyncd.conf 中设置的 path 路径不存在,要新建目录才能开启同步 rsync: failed to connect to 192.168.1.123: 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: access denied 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) at io.c(359) 说明:此问题很明显,是配置选项host allow的问题,初学者喜欢一个允许段做成一个配置,然后模块又是同一个,致使导致 rsync error: received SIGINT, 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) at io.c(604) [sender=2.6.9] 说明:原数据目录里没有数据存在 @ERROR: Unknown module xxxxx rsync error: error starting client-server protocol (code 5) at main.c(1522) [receiver=3.0.3] 原因: 服务器不存在指定模块。提供正确的模块名或在服务器端修改成你要的模块以解决问题。 |
小黑屋|手机版|Archiver|天空小小岛
|京ICP备2025130156号|
GMT+8, 2025-7-1 05:40 , Processed in 0.148950 second(s), 19 queries , Gzip On.
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.