Peter Mogensen
2014-May-27 13:03 UTC
[Dovecot] dsync changing source permission to "root" in backup mode
Hi, We have dsync failing once in a while when running in "backup" mode. What's strange is that the result is that the file permissions on the *source* machine ends up with the wrong permissions (set to uid 0). Even though the dsync manual clearly says: "Backup mails from default mail location to location2 (or vice versa, if -R parameter is given). No changes are ever done to the source location. Any changes done in destination are discarded." Running: 'dsync -R -o mail_home=/users/maildir backup ssh -c arcfour src-host "dsync -o mail_home=/users/maildir"' I know it's running as root, but even then ... it shouldn't modify the source in "backup" mode ?? The error message from dsync when failing is: dsync-remote(root): Error: Cached message size larger than expected (5292 > 5289) dsync-remote(root): Error: Maildir filename has wrong S value, renamed the file from /users/maildir/.Sent/cur/1381224782.M959810P3574.mail,S=5292,W=5411:2,S to /users/maildir/.Sent/cur/1381224782.M959810P3574.mail,S=5289:2,S dsync-remote(root): Error: Corrupted index cache file /users/maildir/.Sent/dovecot.index.cache: Broken physical size for mail UID 1040 dsync-remote(root): Error: dsync(dst-host): read(/users/maildir/.Sent/cur/1381224782.M959810P3574.mail,S=5292,W=5411:2,S) failed: Cached message size larger than expected (5292 > 5289) /Peter
Peter Mogensen
2014-May-27 13:39 UTC
[Dovecot] dsync changing source permission to "root" in backup mode
Oh ... sorry... I forgot the last log-line. (see below) btw... tested with versions: Between 2.2.12 in both ends, and between dst=2.2.12, src=2.2.13 On 2014-05-27 15:03, Peter Mogensen wrote:> The error message from dsync when failing is: > > dsync-remote(root): Error: Cached message size larger than expected > (5292 > 5289) > dsync-remote(root): Error: Maildir filename has wrong S value, renamed > the file from > /users/maildir/.Sent/cur/1381224782.M959810P3574.mail,S=5292,W=5411:2,S > to /users/maildir/.Sent/cur/1381224782.M959810P3574.mail,S=5289:2,S > dsync-remote(root): Error: Corrupted index cache file > /users/maildir/.Sent/dovecot.index.cache: Broken physical size for mail > UID 1040 > dsync-remote(root): Error: dsync(dst-host): > read(/users/maildir/.Sent/cur/1381224782.M959810P3574.mail,S=5292,W=5411:2,S) > failed: Cached message size larger than expected (5292 > 5289)dsync-local(root): Error: dsync(src-host): read() failed: read((fd)) failed: dot-input stream ends without '.' line