Skip to content

Sometimes the STOMP consumer disconnects #176

@abompard

Description

@abompard

This may be caused by this traceback in the logs:

2025-09-18 13:44:29,035 [bugzilla2fedmsg.consumer DEBUG] Sending heartbeat
2025-09-18 13:44:34,392 [bugzilla2fedmsg ERROR] Disconnected: 
Traceback (most recent call last):
  File "/opt/app-root/lib64/python3.9/site-packages/stompest/sync/transport.py", line 75, in receive
    raise StompConnectionError('No more data')
stompest.error.StompConnectionError: No more data

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/app-root/src/bugzilla2fedmsg/__init__.py", line 35, in cli
    consumer.consume()
  File "/opt/app-root/src/bugzilla2fedmsg/consumer.py", line 90, in consume
    frame = self.stomp.receiveFrame()
  File "/opt/app-root/lib64/python3.9/site-packages/stompest/sync/client.py", line 348, in receiveFrame
    if self.canRead():
  File "/opt/app-root/lib64/python3.9/site-packages/stompest/util/__init__.py", line 18, in __checkattr
    return f(self, *args, **kwargs)
  File "/opt/app-root/lib64/python3.9/site-packages/stompest/sync/client.py", line 323, in canRead
    frame = self._transport.receive()
  File "/opt/app-root/lib64/python3.9/site-packages/stompest/sync/transport.py", line 78, in receive
    raise StompConnectionError('Connection closed [%s]' % e)
stompest.error.StompConnectionError: Connection closed [No more data]
2025-09-18 13:44:35,180 [bugzilla2fedmsg.consumer DEBUG] Sending heartbeat
Exception in thread Thread-200231:
Traceback (most recent call last):
  File "/usr/lib64/python3.9/threading.py", line 980, in _bootstrap_inner
    self.run()
  File "/usr/lib64/python3.9/threading.py", line 1306, in run
    self.function(*self.args, **self.kwargs)
  File "/opt/app-root/src/bugzilla2fedmsg/consumer.py", line 118, in _send_heartbeat
    self.stomp.beat()
  File "/opt/app-root/lib64/python3.9/site-packages/stompest/util/__init__.py", line 17, in __checkattr
    getattr(self, attribute)
  File "/opt/app-root/lib64/python3.9/site-packages/stompest/sync/client.py", line 366, in _transport
    raise e
  File "/opt/app-root/lib64/python3.9/site-packages/stompest/sync/client.py", line 363, in _transport
    transport.canRead(0)
  File "/opt/app-root/lib64/python3.9/site-packages/stompest/sync/transport.py", line 29, in canRead
    self._check()
  File "/opt/app-root/lib64/python3.9/site-packages/stompest/sync/transport.py", line 89, in _check
    raise StompConnectionError('Not connected')
stompest.error.StompConnectionError: Not connected
2025-09-18 13:44:37,396 [bugzilla2fedmsg.consumer DEBUG] STOMP consumer is connecting...
2025-09-18 13:44:38,036 [bugzilla2fedmsg.consumer DEBUG] Sending heartbeat
2025-09-18 13:44:38,036 [bugzilla2fedmsg.consumer DEBUG] Sending heartbeat
Exception in thread Thread-200232:
Traceback (most recent call last):
  File "/usr/lib64/python3.9/threading.py", line 980, in _bootstrap_inner
    self.run()
  File "/usr/lib64/python3.9/threading.py", line 1306, in run
    self.function(*self.args, **self.kwargs)
  File "/opt/app-root/src/bugzilla2fedmsg/consumer.py", line 118, in _send_heartbeat
    self.stomp.beat()
  File "/opt/app-root/lib64/python3.9/site-packages/stompest/util/__init__.py", line 17, in __checkattr
    getattr(self, attribute)
  File "/opt/app-root/lib64/python3.9/site-packages/stompest/sync/client.py", line 361, in _transport
    raise StompConnectionError('Not connected')
stompest.error.StompConnectionError: Not connected
2025-09-18 13:44:39,444 [bugzilla2fedmsg.consumer INFO] STOMP consumer is ready
2025-09-18 13:44:48,444 [bugzilla2fedmsg.consumer DEBUG] Sending heartbeat

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions