SSL timeout after OpenSSL upgrade
Sam Burnett
sam.burnett at gatech.edu
Thu Mar 29 18:48:56 BST 2012
Hello,
I'm using Arch Linux and have been using offlineimap for years without
problems. Unfortunately, after a recent upgrade to OpenSSL 1.0.1, I get
this timeout error when syncing one of my IMAPS accounts:
ERROR: Exceptions occurred during the run!
ERROR: While attempting to sync account 'gatech'
_ssl.c:488: The handshake operation timed out
I've attached the full debug log to this email. It was generated using
"offlineimap -d imap -l debug.log -a gatech", where "gatech" is the IMAP
account in question. (My gmail account has no problems.)
Older version of offineimap (6.4.x) exhibit the same problem. If I
downgrade to OpenSSL 1.0.0, the problem goes away.
Here's the relevant part of my offlineimaprc:
[Repository GatechIMAP]
type = IMAP
remotehost = mail.gatech.edu
remoteuser = my_username
ssl = yes
# Only sync folders that start with INBOX
folderfilter = lambda foldername: foldername.startswith('INBOX')
nametrans = lambda foldername: re.sub('^INBOX', 'gatech', foldername)
Thanks,
Sam
-------------- next part --------------
2012-03-29 12:09:01 INFO: OfflineImap 6.5.2.1 starting...
Python: 2.7.2 Platform: linux2
Args: /usr/bin/offlineimap -d imap -l debug.log -a gatech
2012-03-29 12:09:01 INFO: Debug mode: Forcing to singlethreaded.
2012-03-29 12:09:01 DEBUG: Now debugging for imap: IMAP protocol debugging
2012-03-29 12:09:01 DEBUG: Now debugging for : Other offlineimap related sync messages
2012-03-29 12:09:01 INFO: *** Processing account gatech
2012-03-29 12:09:01 INFO: Establishing connection to mail.gatech.edu:993
2012-03-29 12:09:01 DEBUG: [imap]: 09:01.97 Account sync gatech imaplib2 version 2.29
2012-03-29 12:09:01 DEBUG: [imap]: 09:01.97 Account sync gatech imaplib2 debug level 5, buffer level 3
2012-03-29 12:11:02 INFO: ERROR: While attempting to sync account 'gatech'
_ssl.c:488: The handshake operation timed out
2012-03-29 12:11:02 INFO: [' File "/usr/lib/python2.7/site-packages/offlineimap/accounts.py", line 231, in syncrunner\n self.sync()\n', ' File "/usr/lib/python2.7/site-packages/offlineimap/accounts.py", line 287, in sync\n remoterepos.getfolders()\n', ' File "/usr/lib/python2.7/site-packages/offlineimap/repository/IMAP.py", line 266, in getfolders\n imapobj = self.imapserver.acquireconnection()\n', ' File "/usr/lib/python2.7/site-packages/offlineimap/imapserver.py", line 219, in acquireconnection\n fingerprint=fingerprint\n', ' File "/usr/lib/python2.7/site-packages/offlineimap/imaplibutil.py", line 146, in __init__\n super(WrappedIMAP4_SSL, self).__init__(*args, **kwargs)\n', ' File "/usr/lib/python2.7/site-packages/offlineimap/imaplib2.py", line 1997, in __init__\n IMAP4.__init__(self, host, port, debug, debug_file, identifier, timeout, debug_buf_lvl)\n', ' File "/usr/lib/python2.7/site-packages/offlineimap/imaplib2.py", line 329, in __init__\n self.open(host, port)\n', ' File "/usr/lib/python2.7/site-packages/offlineimap/imaplibutil.py", line 149, in open\n super(WrappedIMAP4_SSL, self).open(host, port)\n', ' File "/usr/lib/python2.7/site-packages/offlineimap/imaplib2.py", line 2010, in open\n self.ssl_wrap_socket()\n', ' File "/usr/lib/python2.7/site-packages/offlineimap/imaplib2.py", line 463, in ssl_wrap_socket\n self.sock = ssl.wrap_socket(self.sock, self.keyfile, self.certfile, ca_certs=self.ca_certs, cert_reqs=cert_reqs)\n', ' File "/usr/lib/python2.7/ssl.py", line 372, in wrap_socket\n ciphers=ciphers)\n', ' File "/usr/lib/python2.7/ssl.py", line 134, in __init__\n self.do_handshake()\n', ' File "/usr/lib/python2.7/ssl.py", line 296, in do_handshake\n self._sslobj.do_handshake()\n']
2012-03-29 12:11:02 INFO: *** Finished account 'gatech' in 2:00
2012-03-29 12:11:02 WARNING: ERROR: Exceptions occurred during the run!
2012-03-29 12:11:02 WARNING: ERROR: While attempting to sync account 'gatech'
_ssl.c:488: The handshake operation timed out
2012-03-29 12:11:02 WARNING:
Traceback:
File "/usr/lib/python2.7/site-packages/offlineimap/accounts.py", line 231, in syncrunner
self.sync()
File "/usr/lib/python2.7/site-packages/offlineimap/accounts.py", line 287, in sync
remoterepos.getfolders()
File "/usr/lib/python2.7/site-packages/offlineimap/repository/IMAP.py", line 266, in getfolders
imapobj = self.imapserver.acquireconnection()
File "/usr/lib/python2.7/site-packages/offlineimap/imapserver.py", line 219, in acquireconnection
fingerprint=fingerprint
File "/usr/lib/python2.7/site-packages/offlineimap/imaplibutil.py", line 146, in __init__
super(WrappedIMAP4_SSL, self).__init__(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/offlineimap/imaplib2.py", line 1997, in __init__
IMAP4.__init__(self, host, port, debug, debug_file, identifier, timeout, debug_buf_lvl)
File "/usr/lib/python2.7/site-packages/offlineimap/imaplib2.py", line 329, in __init__
self.open(host, port)
File "/usr/lib/python2.7/site-packages/offlineimap/imaplibutil.py", line 149, in open
super(WrappedIMAP4_SSL, self).open(host, port)
File "/usr/lib/python2.7/site-packages/offlineimap/imaplib2.py", line 2010, in open
self.ssl_wrap_socket()
File "/usr/lib/python2.7/site-packages/offlineimap/imaplib2.py", line 463, in ssl_wrap_socket
self.sock = ssl.wrap_socket(self.sock, self.keyfile, self.certfile, ca_certs=self.ca_certs, cert_reqs=cert_reqs)
File "/usr/lib/python2.7/ssl.py", line 372, in wrap_socket
ciphers=ciphers)
File "/usr/lib/python2.7/ssl.py", line 134, in __init__
self.do_handshake()
File "/usr/lib/python2.7/ssl.py", line 296, in do_handshake
self._sslobj.do_handshake()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20120329/98037df5/attachment.sig>
More information about the OfflineIMAP-project
mailing list