DO NOT REPLY [Bug 6965] New: truncated files and exit code 23

samba-bugs at samba-bugs at
Fri Dec 4 03:00:02 MST 2009

           Summary: truncated files and exit code 23
           Product: rsync
           Version: 3.0.4
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: core
        AssignedTo: wayned at
        ReportedBy: martin.pihlak at
         QAContact: rsync-qa at

While backing up an active PostgreSQL database, I occasionally get exit code 23
from rsync, accompanied by a error messages:

rsync: read errors mapping
No data available (61)
rsync error: some files could not be transferred (code 23) at main.c(1058)

As indicated by
this is caused by the file being truncated while being read by rsync. On an
active database this is actually a normal condition, as files are created,
deleted and truncated all the time.

Unfortunately the code 23 cannot just be ignored, as it also may indicate that
there was an actual "real" IO error during the backup. And without reading
rsync output there is no way to tell.

So the proposal is to avoid generating ENODATA for truncated files and treat
them similarly to vanished files.

Configure bugmail:
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.

More information about the rsync mailing list