[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Lotus Notes imapsync getting stuck


From Artur Jasowicz <artur at 01 dot com>
Subject Lotus Notes imapsync getting stuck
Date Wed, 29 Apr 2009 15:06:25 -0500

I am trying to sync a Lotus Notes user. Messages are being synced up to a particular one. Repeating imapsync picks up the process at this same message as first one now to be synced and gets stuck again. I've enabled debugging and imap debugging and noticed that the message is being received in chunks, adding each received chunk to the buffer until apparently sending end thinks it sent all the data and imapsync expects to see 6 more bytes. Same result on each run.
I grepped log for relevant messages. Here they are for brevity, I can post more details if needed.


Details about system and command used

Here is a [linux] system (Linux xxxx.xxx 2.6.18-92.1.22.el5xen #1 SMP Fri Dec 5 09:58:39 EST 2008 x86_64)
with perl 5.8.8
Mail::IMAPClient 2.2.9
IO::Socket 1.29
IO::Socket::SSL
Digest::MD5 2.36
Digest::HMAC_MD5 1.01
Term::ReadKey
Date::Manip
and the module Mail::IMAPClient version used here is 2.2.9
Command line used :
/usr/bin/imapsync --buffersize 16777216 --nosyncacls --subscribe -- syncinternaldates --skipsize --nofoldersizes --fastio1 --fastio2 -- sep1 \ --useheader Message-ID --exclude ^Trash$ --host1 xx.xx.xx.xx -- port1 143 --user1 xxxxx --password1 PWCHANGED --authmech1 LOGIN --host2 localhost --port2 143 --user2 xxxxx at xxxxx dot xxx --regextrans2 s/[iI][nN] [bB][oO][xX]/Inbox_new/g --debug --debugimap --authuser2 xxx at xxxx dot xxx --password2 PWCHANGED --authmech2 PLAIN




Processing of previous message ends and processing of the message in question begins:
Sent 33 bytes
Read: * 787 FETCH (RFC822.SIZE 196619 UID 787)
801 OK FETCH completed


Sending: 802 CAPABILITY

Sent 16 bytes
Read: * CAPABILITY IMAP4rev1 AUTH=PLAIN LITERAL+ NAMESPACE QUOTA UIDPLUS
802 OK CAPABILITY completed

Sending: 803 UID FETCH 787 BODY.PEEK[]

Sent 31 bytes
LITERAL: received literal in line * 787 FETCH (BODY[] of length 196619; attempting to retrieve from the 1258 bytes in: Received: from xxxxx.com ([n.n.n.n])


Then a bunch of chunks arrive, each with following messages indicating progress and with message growing
Still need 41193 to complete literal string
Still need 39905 to complete literal string
Still need 33193 to complete literal string
Still need 26617 to complete literal string
Still need 25193 to complete literal string
Still need 23905 to complete literal string
Still need 15905 to complete literal string
Still need 13193 to complete literal string
Still need 9193 to complete literal string
Still need 7905 to complete literal string
Still need 1193 to complete literal string


Then finally:

base64encodeddatahere....base64encodeddatahere.....soon....k=


----------MB_XXXXXXXXXXXXXX_5B8_12A4F_MBLK-R05.xxxxxxx.xxx.xxx--


----------MB_XXXXXXXXXXXXXX_5B8_12A4E_MBLK-R05.xxxxxxx.xxx.xxx--

------=_ UID 787)
803 OK FETCH completed
<END>
while processing LITERAL
Still need 6 to complete literal string

At this point the sync gets stuck. Just sits there, nothing happens. Apparently imapsync awaits 6 more bytes to arrive, which they never do.

How can I fix this?

Artur