[SOLVED] Re: Sync fails with offlineimap-7.1.0

Andreas Fink finkandreas at web.de
Tue May 2 09:57:16 BST 2017


On Tue, 2 May 2017 09:22:23 +0200
Nicolas Sebrecht <nicolas.s-dev at laposte.net> wrote:

> On Tue, May 02, 2017 at 07:48:18AM +0200, Andreas Fink wrote:
> 
> > > > OfflineIMAP 7.1.0
> > > >   Licensed under the GNU GPL v2 or any later version (with an
> > > > OpenSSL exception) *** Processing account gmail    
> > > > Establishing connection to imap.googlemail.com:993
> > > > (gmailremote) XOAUTH2 authentication failed: AUTHENTICATE
> > > > command error: BAD ['Client aborted AUTHENTICATE command.
> > > > r7mb353432922edb']. Data: LPNC2 AUTHENTICATE XOAUTH2
> > > > 
> > > > PLAIN authentication failed: [AUTHENTICATIONFAILED] Invalid
> > > > credentials (Failure) LOGIN authentication failed:
> > > > [AUTHENTICATIONFAILED] Invalid credentials (Failure) ERROR: All
> > > > authentication types failed: XOAUTH2: AUTHENTICATE command
> > > > error: BAD ['Client aborted AUTHENTICATE command.
> > > > r7mb353432922edb']. Data: LPNC2 AUTHENTICATE XOAUTH2
> > > > 
> > > >         PLAIN: [AUTHENTICATIONFAILED] Invalid credentials
> > > > (Failure) LOGIN: [AUTHENTICATIONFAILED] Invalid credentials
> > > > (Failure) *** Finished account 'gmail' in 0:01
> > > > ERROR: Exceptions occurred during the run!
> > > > ERROR: All authentication types failed:
> > > >         XOAUTH2: AUTHENTICATE command error: BAD ['Client
> > > > aborted AUTHENTICATE command. r7mb353432922edb']. Data: LPNC2
> > > > AUTHENTICATE XOAUTH2
> > > > 
> > > >         PLAIN: [AUTHENTICATIONFAILED] Invalid credentials
> > > > (Failure) LOGIN: [AUTHENTICATIONFAILED] Invalid credentials
> > > > (Failure)    
> 
> > No I get the exact same exception message now with 7.0.14 and
> > python2 as with 7.1.0.  
> 
> No surprise, here. There are very few changes between both.
> 
> >                                                                                      My
> > offlineimaprc is attached. My setup is local dovecot imap syncing
> > with remote gmail imap. get_username and get_password get the
> > credentials from gnome-keyring...  
> 
> Thanks.
> 
> I've made a change in current 'next' branch for users not using
> XOAUTH2. Could you try it, please?
> 
> 
It's working now again. After realizing that I have to use python2 and
a magic shutdown, it works again. So I'm using now python2 with v7.1.0
(as with 7.0.14) and apparently my system was in a strange state after
the update, which was resolved by a system reboot. Sorry for the noise,
everything fine again.
I wonder why gentoo decided to change from python2 to python3 as the
default python runtime for offlineimap, especially when it is known not
to work correctly. Nevermind that question though, since it's not a
problem of offlineimap itself...

Best regards
Andreas





More information about the OfflineIMAP-project mailing list