Can't import existing cluster
Hello.
I got below errors during import existing cluster:
[08:58:09]:Adding existing cluster has failed.
[08:58:09]:Couldn't determine the datadir on '178.22.168.8:3306' connect (from 82.146.48.42), failed for user 'cmon': Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 110 (errno: 2013) (errno: 2013)
[08:58:06]:Connection failure to 178.22.168.8:3306: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 110 (errno: 2013) (errno 2013)
[08:57:53]:Connection failure to 178.22.168.8:3306: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 110 (errno: 2013) (errno 2013)
[08:57:40]:Connection failure to 178.22.168.8:3306: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 110 (errno: 2013) (errno 2013)
[08:57:27]:Connection failure to 178.22.168.8:3306: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 110 (errno: 2013) (errno 2013)
[08:57:13]:Connection failure to 178.22.168.8:3306: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 110 (errno: 2013) (errno 2013)
[08:57:00]:Connection failure to 178.22.168.8:3306: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 110 (errno: 2013) (errno 2013)
[08:56:47]:Connection failure to 178.22.168.8:3306: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 110 (errno: 2013) (errno 2013)
[08:56:34]:Connection failure to 178.22.168.8:3306: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 110 (errno: 2013) (errno 2013)
[08:56:21]:Connection failure to 178.22.168.8:3306: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 110 (errno: 2013) (errno 2013)
[08:56:08]:Connection failure to 178.22.168.8:3306: Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 110 (errno: 2013) (errno 2013)
[08:55:58]:<em style='color: #2ecc71;'>85.214.188.221</em>:3306: The datadir is <em style='color: #0b33b5;'>/var/lib/mysql/</em>.
[08:55:58]:Connected succesfully: 'cmon@82.146.48.42' -> '<em style='color: #2ecc71;'>85.214.188.221</em>:3306'.
[08:55:58]:Determining data directories.
[08:55:55]:<em style='color: #da0bf3;'>188.120.251.42</em>: Granting cmon.
[08:55:40]:<em style='color: #7415f6;'>178.22.168.8</em>: Granting cmon.
[08:55:25]:<em style='color: #2ecc71;'>85.214.188.221</em>: Granting cmon.
[08:55:25]:<em style='color: #da0bf3;'>188.120.251.42</em>:3306: Node is synced.
[08:55:24]:<em style='color: #7415f6;'>178.22.168.8</em>:3306: Node is synced.
[08:55:21]:<em style='color: #2ecc71;'>85.214.188.221</em>:3306: Node is synced.
[08:55:17]:Granting controller (82.146.48.42,web2.callinfo.kz).
[08:55:17]:Controller '82.146.48.42' resolves to 'web2.callinfo.kz'
[08:55:17]:Checking if resolve of '82.146.48.42' is needed, and attempting to resolve to a hostname
[08:55:10]:Detected that <strong style='color: #59a449;'>skip_name_resolve</strong> is not used on the target server(s).
[08:55:10]:<em style='color: #2ecc71;'>85.214.188.221</em>:3306: <strong style='color: #59a449;'>skip_name_resolve</strong>=skip_name_resolve OFF
[08:55:00]:Check SELinux statuses.
[08:55:00]:All 3 hosts are accessible by SSH.
[08:54:58]:Checking ssh/sudo on 3 hosts with credentials <strong style='color: #59a449;'>ssh_cred_job_6656</strong>.
[08:54:58]:Checking that nodes are not in another cluster.
[08:54:58]:Found in total 3 nodes.
[08:54:58]:Found node: '<em style='color: #da0bf3;'>188.120.251.42</em>'
[08:54:58]:Found node: '<em style='color: #7415f6;'>178.22.168.8</em>'
[08:54:58]:Found node: '<em style='color: #2ecc71;'>85.214.188.221</em>'
[08:54:58]:<em style='color: #da0bf3;'>188.120.251.42</em>: wsrep_node_address=188.120.251.42
[08:54:57]:<em style='color: #da0bf3;'>188.120.251.42</em>: Checking wsrep_node_address.
[08:54:57]:<em style='color: #7415f6;'>178.22.168.8</em>: wsrep_node_address=178.22.168.8
[08:54:54]:<em style='color: #7415f6;'>178.22.168.8</em>: Checking wsrep_node_address.
[08:54:54]:<em style='color: #2ecc71;'>85.214.188.221</em>: wsrep_node_address=85.214.188.221
[08:54:50]:<em style='color: #2ecc71;'>85.214.188.221</em>: Checking wsrep_node_address.
[08:54:46]:<em style='color: #7415f6;'>178.22.168.8</em>:3306: Getting node list from the MySQL server.
[08:54:46]:<em style='color: #7415f6;'>178.22.168.8</em>:3306: monitored_mysql_root_password is not set, please set it later in the generated cmon.cnf
[08:54:40]:<em style='color: #7415f6;'>178.22.168.8</em>:3306: Verifying the MySQL user/password.
[08:54:34]:<em style='color: #7415f6;'>178.22.168.8</em>: Checking ssh/sudo with credentials <strong style='color: #59a449;'>ssh_cred_job_6656</strong>.
[08:54:34]:Adding existing MySQL cluster.
[08:54:34]:Generating configuration for cluster <strong style='color: #59a449;'>sergey_cluster</strong>.
[08:54:34]:Adding cluster with type '<strong style='color: #59a449;'>galera</strong>', vendor '<strong style='color: #59a449;'>mariadb</strong>'.
Job spec: {
"command": "add_cluster",
"group_id": 1,
"group_name": "admins",
"job_data":
{
"api_id": 1,
"cluster_name": "sergey_cluster",
"cluster_type": "galera",
"company_id": "1",
"config_template": "my57.cnf.galera",
"datadir": "/var/lib/mysql",
"db_password": "Letacla@8432",
"db_user": "serge2",
"disable_firewall": true,
"disable_selinux": true,
"enable_cluster_autorecovery": false,
"enable_information_schema_queries": false,
"enable_node_autorecovery": false,
"enable_nodes_autodetect": true,
"galera_version": "2.x",
"generate_token": true,
"install_software": true,
"monitored_mysql_port": "3306",
"nodes": [
{
"hostname": "178.22.168.8",
"port": "3306"
} ],
"port": "3306",
"ssh_keyfile": "/root/.ssh/id_rsa",
"ssh_port": "22",
"ssh_user": "root",
"sudo_password": "",
"tag": "",
"user_id": 1,
"vendor": "mariadb",
"version": "10.2"
},
"user_id": 1,
"user_name": "avpco@live.ru"
}
But I can connect to 178.22.168.8 MariaDB without any problems by mysql command and establish SSL connection.
What I should do to resolve this problem?
-
Hi,
It looks like a certificate issue.
I would recommend creating a support request and adding a ClusterControl error report there.
If you don't have any cluster added into ClusterControl, you can generate an error report from the command line by running the following command:
$ s9s_error_reporter -i 0
And then, attach the generated tar file to the support ticket.
Thank you.
Regards,
Sebastian.
Please sign in to leave a comment.
Comments
1 comment