Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenSSL.SSL.Error: [('SSL routines', '', 'unexpected eof while reading')] #280

Open
FrostyX opened this issue Nov 30, 2022 · 0 comments
Open

Comments

@FrostyX
Copy link

FrostyX commented Nov 30, 2022

I am running my consumer like this:

PYTHONPATH=. fedora-messaging --conf fedora.toml consume --callback="fedora_review_service.consumer:consume"

and from time to time (on daily basis) it crashes with the following
traceback. To me, it doesn't look like an exception that I am supposed
to catch in my code but rather a bug. But I may be wrong, I am a
fedora-messaging newbie :-)

[INFO fedora_messaging.twisted.consumer] Successfully consumed message from topic org.fedoraproject.prod.buildsys.task.state.change (message id ed262706-2d25-47fa-b43a-62b990424b81)
[ERROR pika.adapters.twisted_connection] connection_lost: Error([('SSL routines', '', 'unexpected eof while reading')]) 
[ERROR fedora_messaging.cli] Unexpected error occurred in consumer Consumer(queue=amq.gen-AVQalMHEgxxzEaZd_MBXhA, callback=<function consume at 0x7fbefc7b5ea0>): <twisted.python.failure.Failure OpenSSL.SSL.Error: [('SSL routines', '', 'une
xpected eof while reading')]>   
[INFO twisted] <twisted.internet.tcp.Connector instance at 0x7fbefb9ea080 disconnected IPv4Address(type='TCP', host='rabbitmq.fedoraproject.org', port=5671)> will retry in 2 seconds
[INFO twisted] Stopping factory FedoraMessagingFactoryV2(parameters=<URLParameters host=rabbitmq.fedoraproject.org port=5671 virtual_host=/public_pubsub ssl=True>, confirms=True)
[INFO fedora_messaging.twisted.protocol] Disconnect requested, but AMQP connection already gone
[INFO fedora_messaging.twisted.protocol] Disconnect requested, but AMQP connection already gone
[INFO twisted] Main loop terminated.
Unhandled error in Deferred:
[CRITICAL twisted] Unhandled error in Deferred:

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/twisted/internet/defer.py", line 763, in _startRunCallbacks
    self._runCallbacks()
  File "/usr/lib/python3.10/site-packages/twisted/internet/defer.py", line 857, in _runCallbacks
    current.result = callback(  # type: ignore[misc]
  File "/usr/lib/python3.10/site-packages/twisted/internet/defer.py", line 1750, in gotResult
    current_context.run(_inlineCallbacks, r, gen, status)
  File "/usr/lib/python3.10/site-packages/twisted/internet/defer.py", line 1740, in _inlineCallbacks
    status.deferred.errback()
--- <exception caught here> ---
  File "/usr/lib/python3.10/site-packages/fedora_messaging/twisted/consumer.py", line 340, in cancel
    yield self._channel.basic_cancel(consumer_tag=self._tag)
  File "/usr/lib/python3.10/site-packages/twisted/internet/defer.py", line 1656, in _inlineCallbacks
    result = current_context.run(
  File "/usr/lib/python3.10/site-packages/twisted/python/failure.py", line 514, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/usr/lib/python3.10/site-packages/fedora_messaging/twisted/consumer.py", line 172, in _read
    yield self._read_one(queue_object)
  File "/usr/lib/python3.10/site-packages/twisted/internet/defer.py", line 1656, in _inlineCallbacks
    result = current_context.run(
  File "/usr/lib/python3.10/site-packages/twisted/python/failure.py", line 514, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/usr/lib/python3.10/site-packages/fedora_messaging/twisted/consumer.py", line 179, in _read_one
    channel, delivery_frame, properties, body = yield deferred_get
  File "/usr/lib/python3.10/site-packages/twisted/protocols/tls.py", line 275, in _flushReceiveBIO
    bytes = self._tlsConnection.recv(2 ** 15)
  File "/usr/lib/python3.10/site-packages/OpenSSL/SSL.py", line 1768, in recv
    self._raise_ssl_error(self._ssl, result)
  File "/usr/lib/python3.10/site-packages/OpenSSL/SSL.py", line 1632, in _raise_ssl_error
    _raise_current_error()
  File "/usr/lib/python3.10/site-packages/OpenSSL/_util.py", line 57, in exception_from_error_queue
    raise exception_type(errors)
OpenSSL.SSL.Error: [('SSL routines', '', 'unexpected eof while reading')]

Package version: python3-fedora-messaging-3.2.0-5.fc36.noarch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant