{"action":"created","issue":{"url":"https://api.github.com/repos/pyca/cryptography/issues/2471","labels_url":"https://api.github.com/repos/pyca/cryptography/issues/2471/labels{/name}","comments_url":"https://api.github.com/repos/pyca/cryptography/issues/2471/comments","events_url":"https://api.github.com/repos/pyca/cryptography/issues/2471/events","html_url":"https://github.com/pyca/cryptography/issues/2471","id":115748480,"number":2471,"title":"Unkown OpenSSL Error","user":{"login":"chriscalitz","id":945152,"avatar_url":"https://avatars.githubusercontent.com/u/945152?v=3","gravatar_id":"","url":"https://api.github.com/users/chriscalitz","html_url":"https://github.com/chriscalitz","followers_url":"https://api.github.com/users/chriscalitz/followers","following_url":"https://api.github.com/users/chriscalitz/following{/other_user}","gists_url":"https://api.github.com/users/chriscalitz/gists{/gist_id}","starred_url":"https://api.github.com/users/chriscalitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriscalitz/subscriptions","organizations_url":"https://api.github.com/users/chriscalitz/orgs","repos_url":"https://api.github.com/users/chriscalitz/repos","events_url":"https://api.github.com/users/chriscalitz/events{/privacy}","received_events_url":"https://api.github.com/users/chriscalitz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pyca/cryptography/labels/bindings","name":"bindings","color":"fef2c0"},{"url":"https://api.github.com/repos/pyca/cryptography/labels/bugs","name":"bugs","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":27,"created_at":"2015-11-08T17:47:33Z","updated_at":"2015-12-23T20:06:17Z","closed_at":null,"body":"So I'm getting the following errors on Ubuntu server with Python 2.7 installed in Virtualenv.\r\n\r\nOpenSSL 1.0.1 14 Mar 2012\r\nPython 2.7.3\r\n\r\nIt seems to be very intermitted and I'm yet to find the comman thing which causes this issue.\r\n\r\nAny ideas?\r\n```\r\nTraceback (most recent call last): \r\n\r\nFile \"/home/username/.virtualenvs/env/lib/python2.7/site-packages/django/core/handlers/base.py\", line 92, in get_response \r\nresponse = middleware_method(request) \r\n\r\nFile \"/home/username/.virtualenvs/env/lib/python2.7/site-packages/django/middleware/locale.py\", line 21, in process_request \r\ncheck_path = self.is_language_prefix_patterns_used() \r\n\r\nFile \"/home/username/.virtualenvs/env/lib/python2.7/site-packages/django/middleware/locale.py\", line 56, in is_language_prefix_patterns_used \r\nfor url_pattern in get_resolver(None).url_patterns: \r\n\r\nFile \"/home/username/.virtualenvs/env/lib/python2.7/site-packages/django/core/urlresolvers.py\", line 347, in url_patterns \r\npatterns = getattr(self.urlconf_module, \"urlpatterns\", self.urlconf_module) \r\n\r\nFile \"/home/username/.virtualenvs/env/lib/python2.7/site-packages/django/core/urlresolvers.py\", line 342, in urlconf_module \r\nself._urlconf_module = import_module(self.urlconf_name) \r\n\r\nFile \"/home/username/.virtualenvs/env/lib/python2.7/site-packages/django/utils/importlib.py\", line 35, in import_module \r\n__import__(name) \r\n\r\nFile \"/var/www/example.com/htdocs/community/urls.py\", line 14, in <module> \r\nadmin.autodiscover() \r\n\r\nFile \"/home/username/.virtualenvs/env/lib/python2.7/site-packages/django/contrib/admin/__init__.py\", line 29, in autodiscover \r\nimport_module('%s.admin' % app) \r\n\r\nFile \"/home/username/.virtualenvs/env/lib/python2.7/site-packages/django/utils/importlib.py\", line 35, in import_module \r\n__import__(name) \r\n\r\nFile \"/home/username/.virtualenvs/env/lib/python2.7/site-packages/djcelery/admin.py\", line 295, in <module> \r\nclass PeriodicTaskAdmin(admin.ModelAdmin): \r\n\r\nFile \"/home/username/.virtualenvs/env/lib/python2.7/site-packages/djcelery/admin.py\", line 297, in PeriodicTaskAdmin \r\nform = periodic_task_form() \r\n\r\nFile \"/home/username/.virtualenvs/env/lib/python2.7/site-packages/djcelery/admin.py\", line 251, in periodic_task_form \r\ncurrent_app.loader.import_default_modules() \r\n\r\nFile \"/home/username/.virtualenvs/env/lib/python2.7/site-packages/djcelery/loaders.py\", line 140, in import_default_modules \r\nsuper(DjangoLoader, self).import_default_modules() \r\n\r\nFile \"/home/username/.virtualenvs/env/lib/python2.7/site-packages/celery/loaders/base.py\", line 121, in import_default_modules \r\ntuple(maybe_list(self.app.conf.CELERY_INCLUDE)) \r\n\r\nFile \"/home/username/.virtualenvs/env/lib/python2.7/site-packages/celery/loaders/base.py\", line 103, in import_task_module \r\nreturn self.import_from_cwd(module) \r\n\r\nFile \"/home/username/.virtualenvs/env/lib/python2.7/site-packages/celery/loaders/base.py\", line 112, in import_from_cwd \r\npackage=package, \r\n\r\nFile \"/home/username/.virtualenvs/env/lib/python2.7/site-packages/celery/utils/imports.py\", line 101, in import_from_cwd \r\nreturn imp(module, package=package) \r\n\r\nFile \"/home/username/.virtualenvs/env/lib/python2.7/site-packages/celery/loaders/base.py\", line 106, in import_module \r\nreturn importlib.import_module(module, package=package) \r\n\r\nFile \"/usr/lib/python2.7/importlib/__init__.py\", line 37, in import_module \r\n__import__(name) \r\n\r\nFile \"/var/www/example.com/htdocs/community/overview/tasks.py\", line 23, in <module> \r\nfrom community.overview.views import savePeopleChanges \r\n\r\nFile \"/var/www/example.com/htdocs/community/overview/views.py\", line 26, in <module> \r\nfrom community.gdrive.files import insert_file \r\n\r\nFile \"/var/www/example.com/htdocs/community/gdrive/files.py\", line 4, in <module> \r\nfrom apiclient import errors \r\n\r\nFile \"/home/username/.virtualenvs/env/lib/python2.7/site-packages/apiclient/__init__.py\", line 19, in <module> \r\nfrom googleapiclient import discovery \r\n\r\nFile \"/home/username/.virtualenvs/env/lib/python2.7/site-packages/googleapiclient/discovery.py\", line 68, in <module> \r\nfrom oauth2client.client import GoogleCredentials \r\n\r\nFile \"/home/username/.virtualenvs/env/lib/python2.7/site-packages/oauth2client/client.py\", line 53, in <module> \r\nfrom oauth2client import crypt \r\n\r\nFile \"/home/username/.virtualenvs/env/lib/python2.7/site-packages/oauth2client/crypt.py\", line 45, in <module> \r\nfrom oauth2client._openssl_crypt import OpenSSLVerifier \r\n\r\nFile \"/home/username/.virtualenvs/env/lib/python2.7/site-packages/oauth2client/_openssl_crypt.py\", line 18, in <module> \r\nfrom OpenSSL import crypto \r\n\r\nFile \"/home/username/.virtualenvs/env/lib/python2.7/site-packages/OpenSSL/__init__.py\", line 8, in <module> \r\nfrom OpenSSL import rand, crypto, SSL \r\n\r\nFile \"/home/username/.virtualenvs/env/lib/python2.7/site-packages/OpenSSL/rand.py\", line 11, in <module> \r\nfrom OpenSSL._util import ( \r\n\r\nFile \"/home/username/.virtualenvs/env/lib/python2.7/site-packages/OpenSSL/_util.py\", line 6, in <module> \r\nfrom cryptography.hazmat.bindings.openssl.binding import Binding \r\n\r\nFile \"/home/username/.virtualenvs/env/lib/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py\", line 182, in <module> \r\nBinding.init_static_locks() \r\n\r\nFile \"/home/username/.virtualenvs/env/lib/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py\", line 139, in init_static_locks \r\ncls._ensure_ffi_initialized() \r\n\r\nFile \"/home/username/.virtualenvs/env/lib/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py\", line 134, in _ensure_ffi_initialized \r\ncls._register_osrandom_engine() \r\n\r\nFile \"/home/username/.virtualenvs/env/lib/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py\", line 99, in _register_osrandom_engine \r\n_openssl_assert(cls.lib, cls.lib.ERR_peek_error() == 0) \r\n\r\nFile \"/home/username/.virtualenvs/env/lib/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py\", line 43, in _openssl_assert \r\nerrors \r\n\r\nInternalError: Unknown OpenSSL error. Please file an issue at https://github.com/pyca/cryptography/issues with information on how to reproduce this. \r\n```"},"comment":{"url":"https://api.github.com/repos/pyca/cryptography/issues/comments/166981459","html_url":"https://github.com/pyca/cryptography/issues/2471#issuecomment-166981459","issue_url":"https://api.github.com/repos/pyca/cryptography/issues/2471","id":166981459,"user":{"login":"dkliban","id":294339,"avatar_url":"https://avatars.githubusercontent.com/u/294339?v=3","gravatar_id":"","url":"https://api.github.com/users/dkliban","html_url":"https://github.com/dkliban","followers_url":"https://api.github.com/users/dkliban/followers","following_url":"https://api.github.com/users/dkliban/following{/other_user}","gists_url":"https://api.github.com/users/dkliban/gists{/gist_id}","starred_url":"https://api.github.com/users/dkliban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkliban/subscriptions","organizations_url":"https://api.github.com/users/dkliban/orgs","repos_url":"https://api.github.com/users/dkliban/repos","events_url":"https://api.github.com/users/dkliban/events{/privacy}","received_events_url":"https://api.github.com/users/dkliban/received_events","type":"User","site_admin":false},"created_at":"2015-12-23T20:06:17Z","updated_at":"2015-12-23T20:06:17Z","body":"@reaperhulk Here is the new traceback:\r\n```\r\nTraceback (most recent call last):\r\n  File \"/home/vagrant/.virtualenvs/pulp/lib/python2.7/site-packages/nose/loader.py\", line 418, in loadTestsFromName\r\n    addr.filename, addr.module)\r\n  File \"/home/vagrant/.virtualenvs/pulp/lib/python2.7/site-packages/nose/importer.py\", line 47, in importFromPath\r\n    return self.importFromDir(dir_path, fqname)\r\n  File \"/home/vagrant/.virtualenvs/pulp/lib/python2.7/site-packages/nose/importer.py\", line 94, in importFromDir\r\n    mod = load_module(part_fqname, fh, filename, desc)\r\n  File \"/home/vagrant/devel/pulp/streamer/test/unit/streamer/test_config.py\", line 3, in <module>\r\n    from pulp.streamer.config import load_configuration, DEFAULT_VALUES\r\n  File \"/home/vagrant/devel/pulp/streamer/pulp/streamer/__init__.py\", line 2, in <module>\r\n    from pulp.streamer.server import Streamer, Responder, StreamerListener  # noqa\r\n  File \"/home/vagrant/devel/pulp/streamer/pulp/streamer/server.py\", line 9, in <module>\r\n    from twisted.internet import reactor\r\n  File \"/usr/lib64/python2.7/site-packages/twisted/internet/reactor.py\", line 38, in <module>\r\n    from twisted.internet import default\r\n  File \"/usr/lib64/python2.7/site-packages/twisted/internet/default.py\", line 56, in <module>\r\n    install = _getInstallFunction(platform)\r\n  File \"/usr/lib64/python2.7/site-packages/twisted/internet/default.py\", line 44, in _getInstallFunction\r\n    from twisted.internet.epollreactor import install\r\n  File \"/usr/lib64/python2.7/site-packages/twisted/internet/epollreactor.py\", line 24, in <module>\r\n    from twisted.internet import posixbase\r\n  File \"/usr/lib64/python2.7/site-packages/twisted/internet/posixbase.py\", line 24, in <module>\r\n    from twisted.internet import error, udp, tcp\r\n  File \"/usr/lib64/python2.7/site-packages/twisted/internet/tcp.py\", line 29, in <module>\r\n    from twisted.internet._newtls import (\r\n  File \"/usr/lib64/python2.7/site-packages/twisted/internet/_newtls.py\", line 21, in <module>\r\n    from twisted.protocols.tls import TLSMemoryBIOFactory, TLSMemoryBIOProtocol\r\n  File \"/usr/lib64/python2.7/site-packages/twisted/protocols/tls.py\", line 41, in <module>\r\n    from OpenSSL.SSL import Error, ZeroReturnError, WantReadError\r\n  File \"/usr/lib/python2.7/site-packages/OpenSSL/__init__.py\", line 8, in <module>\r\n    from OpenSSL import rand, crypto, SSL\r\n  File \"/usr/lib/python2.7/site-packages/OpenSSL/rand.py\", line 11, in <module>\r\n    from OpenSSL._util import (\r\n  File \"/usr/lib/python2.7/site-packages/OpenSSL/_util.py\", line 6, in <module>\r\n    from cryptography.hazmat.bindings.openssl.binding import Binding\r\n  File \"/usr/lib64/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py\", line 182, in <module>\r\n    Binding.init_static_locks()\r\n  File \"/usr/lib64/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py\", line 139, in init_static_locks\r\n    cls._ensure_ffi_initialized()\r\n  File \"/usr/lib64/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py\", line 134, in _ensure_ffi_initialized\r\n    cls._register_osrandom_engine()\r\n  File \"/usr/lib64/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py\", line 99, in _register_osrandom_engine\r\n    _openssl_assert(cls.lib, cls.lib.ERR_peek_error() == 0)\r\n  File \"/usr/lib64/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py\", line 43, in _openssl_assert\r\n    errors\r\nInternalError: Unknown OpenSSL error. Please file an issue at https://github.com/pyca/cryptography/issues with information on how to reproduce this. ([_OpenSSLError(code=67530866L, lib=4, func=103, reason=114)])\r\n```"}}