Skip to content
Advertisement

Packet sequence number wrong – got 1 expected 0

Getting the below error in MariaDb and its causing timeout issue : Debugged it with removing skip-name-resolve, granting privileges to user@localhost, and in pyton create_engine used pool_pre_ping = True and pool_recycle=3600 but nothing seems to solve the issue. MariaDb version is 10.4.20 and Python is 3.9.Its not a multithreaded application as well. Any pointers on solving debugging this issue would be helpful.

This is the connection getting created:

JavaScript

The engine is used to get the connection as 'sql_engine.connect()' or used with 'Session = sessionmaker(bind=sql_engine) session = Session()' Error : ”’

JavaScript

Advertisement

Answer

Used poolclass=NullPool in create_engine. This has fixed the Packet Sequence error in this case.The app does not stop with Packet Sequence error anymore.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement