You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are submitting a reproducible bug report, please provide:
[ ] A clear description of your issue
DB created successfully but error returned.
[ ] The version of OS and ProxySQL
CentOS 7.2 v1.4.8
[ ] Every step to reproduce the issue
Deploy and start TiDB, proxysql, and scripts in the short time.
in the script:
show database like grafana
create it if it doesn't exist.
[set up]
my same script run from two servers
two instances proxysql set up above TiDB
three PD + three tidb + three tikv setup for TiDB
[my scrip log from 172.28.245.61]
2018-07-02 11:41:16 show databases like 'grafana';
2018-07-02 11:41:21 Database grafana
2018-07-02 11:41:21 DB exists already, sleep 150s to make sure the other node has complete import operations
[my script log from 172.18.180.138]
2018-07-02 11:41:15 show databases like 'grafana';
2018-07-02 11:41:20 2018-07-02 11:41:20 DB doesn't exist, create it first
2018-07-02 11:41:21 ERROR 1007 (HY000) at line 1: Can't create database 'grafana'; database exists
ERROR 1007 (HY000) at line 1: Can't create database 'grafana'; database exists
[Here is log from first instance of proxysql]
2018-07-02 19:40:53 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.27.176.239:10353 , FD (Conn:0 , MyDS:25) , 2003: Can't connect to MySQL server on '172.27.176.239' (107).
2018-07-02 19:40:53 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.28.245.54:10369 , FD (Conn:25 , MyDS:25) , 2013: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 107.
2018-07-02 19:40:53 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.18.130.72:10373 , FD (Conn:25 , MyDS:25) , 2013: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 107.
2018-07-02 19:40:53 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.18.130.72:10373 , FD (Conn:25 , MyDS:25) , 2013: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 107.
2018-07-02 19:40:53 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.27.176.239:10353 , FD (Conn:25 , MyDS:25) , 2013: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 107.
2018-07-02 19:40:53 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.18.130.72:10373 , FD (Conn:25 , MyDS:25) , 2013: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 107.
2018-07-02 19:40:53 MySQL_HostGroups_Manager.cpp:302:connect_error(): [ERROR] Shunning server 172.18.130.72:10373 with 5 errors/sec. Shunning for 10 seconds
2018-07-02 19:40:53 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.27.176.239:10353 , FD (Conn:25 , MyDS:25) , 2013: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 107.
2018-07-02 19:40:53 MySQL_HostGroups_Manager.cpp:302:connect_error(): [ERROR] Shunning server 172.27.176.239:10353 with 5 errors/sec. Shunning for 10 seconds
2018-07-02 19:40:53 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.28.245.54:10369 , FD (Conn:25 , MyDS:25) , 2013: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 107.
2018-07-02 19:40:53 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.28.245.54:10369 , FD (Conn:25 , MyDS:25) , 2013: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 107.
2018-07-02 19:40:53 MySQL_HostGroups_Manager.cpp:302:connect_error(): [ERROR] Shunning server 172.28.245.54:10369 with 5 errors/sec. Shunning for 10 seconds
2018-07-02 19:41:03 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.28.245.54:10369 , FD (Conn:25 , MyDS:25) , 2013: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 107.
2018-07-02 19:41:03 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.28.245.54:10369 , FD (Conn:25 , MyDS:25) , 2013: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 107.
2018-07-02 19:41:04 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.27.176.239:10353 , FD (Conn:0 , MyDS:25) , 2003: Can't connect to MySQL server on '172.27.176.239' (107).
2018-07-02 19:41:04 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.28.245.54:10369 , FD (Conn:25 , MyDS:25) , 2013: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 107.
2018-07-02 19:41:04 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.18.130.72:10373 , FD (Conn:25 , MyDS:25) , 2013: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 107.
2018-07-02 19:41:04 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.18.130.72:10373 , FD (Conn:25 , MyDS:25) , 2013: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 107.
2018-07-02 19:41:04 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.27.176.239:10353 , FD (Conn:25 , MyDS:25) , 2013: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 107.
2018-07-02 19:41:04 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.18.130.72:10373 , FD (Conn:25 , MyDS:25) , 2013: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 107.
2018-07-02 19:41:04 MySQL_HostGroups_Manager.cpp:302:connect_error(): [ERROR] Shunning server 172.18.130.72:10373 with 5 errors/sec. Shunning for 10 seconds
2018-07-02 19:41:04 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.27.176.239:10353 , FD (Conn:25 , MyDS:25) , 2013: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 107.
2018-07-02 19:41:04 MySQL_HostGroups_Manager.cpp:302:connect_error(): [ERROR] Shunning server 172.27.176.239:10353 with 5 errors/sec. Shunning for 10 seconds
2018-07-02 19:41:04 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.28.245.54:10369 , FD (Conn:25 , MyDS:25) , 2013: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 107.
2018-07-02 19:41:04 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.28.245.54:10369 , FD (Conn:25 , MyDS:25) , 2013: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 107.
2018-07-02 19:41:04 MySQL_HostGroups_Manager.cpp:302:connect_error(): [ERROR] Shunning server 172.28.245.54:10369 with 5 errors/sec. Shunning for 10 seconds
2018-07-02 19:41:21 MySQL_Monitor.cpp:1419:monitor_ping(): [ERROR] Server 172.27.176.239:10353 missed 3 heartbeats, shunning it and killing all the connections. Disabling other checks until the node comes back online.
[Here is log from second instance of proxysql]
2018-07-02 19:40:52 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.28.245.54:10369 , FD (Conn:25 , MyDS:25) , 2013: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 107.
2018-07-02 19:40:52 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.18.130.72:10373 , FD (Conn:25 , MyDS:25) , 2013: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 107.
2018-07-02 19:40:52 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.18.130.72:10373 , FD (Conn:25 , MyDS:25) , 2013: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 107.
2018-07-02 19:40:52 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.27.176.239:10353 , FD (Conn:25 , MyDS:25) , 2013: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 107.
2018-07-02 19:40:52 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.18.130.72:10373 , FD (Conn:25 , MyDS:25) , 2013: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 107.
2018-07-02 19:40:52 MySQL_HostGroups_Manager.cpp:302:connect_error(): [ERROR] Shunning server 172.18.130.72:10373 with 5 errors/sec. Shunning for 10 seconds
2018-07-02 19:40:52 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.27.176.239:10353 , FD (Conn:25 , MyDS:25) , 2013: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 107.
2018-07-02 19:40:52 MySQL_HostGroups_Manager.cpp:302:connect_error(): [ERROR] Shunning server 172.27.176.239:10353 with 5 errors/sec. Shunning for 10 seconds
2018-07-02 19:40:52 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.28.245.54:10369 , FD (Conn:25 , MyDS:25) , 2013: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 107.
2018-07-02 19:40:52 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.28.245.54:10369 , FD (Conn:25 , MyDS:25) , 2013: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 107.
2018-07-02 19:40:52 MySQL_HostGroups_Manager.cpp:302:connect_error(): [ERROR] Shunning server 172.28.245.54:10369 with 5 errors/sec. Shunning for 10 seconds
2018-07-02 19:41:02 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.28.245.54:10369 , FD (Conn:25 , MyDS:25) , 2013: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 107.
2018-07-02 19:41:02 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.28.245.54:10369 , FD (Conn:25 , MyDS:25) , 2013: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 107.
2018-07-02 19:41:03 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.27.176.239:10353 , FD (Conn:0 , MyDS:25) , 2003: Can't connect to MySQL server on '172.27.176.239' (107).
2018-07-02 19:41:03 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.28.245.54:10369 , FD (Conn:25 , MyDS:25) , 2013: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 107.
2018-07-02 19:41:03 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.18.130.72:10373 , FD (Conn:25 , MyDS:25) , 2013: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 107.
2018-07-02 19:41:03 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.18.130.72:10373 , FD (Conn:25 , MyDS:25) , 2013: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 107.
2018-07-02 19:41:03 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.27.176.239:10353 , FD (Conn:25 , MyDS:25) , 2013: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 107.
2018-07-02 19:41:03 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.18.130.72:10373 , FD (Conn:25 , MyDS:25) , 2013: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 107.
2018-07-02 19:41:03 MySQL_HostGroups_Manager.cpp:302:connect_error(): [ERROR] Shunning server 172.18.130.72:10373 with 5 errors/sec. Shunning for 10 seconds
2018-07-02 19:41:03 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.27.176.239:10353 , FD (Conn:25 , MyDS:25) , 2013: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 107.
2018-07-02 19:41:03 MySQL_HostGroups_Manager.cpp:302:connect_error(): [ERROR] Shunning server 172.27.176.239:10353 with 5 errors/sec. Shunning for 10 seconds
2018-07-02 19:41:03 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.28.245.54:10369 , FD (Conn:25 , MyDS:25) , 2013: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 107.
2018-07-02 19:41:03 mysql_connection.cpp:628:handler(): [ERROR] Failed to mysql_real_connect() on 172.28.245.54:10369 , FD (Conn:25 , MyDS:25) , 2013: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 107.
2018-07-02 19:41:03 MySQL_HostGroups_Manager.cpp:302:connect_error(): [ERROR] Shunning server 172.28.245.54:10369 with 5 errors/sec. Shunning for 10 seconds
2018-07-02 19:41:20 MySQL_Monitor.cpp:1419:monitor_ping(): [ERROR] Server 172.28.245.54:10369 missed 3 heartbeats, shunning it and killing all the connections. Disabling other checks until the node comes back online.
2018-07-02 19:41:20 MySQL_Monitor.cpp:1419:monitor_ping(): [ERROR] Server 172.27.176.239:10353 missed 3 heartbeats, shunning it and killing all the connections. Disabling other checks until the node comes back online.
2018-07-02 19:41:21 MySQL_Session.cpp:2777:handler(): [ERROR] Detected an offline server during query: 172.28.245.54, 10369
2018-07-02 19:41:21 MySQL_Session.cpp:2785:handler(): [WARNING] Retrying query.
2018-07-02 19:41:21 MySQL_Session.cpp:2863:handler(): [WARNING] Error during query on (0,172.18.130.72,10373): 1007, Can't create database 'grafana'; database exists
2018-07-02 19:43:55 MySQL_Session.cpp:2863:handler(): [WARNING] Error during query on (0,172.28.245.54,10369): 1061, index already exist UQE_user_login
2018-07-02 19:46:33 MySQL_Session.cpp:2863:handler(): [WARNING] Error during query on (0,172.27.176.239,10353): 1061, index already exist IDX_alert_org_id_id
[root@bj-fty-wakanda-180-138 ~]#
There are a lot of system error: 107 in the above logs, as well as errors related to ProxySQL not able to ping the backends.
I am not familiar with TiDB: do these servers act like normal MySQL backend?
172.27.176.239
172.28.245.54
172.18.130.72
I think the connectivity issue is the first thing to troubleshoot before everything else.
TiDB is mysql compatible and yes we use it exactly like how we use mysql.
In the case we started TiDB and proxqy at same time, so each of them would go through their own init process, TiDB is a big system, usually it takes ~30s to get ready for service, and takes another few minute to get into normal performance ( I mean the performance is bad during the few minute, but it works correctly).
I know both system have challenges in the scenario, but both should work correctly. Can you pls take another look?
If you are submitting a reproducible bug report, please provide:
[ ] A clear description of your issue
[ ] The version of OS and ProxySQL
[ ] Every step to reproduce the issue
[set up]
[my scrip log from 172.28.245.61]
[my script log from 172.18.180.138]
2018-07-02 11:41:15 show databases like 'grafana';
2018-07-02 11:41:20
2018-07-02 11:41:20 DB doesn't exist, create it first
2018-07-02 11:41:21 ERROR 1007 (HY000) at line 1: Can't create database 'grafana'; database exists
ERROR 1007 (HY000) at line 1: Can't create database 'grafana'; database exists
[Here is log from first instance of proxysql]
[Here is log from second instance of proxysql]
[log from first tidb]
[log from second tidb]
[log from the third tidb]
no interested log from the third tidb.
issue 6957 raised to TiDB and they thought it's not their issue.
The text was updated successfully, but these errors were encountered: