ssl.SSLEOFError: EOF occurred in violation of protocol

Bug #1363356 reported by Jorma Hytonen
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
python-defaults (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Python script: yowsup-cli --sync <number> --config yowsup-cli.config
Syncing 1 contacts

Traceback (most recent call last):
File "./yowsup-cli", line 302, in <module>
    result = wsync.send()

File "/usr/lib/python2.7/ssl.py", line 405, in do_handshake
  self._sslobj.do_handshake()
ssl.SSLError: [Errno 8] _ssl.c:510: EOF occurred in violation of protocol

and

 File "/usr/lib/python3.4/ssl.py", line 805, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:598)

Try PROTOCOL_SSLv23 or PROTOCOL_TLSv1 -> Same result

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: python 2.7.5-5ubuntu3
ProcVersionSignature: Ubuntu 3.13.0-35.62-generic 3.13.11.6
Uname: Linux 3.13.0-35-generic i686
ApportVersion: 2.14.1-0ubuntu3.3
Architecture: i386
CurrentDesktop: KDE
Date: Sat Aug 30 09:13:19 2014
SourcePackage: python-defaults
UpgradeStatus: Upgraded to trusty on 2014-04-23 (129 days ago)

Revision history for this message
Jorma Hytonen (jorma-hytonen-gmail) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in python-defaults (Ubuntu):
status: New → Confirmed
Revision history for this message
Dustin Falgout (lots0logs) wrote :

I ran into this issue today after installing available updates. One of the packages included in the updates was openssl 1.0.1f-1ubuntu9.1

```
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/gevent-1.0.1-py2.7-linux-x86_64.egg/gevent/greenlet.py", line 327, in run
    result = self._run(*self.args, **self.kwargs)
  File "/usr/local/lib/python2.7/dist-packages/gevent-1.0.1-py2.7-linux-x86_64.egg/gevent/server.py", line 102, in wrap_socket_and_handle
    ssl_socket = self.wrap_socket(client_socket, **self.ssl_args)
  File "/usr/local/lib/python2.7/dist-packages/gevent-1.0.1-py2.7-linux-x86_64.egg/gevent/ssl.py", line 383, in wrap_socket
    ciphers=ciphers)
  File "/usr/local/lib/python2.7/dist-packages/gevent-1.0.1-py2.7-linux-x86_64.egg/gevent/ssl.py", line 94, in __init__
    self.do_handshake()
  File "/usr/local/lib/python2.7/dist-packages/gevent-1.0.1-py2.7-linux-x86_64.egg/gevent/ssl.py", line 305, in do_handshake
    return self._sslobj.do_handshake()
SSLEOFError: EOF occurred in violation of protocol (_ssl.c:581)
```

Revision history for this message
Coiby Xu (coiby) wrote :

This bug also troubles me.

Revision history for this message
Eli Qiao (taget-9) wrote :
Revision history for this message
Tyler Hicks (tyhicks) wrote :

Thanks for the bug reports. Do any of you affected folks have a simple reproducer? I'm unable to reproduce the bug but I also cannot get `yowsup-cli registration` to work (pulled from github) and I don't know what kind of setup is needed to reproduce Eli's issue.

A simple reproducer would go a long way in triaging this bug. Thanks!

Revision history for this message
gensmusic (gensmusic) wrote :

Same error here when I sue ssl in a thread(not main thread)
ubuntu 14.10 python 2.7.8

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.