offlineimap hangs
Rainer M Krug
Rainer at krugs.de
Mon Jan 12 09:35:59 GMT 2015
Edd Barrett <edd at theunixzoo.co.uk> writes:
> Hi,
>
> First, thanks for offlineimap. I use it extensively.
>
> I am having problems with offlineimap occasionally hanging.
>
> The problem manifests similarly as described in this post:
> http://comments.gmane.org/gmane.mail.imap.offlineimap.general/5457
>
> So it hangs, then I see the "Terminating NOW (this may take a few
> seconds)..." message.
>
> Note that, unlike in the above linked post, I am not using an SSH tunnel,
> just a TLS encrypted IMAP connection to a number of mail servers.
>
> Sometimes the dreaded "Terminating NOW" message *does* clear. On other
> occasions it hangs forever. Pressing CTRL+C again prints the message again
> before hanging more.
>
> Once at this state, you must kill -9 offlineimap, which is bad because
> it leaves a lock file behind.
>
> Annoyingly I don't know what causes this to happen. At first I though it
> was when the network connection went down, but I have since convinced
> myself otherwise.
>
> I'm finding this frustrating, as it interrupts my work flow to kill the
> process and clear the lock.
>
> Any ideas? This is version 6.5.6 running on OpenBSD.
I might also add another datapoint:
OS: Mac OSX Yosemite
offline installed via homwbrew
I have three servers (gmai, icloud and 1&1) which I sync to local imap
dovecot server, and after a suspend, in many cases, the gmail account
hangs, while the others are still working.
Passwords are extracted from OSX Keychain by using .offlineimap.py:
,----
| import re, commands
| def get_keychain_pass(account=None):
| params = {
| 'security': '/usr/bin/security',
| 'command': 'find-generic-password',
| 'account': account,
| }
|
| command = "%(security)s %(command)s -g -a %(account)s " % params
| outtext = commands.getoutput(command)
| return re.match(r'password: "(.*)"', outtext).group(1)
`----
As this happens quite often, I will kill it the next time with the
SIGQUIT and send in the traceback.
Cheers,
Rainer
--
Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 494 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20150112/8699ddf3/attachment-0003.sig>
More information about the OfflineIMAP-project
mailing list