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

Stompy errors in matcher #8056

Open
chrisburr opened this issue Feb 22, 2025 · 3 comments
Open

Stompy errors in matcher #8056

chrisburr opened this issue Feb 22, 2025 · 3 comments

Comments

@chrisburr
Copy link
Member

2025-02-22 04:46:24 UTC WorkloadManagement/Matcher WARN: Sleeping as service requested throttling WorkloadManagement/Matcher
error sending frame
Traceback (most recent call last):
  File "/opt/dirac/versions/v11.0.58-1739363684/Linux-x86_64/lib/python3.11/site-packages/DIRAC/Resources/MessageQueue/StompMQConnector.py", line 177, in put
    self.connection.send(body=json.dumps(message), destination=destination)
  File "/opt/dirac/versions/v11.0.58-1739363684/Linux-x86_64/lib/python3.11/site-packages/stomp/protocol.py", line 402, in send
    self.send_frame(CMD_SEND, headers, body)
  File "/opt/dirac/versions/v11.0.58-1739363684/Linux-x86_64/lib/python3.11/site-packages/stomp/protocol.py", line 246, in send_frame
    self.transport.transmit(frame)
  File "/opt/dirac/versions/v11.0.58-1739363684/Linux-x86_64/lib/python3.11/site-packages/stomp/transport.py", line 269, in transmit
    self.send(packed_frame)
  File "/opt/dirac/versions/v11.0.58-1739363684/Linux-x86_64/lib/python3.11/site-packages/stomp/transport.py", line 629, in send
    raise exception.NotConnectedException()
stomp.exception.NotConnectedException

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/dirac/versions/v11.0.58-1739363684/Linux-x86_64/lib/python3.11/site-packages/DIRAC/Resources/MessageQueue/StompMQConnector.py", line 206, in connect
    self.connection.connect(username=user, passcode=password, wait=True)
  File "/opt/dirac/versions/v11.0.58-1739363684/Linux-x86_64/lib/python3.11/site-packages/stomp/connect.py", line 151, in connect
    Protocol11.connect(self, *args, **kwargs)
  File "/opt/dirac/versions/v11.0.58-1739363684/Linux-x86_64/lib/python3.11/site-packages/stomp/protocol.py", line 336, in connect
    self.send_frame(cmd, headers)
  File "/opt/dirac/versions/v11.0.58-1739363684/Linux-x86_64/lib/python3.11/site-packages/stomp/protocol.py", line 246, in send_frame
    self.transport.transmit(frame)
  File "/opt/dirac/versions/v11.0.58-1739363684/Linux-x86_64/lib/python3.11/site-packages/stomp/transport.py", line 269, in transmit
    self.send(packed_frame)
  File "/opt/dirac/versions/v11.0.58-1739363684/Linux-x86_64/lib/python3.11/site-packages/stomp/transport.py", line 629, in send
    raise exception.NotConnectedException()
stomp.exception.NotConnectedException

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/dirac/versions/v11.0.58-1739363684/Linux-x86_64/lib/python3.11/site-packages/DIRAC/Resources/MessageQueue/StompMQConnector.py", line 177, in put
    self.connection.send(body=json.dumps(message), destination=destination)
  File "/opt/dirac/versions/v11.0.58-1739363684/Linux-x86_64/lib/python3.11/site-packages/stomp/protocol.py", line 402, in send
    self.send_frame(CMD_SEND, headers, body)
  File "/opt/dirac/versions/v11.0.58-1739363684/Linux-x86_64/lib/python3.11/site-packages/stomp/protocol.py", line 246, in send_frame
    self.transport.transmit(frame)
  File "/opt/dirac/versions/v11.0.58-1739363684/Linux-x86_64/lib/python3.11/site-packages/stomp/transport.py", line 269, in transmit
    self.send(packed_frame)
  File "/opt/dirac/versions/v11.0.58-1739363684/Linux-x86_64/lib/python3.11/site-packages/stomp/transport.py", line 629, in send
    raise exception.NotConnectedException()
stomp.exception.NotConnectedException

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/dirac/versions/v11.0.58-1739363684/Linux-x86_64/lib/python3.11/site-packages/stomp/transport.py", line 623, in send
    self.socket.sendall(encoded_frame)
OSError: [Errno 9] Bad file descriptor
error sending frame
Traceback (most recent call last):
  File "/opt/dirac/versions/v11.0.58-1739363684/Linux-x86_64/lib/python3.11/site-packages/stomp/transport.py", line 623, in send
    self.socket.sendall(encoded_frame)
    ^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'sendall'
@chaen
Copy link
Contributor

chaen commented Feb 24, 2025

Hum, I was convinced I had fixed it with f11a014
:-(

@chrisburr
Copy link
Member Author

My proposed solution is: #8057

@chaen
Copy link
Contributor

chaen commented Feb 28, 2025

I fail to see how that fixes it ?

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

2 participants