Closed milouse closed 4 years ago
I'm having the same problem. Can't even generate new tokens using oauth2.py either:
$ python2.7 oauth2.py --user=<x> --client_id=<x> --client_secret=<x> --generate_oauth2_token
To authorize token, visit this url and follow the directions:
https://accounts.google.com/o/oauth2/auth?client_id=<x>
Enter verification code: <x>
Traceback (most recent call last):
File "oauth2.py", line 347, in <module>
main(sys.argv)
File "oauth2.py", line 326, in main
authorization_code)
File "oauth2.py", line 214, in AuthorizeTokens
response = urllib.urlopen(request_url, urllib.urlencode(params)).read()
File "/usr/lib/python2.7/socket.py", line 355, in read
data = self._sock.recv(rbufsize)
File "/usr/lib/python2.7/ssl.py", line 754, in recv
return self.read(buflen)
File "/usr/lib/python2.7/ssl.py", line 641, in read
v = self._sslobj.read(len)
ssl.SSLError: [SSL: KRB5_S_TKT_NYV] unexpected eof while reading (_ssl.c:1946)
Maybe something changed on Google's end?
As temporal solution you can downgrade openssl to previous version: sudo pacman -U /var/cache/pacman/pkg/openssl-1.1.1.d-2-x86_64.pkg.tar.xz
Thank you, that seemed to have fixed it for now.
I am facing the same issue, reported to Debian as Bug954491. To downgrade openssl (which "fixes" the problem as @trsdln mentioned already), you need to
cd /var/cache/apt/archives && sudo dpkg -i openssl_1.1.1d-2_amd64.deb libssl1.1_1.1.1d-2_amd64.deb libssl1.1_1.1.1d-2_i386.deb
openssl updates usually fix vulnerabilities. Downgrading openssl should not be recommended.
In this case OpenSSL changed the behavior on EOF in 1.1.1e
causing various problems: https://github.com/openssl/openssl/issues/11381
Great news. Thanks for the report!
General informations
I know the bug is not in offlineimap code, but surely in the ssl implementation of python2. But I create the ticket to keep this problem in mind as a lot of people will begin to have it. This ticket may help to find a workaround.
Also, this problem seems to only affect Gmail account, or maybe only XOAUTH2 config. I cannot confirm that for now.
offlineimap -V
):Configuration file offlineimaprc
Logs, error
Steps to reproduce the error