[systemd-devel] SSL handshake error from offlineimap when using systemd to initialize

Lennart Poettering lennart at poettering.net
Mon Jan 22 12:54:36 UTC 2018


On So, 21.01.18 19:12, Yubin Ruan (ablacktshirt at gmail.com) wrote:

> Hi,
> 
> I use offlineimap to synchronize my emails. I want it to do a synchronization
> at system startup so recently I add a systemd service for it. However I always
> get error like this:
> 
>    EOF occurred in violation of protocol (_ssl.c:590)

This suggests your network doesn't work when you invoke this.

>     1. usually (after system startup) the same service is invoked by a timer
>     and it works well so there is no problem with the script.
> 
>     2. I believe the network is reachable, because the system will
>     auto-connect WIFI after system startup. Maybe the initialization order is
>     not configured properly? If so please see my mail service file
>     below.

Well, this is necessarily racy: your network setup races agains your
offlineimap invocation...

> I heard that to perform a SSL handshake the system have to contain some
> randomness (such that some random keys can be generated), so maybe a SSL
> handshake at system startup is deemed to fail?

I doubt this is related.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list