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

An unexpected AMQP error occurred #179

Open
dustymabe opened this issue May 22, 2019 · 1 comment
Open

An unexpected AMQP error occurred #179

dustymabe opened this issue May 22, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@dustymabe
Copy link

fedora-messaging-1.6.0-1.fc30.noarch

I set up a listener to listen to all messages "#" and then ran it overnight. I had this pop up in the logs several times and was asked to open a bug for it:

[ERROR fedora_messaging.twisted.protocol] An unexpected AMQP error occurred; the connection should restart, but please report this as a bug.
Traceback (most recent call last):
  File "/usr/lib64/python3.7/site-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks
    result = g.send(result)
  File "/usr/lib/python3.7/site-packages/fedora_messaging/twisted/protocol.py", line 277, in _read
    yield channel.basic_ack(delivery_tag=delivery_frame.delivery_tag)                                                                                                                                              
  File "/usr/lib/python3.7/site-packages/pika/adapters/twisted_connection.py", line 338, in basic_ack
    delivery_tag=delivery_tag, multiple=multiple)                                                                                                                                               
  File "/usr/lib/python3.7/site-packages/pika/channel.py", line 202, in basic_ack
    self._raise_if_not_open()
  File "/usr/lib/python3.7/site-packages/pika/channel.py", line 1389, in _raise_if_not_open
    raise exceptions.ChannelWrongStateError('Channel is closed.')
pika.exceptions.ChannelWrongStateError: Channel is closed.

The connection did resume and it seems like everything continued to work.

@jeremycline jeremycline added the bug Something isn't working label May 24, 2019
@jeremycline
Copy link
Member

I think there are two things that need to get fixed here:

  1. Ack failures should be handled more gracefully in the read loop.

  2. Something failed earlier on (which is why the channel is closed) and it wasn't noticed until an ack occurred. It might just be that the connection got closed while the callback was running, but it's worth a closer examination.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Proposed
Development

No branches or pull requests

2 participants