axkibe/lsyncd — Issue #107: Lsyncd crashes with lots of rsync error 13s
Author: creshal
Created: 2012-01-25 16:49:27+00:00
State: open

We're using lsyncd with the following config file:

```lua
settings = {
maxDelays = 64,
maxProcesses = 64
}
sync {
default.rsyncssh,
source = "/home/",
host = "someotherhost",
targetdir = "/home/",
rsyncopts = {"-az", "--bwlimit=5120"},
exlude = { "lost+found" }
}
```
Files are usually transmitted OK, but we're experiencing random crashes with error 13 – the files seem to be intact, but permissions aren't (resetted to defaults). Having lsyncd retry on error 13 doesn't change much, except that we've got about 200 MiB worth of error logs per day. However, lsyncd runs (and connects) as root on both machines, so in theory there shouldn't be any permission problems. Is there any way to have lsyncd log the complete rsync error message or other ways to debug this?