天天看点

rsync error: some files/attrs were not transferred

sending incremental file list cannot delete non-empty directory:  www/ty sent 2231 bytes received 29 bytes 5340.00 bytes/sec total size is 298441240 speedup is 88775.85 could not make way for new regular file:  www/ty  rsync error: some files/attrs were not transferred

在服务器上传包的过程出现以上报错:

1、首先看到的是:rsync error: some files/attrs were not transferred

分析可能是文件权限导致,后来对比了一下,rsyncd.conf里的权限设置,以及包的权限没问题

2、sending incremental file list cannot delete non-empty directory:  www/ty

再注意到这个错误提示信息,大致意思就是 www/ty这个目录不是空目录,不能执行delete操作;上去传输端和目标服务器上找到这个目录的路径查看,发现传输端的包里的文件ty是file,目的端(目标服务器)的ty是一个目录directory,猜测有可能是开发提发版的时候打包错了;然后和开发对齐后,是他们那边的问题,随后重新打包上传

继续阅读