Rsync故障处理:
1.错误演示过程
[root@nfs ~]
@ERROR: Unknown module 'data'
rsync error: error starting client-server protocol (code 5) at main.c(1648) [sender=3.1.2]
问题:服务端配置文件模块写错了!!
2.错误演示过程
[root@nfs ~]
rsync: failed to connect to 172.16.1.41 (172.16.1.41): No route to host (113)
rsync error: error in socket IO (code 10) at clientserver.c(125) [sender=3.1.2]
问题:服务端防火墙开启了!!
3.错误演示过程
[root@nfs ~]
Password:
@ERROR: auth failed on module data
rsync error: error starting client-server protocol (code 5) at main.c(1648) [sender=3.1.2]
问题:
1>客户端密码文件的权限不是600
2>服务端密码文件不是600
3>服务端密码文件不存在(名字写错了/没有创建/配置文件参数写错了)
4>服务端密码文件里保存的用户名和密码不正确
5>推送时使用的虚拟用户错误或者密码输入错误
4.错误演示过程
[root@nfs ~]
ERROR: The remote path must start with a module name not a /
rsync error: error starting client-server protocol (code 5) at main.c(1648) [sender=3.1.2]
问题:双冒号“::”后面跟的是模块名,不是目录
5.错误演示过程
[root@nfs ~]
Password:
sending incremental file list
rsync: failed to write xattr user.rsync.%stat for "data" (in data): Permission denied (13)
rsync: failed to write xattr user.rsync.%stat for "data/11_class.xlsx" (in data): Permission denied (13)
data/
sent 100 bytes received 235 bytes 134.00 bytes/sec
total size is 12,437 speedup is 37.13
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1178) [sender=3.1.2]
问题:
1>服务端推送文件的目录权限不对应
2>服务端与客户端用户id不一致
6.错误演示过程
[root@nfs ~]
rsync: failed to connect to 172.16.1.41 (172.16.1.41): Connection refused (111)
rsync error: error in socket IO (code 10) at clientserver.c(125) [sender=3.1.2]
问题:服务端服务没有启动
7.错误演示过程
[root@nfs ~]
Password:
@ERROR: chdir failed
rsync error: error starting client-server protocol (code 5) at main.c(1648) [sender=3.1.2]
问题:服务端模块对应的目录不存在
8.错误演示
[root@nfs ~]
Password:
sending incremental file list
rsync: failed to read xattr user.rsync.%stat for "." (in data): Permission denied (13)
rsync: failed to read xattr user.rsync.%stat for "." (in data): Permission denied (13)
rsync: failed to read xattr user.rsync.%stat for "." (in data): Permission denied (13)
rsync: recv_generator: failed to stat "11_class.xlsx" (in data): Permission denied (13)
rsync: failed to read xattr user.rsync.%stat for "." (in data): Permission denied (13)
sent 81 bytes received 476 bytes 222.80 bytes/sec
total size is 12,437 speedup is 22.33
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1178) [sender=3.1.2]
问题:没有关闭selinux
端口
SSH 22
RDP 3389
HTTP 80
HTTPS 443
redis 6379
mysql 3306
ftp 20 21
rsync 873
DNS 53
elasticsearch(ES) 9200 9300
状态码
200 成功
301 永久重定向(跳转)
302 临时重定向(跳转)
304 本地缓存
307 内部重定向(跳转)
400 客户端错误
401 认证失败
403 找不到主页,权限不足
404 找不到页面
500 内部错误
502 找不到后端主机
503 服务器过载
504 后端主机超时