question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unhandled Exception in Connection Loop: RuntimeError: ('xids do not match, expected %r received %r', 28, 27)

See original GitHub issue

Two days ago we upgraded our servers from Kazoo 1.3.1 -> Kazoo 2.0. We started seeing a 10x increase in the number of connection failures … and the recovery of those connections is far worse too. It looks like we’re seeing a new exception being raised that we did not see before.

        "stack_trace": [
            "Traceback (most recent call last):", 
            "  File '/mnt/.venv/lib/python2.7/site-packages/kazoo/protocol/connection.py', line 531, in _connect_attempt", 
            "    response = self._read_socket(read_timeout)", 
            "  File '/mnt/.venv/lib/python2.7/site-packages/kazoo/protocol/connection.py', line 407, in _read_socket", 
            "    return self._read_response(header, buffer, offset)", 
            "  File '/mnt/.venv/lib/python2.7/site-packages/kazoo/protocol/connection.py', line 338, in _read_response", 
            "    'received %r', xid, header.xid)", 
            "RuntimeError: ('xids do not match, expected %r received %r', 28, 27)"

This is being caught by kazoo.client and throwing the Unhandled exception in connection loop error. I’m completely stumped, I can’t seem to replicate this in my own dev environment… and it only happens sporadically in production.

Issue Analytics

  • State:open
  • Created 9 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
rgs1commented, Nov 24, 2014

@diranged curious, are you using authentication? (i.e.: add_auth calls). The reason I ask is because of https://github.com/python-zk/kazoo/commit/15b7632fba6cbb2f31bda95eb4ca4ad327c04919. Not sure if related.

Also, what’s running on your servers? I do see this is from time to time on 3.5 (i.e.: ZK out of trunk from a couple of months ago + patches).

0reactions
jeffwidmancommented, Jul 24, 2017

bump @diranged any updates per above?

Is it still reproducible?

Read more comments on GitHub >

github_iconTop Results From Across the Web

All in one OpenAirInterface – 4G and 5G reference software
Hi laurent. The commit number for EPC of gitlab openair-cn does not exist error: pathspec '7c5cad' did not match any file(s) known to...
Read more >
Why do I get an 'Unhandled exception in event loop' error on ...
I managed to solve the problem. There is some incompatibility between the ipython v7.10.2 and prompt toolkit v3.x.
Read more >
Appendix D. MySQL Change History - Oracle Help Center
This appendix lists the changes from version to version in the MySQL source code through the latest version of MySQL 5.5, which is...
Read more >
TXR Solutions to Rosetta Code Problems
This example naturally handles empty strings, since the first_last function simply does not match such inputs. Here is how to embed the task's...
Read more >
Fix List for DB2 Version 9.7 for Linux, UNIX and Windows - IBM
APAR Sev. Abstract IT06632 2 INSTANCE TRAPPED AT SQLRH_FREE_CSO WITH SIG#11 IT09175 2 DB2 CRASH AT SQLNGMEMBLOCKLOOKUP IT03500 3 LOW PERFORMANCE OF QUERIES ON ADMSINTABINFO
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found