Hendrik Visage
2004-Jun-27 19:41 UTC
Trouble with rsync inside fcron: buffer overflow in recv_exclude_list
Hi, Using the following script (which runs fine as root in a terminal), I get the error below. Any ideas where to continue searching? sh-2.05b$ rsync --version rsync version 2.6.2 protocol version 28 Copyright (C) 1996-2004 by Andrew Tridgell and others <http://rsync.samba.org/> Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles, IPv6, 64-bit system inums, 64-bit internal inums <snipped license> sh-2.05b$ cat /usr/local/sbin/mail_backup #!/bin/sh touch /tmp/mail_backup-rsync >& /dev/null date >> /tmp/mail_backup-rsync mkdir /md7/mail_backup/`date "+%H"` >& /dev/null /usr/bin/rsync --delete-after --max-delete=1 -pogtvS /var/spool/mail/* /md7/mail_backup/`date "+%H"`/ ----- Forwarded message from fcron <root> ----- To: root@hvs Subject: Output of fcron job: '/usr/local/sbin/mail_backup' From: fcron <root> Date: Sun, 27 Jun 2004 21:20:00 +0200 ERROR: buffer overflow in recv_exclude_list rsync error: error allocating core memory buffers (code 22) at util.c(122) rsync: connection unexpectedly closed (8 bytes read so far) rsync error: error in rsync protocol data stream (code 12) at io.c(342) 21:20:00 Job /usr/local/sbin/mail_backup terminated (exit status: 12) (mailing output) ----- End forwarded message ----- Linux hvs 2.4.25-ll-r5.0.0a #1 Sun Jun 20 02:02:22 SAST 2004 i686 unknown unknown GNU/Linux sh-2.05b$ mount /dev/md/7 on /md7 type reiserfs (rw,noatime) /dev/md/6 on /var/spool/mail type jfs (rw,noatime)
Wayne Davison
2004-Jun-28 06:59 UTC
Trouble with rsync inside fcron: buffer overflow in recv_exclude_list
On Sun, Jun 27, 2004 at 09:41:49PM +0200, Hendrik Visage wrote:> /usr/bin/rsync --delete-after --max-delete=1 -pogtvS /var/spool/mail/* /md7/mail_backup/`date "+%H"`/Drop the '*' and try again (leave the trailing slash prior to the '*', of course). It looks like you're running into the bug that affects multiple-sources combined with --delete (which is mentioned in bugzilla along with the patch that went into CVS to fix it). If so, the failure symptom is not one I have seen before (it more typically crashes with a signal). ..wayne..