Rsync 常见错误及解决方法

由于阿里云SLB不提供ECS间的数据同步服务,如果部署在SLB后端ECS上的应用服务是无状态的,那么可以通过独立的ECS或RDS服务来存储数据;如果部署在SLB后端ECS上的应用服务是有状态的,那么需要确保这些ECS上的数据是同步的。

我们通过Rsync来实现多个ECS之间的数据同步。

通过Rsync来实现多个ECS之间的数据同步,请查看此文。

问题?@ERROR: chroot failed

@ERROR: chroot failedrsync error: error starting client-server protocol (code 5) at main.c(1503) [receiver=3.0.6]

原因:

服务器端的目录不存在或无权限。

解决办法:

创建目录并修正权限可解决问题。

问题?skipping non-regular file

receiving incremental file listskipping non-regular file “vendor/bin/doctrine”skipping non-regular file “vendor/bin/doctrine.php”

sent 1990 bytes received 489209 bytes 327466.00 bytes/sectotal size is 182515746 speedup is 371.57

原因:

source源文件有软链接。

解决方法:

修改为 rsync -va,其中?-a == -rlptgoD (no -H,-A,-X)?或者 rsync -rvltOD 也可以。

解决后:

receiving incremental file listvendor/bin/doctrine -> ../doctrine/orm/bin/doctrinevendor/bin/doctrine.php -> ../doctrine/orm/bin/doctrine.php

sent 1998 bytes received 489279 bytes 327518.00 bytes/sectotal size is 182515746 speedup is 371.51

问题@ERROR: module is read only

sending incremental file listERROR: module is read onlyrsync error: syntax or usage error (code 1) at main.c(866) [receiver=3.0.6]rsync: read error: Connection reset by peer (104)rsync error: error in rsync protocol data stream (code 12) at io.c(759) [sender=3.0.6]

原因:

source源服务器端权限设置read为only只读权限。

解决方法:

read only = false

问题@ERROR: auth failed on module tee

@ERROR: auth failed on module teersync error: error starting client-server protocol (code 5) at main.c(1522) [receiver=3.0.6]

原因:

服务器端该模块(tee)需要验证用户名密码,但客户端没有提供正确的用户名密码,认证失败。

(…)Read the rest of Rsync 常见错误及解决方法 (222 words)


© LixiPHP for LixiPHP, 2014. |Permalink |No comment |Add todel.icio.usPost tags: ECS, rsync, SLB, 数据同步

Feed enhanced by Better Feed from Ozh

接受自己的失败面,是一种成熟,更是一种睿智

Rsync 常见错误及解决方法

相关文章:

你感兴趣的文章:

标签云: