You are not logged in.

#1 2020-03-22 14:16:42

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,525
Website

[SOLVED] mbsync:error:14095126:SSL routines:ssl3_read_n:unexpected eof

SOLVED: by being tracked upstream with a "fix" intended for 1.1.1.f

I've seen an SSL "error" message coming up with every use of mbsync lately.  I do not get the error with my own mail server on an up to date arch server, but I do get it from my work email provided by office365.  I traced it to the upgrade of openssl-1.1.1.e-1 and confirmed that a downgrade to openssl-1.1.1.d-2 removes the error (and upgrading again restores it).

Here's the output with 1.1.1.d-2 with no error (output revised to replace name of my work with WORKPLACE):

$ mbsync -V WORKPLACE
Reading configuration file /home/jmcclure/.mbsyncrc
C: 0/1  B: 0/1  M: +0/0 *0/0 #0/0  S: +0/0 *0/0 #0/0
Channel WORKPLACE
Opening master store WORKPLACE-remote...
Resolving outlook.office365.com... ok
Connecting to outlook.office365.com ([2603:1036:304:284e::2]:993)...
Opening slave store WORKPLACE-local...
Connection is now encrypted
Logging in...
Authenticating with SASL mechanism PLAIN...
Opening master box INBOX...
Opening slave box INBOX...
Loading master...
Loading slave...
slave: 146 messages, 2 recent
master: 229 messages, 0 recent
Synchronizing...
C: 1/1  B: 1/1  M: +0/0 *0/0 #0/0  S: +0/0 *0/0 #0/0

And the output with openssl-1.1.1.e-1 with an error:

$ mbsync -V WORKPLACE
Reading configuration file /home/jmcclure/.mbsyncrc
C: 0/1  B: 0/1  M: +0/0 *0/0 #0/0  S: +0/0 *0/0 #0/0
Channel WORKPLACE
Opening master store WORKPLACE-remote...
Resolving outlook.office365.com... ok
Connecting to outlook.office365.com ([2603:1036:304:2855::2]:993)...
Opening slave store WORKPLACE-local...
Connection is now encrypted
Logging in...
Authenticating with SASL mechanism PLAIN...
Opening master box INBOX...
Opening slave box INBOX...
Loading master...
Loading slave...
slave: 146 messages, 2 recent
master: 229 messages, 0 recent
Synchronizing...
C: 1/1  B: 1/1  M: +0/0 *0/0 #0/0  S: +0/0 *0/0 #0/0
Socket error: secure read from outlook.office365.com ([2603:1036:304:2855::2]:993): error:14095126:SSL routines:ssl3_read_n:unexpected eof while reading

It appears all mail is properly being synced.  New mail is arriving and I'm not aware of any being missed.  Is this merely excess verbosity that can be safely ignored, or should I be concerned?

Last edited by Trilby (2020-03-26 13:06:40)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#2 2020-03-22 14:21:12

seth
Member
Registered: 2012-09-03
Posts: 51,165

Re: [SOLVED] mbsync:error:14095126:SSL routines:ssl3_read_n:unexpected eof

Online

#3 2020-03-22 14:32:40

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,525
Website

Re: [SOLVED] mbsync:error:14095126:SSL routines:ssl3_read_n:unexpected eof

Thanks.  I'm not seeing much similarity between the concerns other than both being with SSL.  The error numbers and messages are different.  I'm having no other issues and cannot replicate the problems of the other OP.  For completeness, here's the output requested in that thread with no sign of any trouble:
curl -v https //www.google.com >/dev/null
curl -v https //aur.archlinux.org/nerd-fonts-complete.git/ >/dev/null

$ pacman -Qkk openssl
openssl: 4107 total files, 0 altered files

(I replaced the : in the urls to the curl commands above with spaces just for posting here as the forum kept complainging about a url within a url).

Edit: I also can't replicate their error with:

curl -vL 'https://github.com/ryanoasis/nerd-fonts/archive/v2.1.0.tar.gz'

Last edited by Trilby (2020-03-22 15:00:35)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2020-03-22 18:49:16

monodromy
Member
Registered: 2014-02-08
Posts: 62

Re: [SOLVED] mbsync:error:14095126:SSL routines:ssl3_read_n:unexpected eof

I've been getting this as well. I believe the following are the relevant bug reports:

https://github.com/openssl/openssl/issues/10880

https://github.com/openssl/openssl/pull/10882

https://github.com/urllib3/urllib3/issues/1825

To my untrained eye, this does not look worrisome.

Offline

#5 2020-03-22 20:08:02

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,525
Website

Re: [SOLVED] mbsync:error:14095126:SSL routines:ssl3_read_n:unexpected eof

I have seen an increase in mail not being flagged as read on the outlook server despite being read locally.  Perhaps that is related if - from reading those issues - the server isn't recieving/processing all the transmitted data.  Though that's of fairly trivial concern to me.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#6 2020-03-24 18:37:18

barbeque
Member
Registered: 2020-03-24
Posts: 2

Re: [SOLVED] mbsync:error:14095126:SSL routines:ssl3_read_n:unexpected eof

I'm getting the same behaviour but on PHP: 1.1.1.d-2 works fine, 1.1.1.e-1 throws a warning. When used in a script it continues just fine and the end result is the same. Curl doesn't appear to be affected and doesn't throw any warnings or errors. It seems to be just some extra verbosity (for now), usually at the very end of whatever it was downloading (when it wants to close the connection, I guess -- might also explain why emails are not being marked as read on the server?).

1.1.1.d-2

$ openssl version
OpenSSL 1.1.1d  10 Sep 2019
$ php --run 'file_get_contents("https://google.com");'
$ 

1.1.1.e-1

$ openssl version
OpenSSL 1.1.1e  17 Mar 2020
$ php --run 'file_get_contents("https://google.com");'
PHP Warning:  file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
error:14095126:SSL routines:ssl3_read_n:unexpected eof while reading in Command line code on line 1

Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
error:14095126:SSL routines:ssl3_read_n:unexpected eof while reading in Command line code on line 1
$ 

For what I'm using it for it's annoying because it's not silent, but it still works.

Offline

#7 2020-03-26 04:34:37

loqs
Member
Registered: 2014-03-06
Posts: 17,369

Re: [SOLVED] mbsync:error:14095126:SSL routines:ssl3_read_n:unexpected eof

https://github.com/openssl/openssl/pull/11400 should be reverted for 1.1.1f

Offline

#8 2020-03-26 13:07:06

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,525
Website

Re: [SOLVED] mbsync:error:14095126:SSL routines:ssl3_read_n:unexpected eof

Thanks.  I can't claim to understand much of that, but if upstream is working on it, I'll consider it solved.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB