Re: offlineimap/git hangs on 'Copying folder structure from IMAP to Mail
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
This is a separate problem I've been having, with IDLE support disabled
My ugly workaround is:
while : ; do [ $(( $(date "+%s") - $(stat -c "%Y" Maildir/new/) )) -gt 960 ] &&
killall offlineimap; sleep 120; done
with offlineimap running in a while loop
It mostly works, but occasionally, it will hang like so:
Account sync google.com:
Next refresh in 0 seconds
Account sync google.com:
Copying folder structure from IMAP to Maildir
Keep alive Google:
DEBUG[imap]: keepalive: joining threads
[hang here]
lsof says:
offlineim 28692 merlin 4u IPv4 30905281 TCP
magic.mtv.corp.google.com:42896->rv-in-f111.google.com:imaps (ESTABLISHED)
offlineim 28692 merlin 6u IPv4 30905591 TCP
magic.mtv.corp.google.com:48656->wa-in-f109.google.com:imaps (ESTABLISHED)
offlineim 28692 merlin 7u IPv4 30905738 TCP
magic.mtv.corp.google.com:60664->rv-in-f109.google.com:imaps (ESTABLISHED)
offlineim 28692 merlin 8u IPv4 30908243 TCP
magic.mtv.corp.google.com:48661->wa-in-f109.google.com:imaps (CLOSE_WAIT)
magic:~$ strace -f -p 24325
Process 25252 attached with 5 threads - interrupt to quit
[pid 24325] select(0, NULL, NULL, NULL, {0, 764000} <unfinished ...>
[pid 24326] futex(0xb0d6d0, 0x80 /* FUTEX_??? */, 0 <unfinished ...>
[pid 24327] futex(0x3a6c250, 0x80 /* FUTEX_??? */, 0 <unfinished ...>
[pid 25104] futex(0x16eaf20, 0x80 /* FUTEX_??? */, 0 <unfinished ...>
[pid 25252] futex(0x3861030, 0x80 /* FUTEX_??? */, 0 <unfinished ...>
[pid 24325] <... select resumed> ) = 0 (Timeout)
[pid 24325] select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout)
[pid 24325] select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout)
[pid 24325] select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout)
Process 24325 detached
How do I debug this hang? I'm happy to turn on/add extra debugging if that
helps you.
Thanks,
Marc
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
.... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/
|
|