-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Metabase connection tidb error unexpected end of stream, read 0 bytes from 7 (socket was closed by server) #49845
Comments
As a note, I failed to bootstrap
|
Manually delete the primary key, then add pk_query_action, and execute the following statement to simulate automatic synchronization logs. Restart Metabase after that. INSERT INTO metabase.DATABASECHANGELOG (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, EXECTYPE, MD5SUM, DESCRIPTION, COMMENTS, TAG, LIQUIBASE, CONTEXTS, LABELS, DEPLOYMENT_ID) VALUES ('v46.00-010', 'snoe', 'migrations/001_update_migrations.yaml', '2023-12-25 12:31:56', 515, 'EXECUTED', '8:77ca03e5a0dbe370461295da1c77cf0f', 'addForeignKeyConstraint baseTableName=query_action, constraintName=fk_query_action_database_id, referencedTableName=metabase_database', 'Added 0.46.0 - Unify action representation', null, '4.11.0', null, null, '3478709824'); |
Thanks for the tip. I successfully reproduced this problem ❤️ . I believe this issue is caused by TiDB connection compression. A workaround is adding I'll need more time to understand the detail of this compression protocol bug and fix it. |
Maybe this issue is related with #49706
|
looks like it is caused by an extra sequence check inside TiDB |
@onlyacat Note that with "Decode as..." you can have Wireshark decode MySQL traffic even if it is not on port 3306. Recent versions of Wireshark can also decode compressed MySQL packets. |
@onlyacat Could you attach a pcap/pcapng file (make sure it doesn't contain sensitive info)? |
got it, thanks! 👍 |
Digged a little bit and guess it could be solved by the side of Mariadb j. |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
Similar problems:https://asktug.com/t/topic/1019620
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
Release Version: v7.5.0
Edition: Community
Git Commit Hash: 069631e
Git Branch: heads/refs/tags/v7.5.0
UTC Build Time: 2023-11-24 08:50:14
GoVersion: go1.21.3
Race Enabled: false
Check Table Before Drop: false
Store: tikv
The text was updated successfully, but these errors were encountered: