Re: sync_client failing with "Fatal error: failed to finish reading file!"

2013-06-17 Thread Nic Bernstein
On 06/17/2013 01:00 AM, Bron Gondwana wrote: > On Wed, Jun 12, 2013, at 06:07 AM, Nic Bernstein wrote: >> Checking the source for dlist.c, here is the context for this error >> [printfile()]: > > No, if size < 0 then we've read PAST the end of the file - which is also > totally bogus. I can see

Re: sync_client failing with "Fatal error: failed to finish reading file!"

2013-06-16 Thread Bron Gondwana
On Wed, Jun 12, 2013, at 06:07 AM, Nic Bernstein wrote: > Checking the source for dlist.c, here is the context for this error > [printfile()]: (I'm just keeping the important lines here) >size = sbuf.st_size; >while (size) { >int n = fread(buf, 1, (size > 4096 ? 4096 : size), f)

Re: sync_client failing with "Fatal error: failed to finish reading file!"

2013-06-11 Thread Nic Bernstein
List, Checking the source for dlist.c, here is the context for this error [printfile()]: static void printfile(struct protstream *out, const struct dlist *dl) { char buf[4096]; struct stat sbuf; FILE *f; unsigned long size; f = fopen(dl->sval, "r");

sync_client failing with "Fatal error: failed to finish reading file!"

2013-06-11 Thread Nic Bernstein
Friends, We've been running a pair of replicas with Ken's cyrus-imapd-2.4.17-caldav-beta (4 and 5) recently, in preparation for a migration away from a single 2.4.11 server. The configuration is the 2.4.11 box is the master, it replicates to the first 2.4.17 box, which is also running a sync_clien