Offlineimap stopped working w new_open_ssl

Julien T julien.t43 at gmail.com
Mon Feb 18 22:41:38 UTC 2013


Hello,

I was happily using Offlineimap (6.2 on OpenBSD 4.8; I know, a bit
old) to backup a gmail account and it seems one or two month ago, it
stopped working. I'm not sure exactly when as I was not checking this
backup job regularly.

Message is the following
>>>
This is OfflineIMAP 6.2.0
Python: 2.5.4 (r254:67916, Aug  9 2010, 08:57:51)
[GCC 4.2.1 20070719 ]
Platform: openbsd4
Args: ['/usr/local/bin/offlineimap', '-l',
'/var/tmp/gmail-backup.sh.log', '-d', 'imap', '-1']
MainThread: OfflineIMAP 6.2.0
Copyright (C) 2002 - 2009 John Goerzen <jgoerzen at complete.org>
This software comes with ABSOLUTELY NO WARRANTY; see the file
COPYING for details.  This is free software, and you are welcome
to distribute it under the conditions laid out in COPYING.
MainThread: Now debugging for imap: IMAP protocol debugging
Account sync gmail: ***** Processing account gmail
Account sync gmail: Copying folder structure from Gmail to Maildir
Account sync gmail: Establishing connection to imap.gmail.com:993.
MainThread: Thread 'Account sync gmail' terminated with exception:
Traceback (most recent call last):
  File "/usr/local/lib/python2.5/site-packages/offlineimap/threadutil.py",
line 149, in run
    Thread.run(self)
  File "/usr/local/lib/python2.5/threading.py", line 446, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/local/lib/python2.5/site-packages/offlineimap/accounts.py",
line 183, in syncrunner
    self.sync(siglistener)
  File "/usr/local/lib/python2.5/site-packages/offlineimap/accounts.py",
line 220, in sync
    remoterepos.syncfoldersto(localrepos, [statusrepos])
  File "/usr/local/lib/python2.5/site-packages/offlineimap/repository/Base.py",
line 135, in syncfoldersto
    srcfolders = src.getfolders()
  File "/usr/local/lib/python2.5/site-packages/offlineimap/repository/IMAP.py",
line 214, in getfolders
    imapobj = self.imapserver.acquireconnection()
  File "/usr/local/lib/python2.5/site-packages/offlineimap/imapserver.py",
line 259, in acquireconnection
    self.sslclientkey, self.sslclientcert)
  File "/usr/local/lib/python2.5/imaplib.py", line 1128, in __init__
    IMAP4.__init__(self, host, port)
  File "/usr/local/lib/python2.5/imaplib.py", line 163, in __init__
    self.open(host, port)
  File "/usr/local/lib/python2.5/site-packages/offlineimap/imapserver.py",
line 85, in open
    imaplibutil.new_open_ssl(self, host, port)
  File "/usr/local/lib/python2.5/site-packages/offlineimap/imaplibutil.py",
line 171, in new_open_ssl
    raise socket.error(last_error)
error: 65


Last 1 debug messages logged for Account sync gmail prior to exception:
maildir: MaildirRepository initialized, sep is '.'
<<<

Conf is the following
>>>
general]
accounts = gmail
ui = Noninteractive.Basic

[Account gmail]
localrepository = Local
remoterepository = Remote

[Repository Local]
type = Maildir
localfolders = ~/Mail

[Repository Remote]
type = Gmail
remoteuser = <user>@gmail.com
remotepassfile = ~/.<secretfile>
realdelete = no
folderfilter = lambda foldername: foldername not in [
        '[Gmail]/Trash]', '[Gmail]/Spam', '[Gmail]/All Mail',
        ]
<<<

It seems a ssl error but I look on the web and it doesn't seem to have
a change of certificate for gmail.
Any ideas why it failed ?
I'm also trying to check if I can update offlineimap without all the system.

Thanks a lot.
Cheers,

Julien



More information about the OfflineIMAP-project mailing list