Error on opening a connection to slave1:33061 on local port: 33061
單主模式,主啟動start replication報錯,error log資訊如下。
2020-02-16T09:09:33.116741+08:00 2 [Note] Plugin group_replication reported: 'Group communication SSL configuration: group_replication_ssl_mode: "DISABLED"' 2020-02-16T09:09:33.116927+08:00 2 [Note] Plugin group_replication reported: '[GCS] Added automatically IP ranges 127.0.0.1/8,192.168.199.128/24,192.168.6.10/24 to the whitelist' 2020-02-16T09:09:33.117221+08:00 2 [Note] Plugin group_replication reported: '[GCS] Translated 'master' to 192.168.6.10' 2020-02-16T09:09:33.117423+08:00 2 [Warning] Plugin group_replication reported: '[GCS] Automatically adding IPv4 localhost address to the whitelist. It is mandatory that it is added.' 2020-02-16T09:09:33.117481+08:00 2 [Note] Plugin group_replication reported: '[GCS] SSL was not enabled' 2020-02-16T09:09:33.117509+08:00 2 [Note] Plugin group_replication reported: 'Initialized group communication with configuration: group_replication_group_name: "dabbfd02-4e51-11ea-918c-080027b4aaaa"; group_replication_local_address: "master:33061"; group_replication_group_seeds: "master:33061,slave1:33061,slave2:33061"; group_replication_bootstrap_group: false; group_replication_poll_spin_loops: 0; group_replication_compression_threshold: 1000000; group_replication_ip_whitelist: "AUTOMATIC"' 2020-02-16T09:09:33.117539+08:00 2 [Note] Plugin group_replication reported: '[GCS] Configured number of attempts to join: 0' 2020-02-16T09:09:33.117547+08:00 2 [Note] Plugin group_replication reported: '[GCS] Configured time between attempts to join: 5 seconds' 2020-02-16T09:09:33.117569+08:00 2 [Note] Plugin group_replication reported: 'Member configuration: member_id: 103306; member_uuid: "dabbfd02-4e51-11ea-918c-080027b499bb"; single-primary mode: "true"; group_replication_auto_increment_increment: 7; ' 2020-02-16T09:09:33.119535+08:00 46 [Note] 'CHANGE MASTER TO FOR CHANNEL 'group_replication_applier' executed'. Previous state master_host='<NULL>', master_port= 0, master_log_file='', master_log_pos= 4, master_bind=''. New state master_host='<NULL>', master_port= 0, master_log_file='', master_log_pos= 4, master_bind=''. 2020-02-16T09:09:33.281383+08:00 49 [Note] Slave SQL thread for channel 'group_replication_applier' initialized, starting replication in log 'FIRST' at position 0, relay log './relay-group_replication_applier.000001' position: 4 2020-02-16T09:09:33.281390+08:00 2 [Note] Plugin group_replication reported: 'Group Replication applier module successfully initialized!' 2020-02-16T09:09:33.281531+08:00 2 [Note] Plugin group_replication reported: 'auto_increment_increment is set to 7' 2020-02-16T09:09:33.281540+08:00 2 [Note] Plugin group_replication reported: 'auto_increment_offset is set to 103306' 2020-02-16T09:09:33.282016+08:00 0 [Note] Plugin group_replication reported: 'XCom protocol version: 3' 2020-02-16T09:09:33.282421+08:00 0 [Note] Plugin group_replication reported: 'XCom initialized and ready to accept incoming connections on port 33061' 2020-02-16T09:09:33.284679+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave1:33061 on local port: 33061.' 2020-02-16T09:09:33.285265+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave2:33061 on local port: 33061.' 2020-02-16T09:09:33.286212+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave1:33061 on local port: 33061.' 2020-02-16T09:09:33.286750+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave2:33061 on local port: 33061.' 2020-02-16T09:09:33.287545+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave1:33061 on local port: 33061.' 2020-02-16T09:09:33.288241+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave2:33061 on local port: 33061.' 2020-02-16T09:09:33.288742+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave1:33061 on local port: 33061.' 2020-02-16T09:09:33.289415+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave2:33061 on local port: 33061.' 2020-02-16T09:09:33.290746+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave1:33061 on local port: 33061.' 2020-02-16T09:09:33.291361+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave2:33061 on local port: 33061.' 2020-02-16T09:09:33.294982+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave1:33061 on local port: 33061.' 2020-02-16T09:09:33.298791+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave2:33061 on local port: 33061.' 2020-02-16T09:09:33.301144+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave1:33061 on local port: 33061.' 2020-02-16T09:09:33.301934+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave2:33061 on local port: 33061.' 2020-02-16T09:09:33.303234+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave1:33061 on local port: 33061.' 2020-02-16T09:09:33.303757+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave2:33061 on local port: 33061.' 2020-02-16T09:09:33.305372+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave1:33061 on local port: 33061.' 2020-02-16T09:09:33.305926+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave2:33061 on local port: 33061.' 2020-02-16T09:09:33.307075+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave1:33061 on local port: 33061.' 2020-02-16T09:09:33.308316+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave2:33061 on local port: 33061.' 2020-02-16T09:09:33.308394+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error connecting to all peers. Member join failed. Local port: 33061' 2020-02-16T09:09:33.309449+08:00 0 [Warning] Plugin group_replication reported: 'read failed' 2020-02-16T09:09:33.340149+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] The member was unable to join the group. Local port: 33061' 2020-02-16T09:10:33.282660+08:00 2 [ERROR] Plugin group_replication reported: 'Timeout on wait for view after joining group' 2020-02-16T09:10:33.282766+08:00 2 [Note] Plugin group_replication reported: 'Requesting to leave the group despite of not being a member' 2020-02-16T09:10:33.282857+08:00 2 [ERROR] Plugin group_replication reported: '[GCS] The member is leaving a group without being on one.' 2020-02-16T09:10:33.283116+08:00 2 [Note] Plugin group_replication reported: 'auto_increment_increment is reset to 1' 2020-02-16T09:10:33.283189+08:00 2 [Note] Plugin group_replication reported: 'auto_increment_offset is reset to 1' 2020-02-16T09:10:33.283435+08:00 49 [Note] Error reading relay log event for channel 'group_replication_applier': slave SQL thread was killed 2020-02-16T09:10:33.285442+08:00 49 [Note] Slave SQL thread for channel 'group_replication_applier' exiting, replication stopped in log 'FIRST' at position 0 2020-02-16T09:10:33.289619+08:00 46 [Note] Plugin group_replication reported: 'The group replication applier thread was killed' 2020-02-16T09:10:55.742615+08:00 2 [Note] Plugin group_replication reported: 'Group communication SSL configuration: group_replication_ssl_mode: "DISABLED"' 2020-02-16T09:10:55.756577+08:00 2 [Note] Plugin group_replication reported: '[GCS] Added automatically IP ranges 127.0.0.1/8,192.168.199.128/24,192.168.6.10/24 to the whitelist' 2020-02-16T09:10:55.757165+08:00 2 [Note] Plugin group_replication reported: '[GCS] Translated 'master' to 192.168.6.10' 2020-02-16T09:10:55.757534+08:00 2 [Warning] Plugin group_replication reported: '[GCS] Automatically adding IPv4 localhost address to the whitelist. It is mandatory that it is added.' 2020-02-16T09:10:55.757663+08:00 2 [Note] Plugin group_replication reported: '[GCS] SSL was not enabled' 2020-02-16T09:10:55.757709+08:00 2 [Note] Plugin group_replication reported: 'Initialized group communication with configuration: group_replication_group_name: "dabbfd02-4e51-11ea-918c-080027b4aaaa"; group_replication_local_address: "master:33061"; group_replication_group_seeds: "master:33061,slave1:33061,slave2:33061"; group_replication_bootstrap_group: false; group_replication_poll_spin_loops: 0; group_replication_compression_threshold: 1000000; group_replication_ip_whitelist: "AUTOMATIC"' 2020-02-16T09:10:55.757820+08:00 2 [Note] Plugin group_replication reported: '[GCS] Configured number of attempts to join: 0' 2020-02-16T09:10:55.757865+08:00 2 [Note] Plugin group_replication reported: '[GCS] Configured time between attempts to join: 5 seconds' 2020-02-16T09:10:55.757923+08:00 2 [Note] Plugin group_replication reported: 'Member configuration: member_id: 103306; member_uuid: "dabbfd02-4e51-11ea-918c-080027b499bb"; single-primary mode: "true"; group_replication_auto_increment_increment: 7; ' 2020-02-16T09:10:55.758605+08:00 67 [Note] 'CHANGE MASTER TO FOR CHANNEL 'group_replication_applier' executed'. Previous state master_host='<NULL>', master_port= 0, master_log_file='', master_log_pos= 4, master_bind=''. New state master_host='<NULL>', master_port= 0, master_log_file='', master_log_pos= 4, master_bind=''. 2020-02-16T09:10:55.920189+08:00 2 [Note] Plugin group_replication reported: 'Group Replication applier module successfully initialized!' 2020-02-16T09:10:55.920231+08:00 2 [Note] Plugin group_replication reported: 'auto_increment_increment is set to 7' 2020-02-16T09:10:55.920238+08:00 2 [Note] Plugin group_replication reported: 'auto_increment_offset is set to 103306' 2020-02-16T09:10:55.920209+08:00 70 [Note] Slave SQL thread for channel 'group_replication_applier' initialized, starting replication in log 'FIRST' at position 0, relay log './relay-group_replication_applier.000001' position: 4 2020-02-16T09:10:55.920573+08:00 0 [Note] Plugin group_replication reported: 'XCom protocol version: 3' 2020-02-16T09:10:55.920619+08:00 0 [Note] Plugin group_replication reported: 'XCom initialized and ready to accept incoming connections on port 33061' 2020-02-16T09:10:55.922466+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave1:33061 on local port: 33061.' 2020-02-16T09:10:55.922982+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave2:33061 on local port: 33061.' 2020-02-16T09:10:55.923726+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave1:33061 on local port: 33061.' 2020-02-16T09:10:55.924263+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave2:33061 on local port: 33061.' 2020-02-16T09:10:55.925630+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave1:33061 on local port: 33061.' 2020-02-16T09:10:55.926269+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave2:33061 on local port: 33061.' 2020-02-16T09:10:55.928161+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave1:33061 on local port: 33061.' 2020-02-16T09:10:55.928693+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave2:33061 on local port: 33061.' 2020-02-16T09:10:55.929229+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave1:33061 on local port: 33061.' 2020-02-16T09:10:55.929756+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave2:33061 on local port: 33061.' 2020-02-16T09:10:55.930493+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave1:33061 on local port: 33061.' 2020-02-16T09:10:55.931816+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave2:33061 on local port: 33061.' 2020-02-16T09:10:55.933292+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave1:33061 on local port: 33061.' 2020-02-16T09:10:55.933901+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave2:33061 on local port: 33061.' 2020-02-16T09:10:55.935244+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave1:33061 on local port: 33061.' 2020-02-16T09:10:55.935834+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave2:33061 on local port: 33061.' 2020-02-16T09:10:55.936974+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave1:33061 on local port: 33061.' 2020-02-16T09:10:55.938195+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave2:33061 on local port: 33061.' 2020-02-16T09:10:55.940129+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave1:33061 on local port: 33061.' 2020-02-16T09:10:55.940770+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to slave2:33061 on local port: 33061.' 2020-02-16T09:10:55.940847+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error connecting to all peers. Member join failed. Local port: 33061' 2020-02-16T09:10:55.944309+08:00 0 [Warning] Plugin group_replication reported: 'read failed' 2020-02-16T09:10:55.973522+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] The member was unable to join the group. Local port: 33061' 2020-02-16T09:11:55.922733+08:00 2 [ERROR] Plugin group_replication reported: 'Timeout on wait for view after joining group' 2020-02-16T09:11:55.922848+08:00 2 [Note] Plugin group_replication reported: 'Requesting to leave the group despite of not being a member' 2020-02-16T09:11:55.922907+08:00 2 [ERROR] Plugin group_replication reported: '[GCS] The member is leaving a group without being on one.' 2020-02-16T09:11:55.923147+08:00 2 [Note] Plugin group_replication reported: 'auto_increment_increment is reset to 1' 2020-02-16T09:11:55.923175+08:00 2 [Note] Plugin group_replication reported: 'auto_increment_offset is reset to 1' 2020-02-16T09:11:55.923352+08:00 70 [Note] Error reading relay log event for channel 'group_replication_applier': slave SQL thread was killed 2020-02-16T09:11:55.924343+08:00 70 [Note] Slave SQL thread for channel 'group_replication_applier' exiting, replication stopped in log 'FIRST' at position 0 2020-02-16T09:11:55.929722+08:00 67 [Note] Plugin group_replication reported: 'The group replication applier thread was killed' ^Cchkconfig iptables off [root@master mysql_data]# chkconfig iptables off [root@master mysql_data]# [root@master mysql_data]# tail -f error.log 2020-02-16T09:10:55.944309+08:00 0 [Warning] Plugin group_replication reported: 'read failed' 2020-02-16T09:10:55.973522+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] The member was unable to join the group. Local port: 33061' 2020-02-16T09:11:55.922733+08:00 2 [ERROR] Plugin group_replication reported: 'Timeout on wait for view after joining group' 2020-02-16T09:11:55.922848+08:00 2 [Note] Plugin group_replication reported: 'Requesting to leave the group despite of not being a member' 2020-02-16T09:11:55.922907+08:00 2 [ERROR] Plugin group_replication reported: '[GCS] The member is leaving a group without being on one.' 2020-02-16T09:11:55.923147+08:00 2 [Note] Plugin group_replication reported: 'auto_increment_increment is reset to 1' 2020-02-16T09:11:55.923175+08:00 2 [Note] Plugin group_replication reported: 'auto_increment_offset is reset to 1' 2020-02-16T09:11:55.923352+08:00 70 [Note] Error reading relay log event for channel 'group_replication_applier': slave SQL thread was killed 2020-02-16T09:11:55.924343+08:00 70 [Note] Slave SQL thread for channel 'group_replication_applier' exiting, replication stopped in log 'FIRST' at position 0 2020-02-16T09:11:55.929722+08:00 67 [Note] Plugin group_replication reported: 'The group replication applier thread was killed'
防火牆狀態都是關閉的
show master status;
mysql(root@(none)09:49:42)>show master status; +------------+----------+--------------+------------------+-------------------+ | File | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set | +------------+----------+--------------+------------------+-------------------+ | bin.000002 | 150 | | | | +------------+----------+--------------+------------------+-------------------+ 1 row in set (0.00 sec)
因為之前執行了reset master;
隨便執行一個事務就好了
mysql(root@mysql09:50:08)>show master status; +------------+----------+--------------+------------------+----------------------------------------+ | File | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set | +------------+----------+--------------+------------------+----------------------------------------+ | bin.000002 | 330 | | | dabbfd02-4e51-11ea-918c-080027b499bb:1 | +------------+----------+--------------+------------------+----------------------------------------+ 1 row in set (0.00 sec)
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29990276/viewspace-2675805/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Error waiting for a debug connection: ProcessException: adb did not report forwarded portErrorAIExceptionForward
- ssh: connect to host localhost port 22: Connection refusedlocalhost
- raw.githubusercontent.com port 443: Connection refusedGithub
- ERROR 2026 (HY000): SSL connection error: unknown error numberError
- Error:Can't connect to SOCKS proxy:Connection refused (Connection refused)Error
- 坑:ssh: connect to host github.com port 22: Connection refusedGithub
- The connection to the server 10.10.0.2:6443 was refused - did you specify the right host or port?Server
- Dr.Elephant mysql connection errorMySqlError
- 異常解決——GitLab : ssh: connect to host port 22: Connection refusedGitlab
- Error: Connection activation failed: Device not managed by NetworkManagerErrorAIdev
- Error!: SQLSTATE[HY000] [2002] Connection refusedErrorSQL
- Failed: error reading separator after document # 1: bad JSON array format - found no opening brackAIErrorJSONORM
- oracle OGG-01232 Receive TCP params error:TCP/IP error 232(connection reset)OracleTCPError
- ascp: Failed to open TCP connection for SSH, exiting. Session Stop (Error: Failed to open TCP connection for SSH)AITCPSessionError
- OGG-01224 error 111:Connection refused - retries exceeded.Error
- Sqoop從Oracle抽數錯:IO Error: Connection resetOOPOracleError
- Listener refused the connection with the following error:ORA-12514, TNS:listenerError
- 記錄redis佇列read error on connection to錯誤Redis佇列Error
- mysqldump: Error 2013: Lost connection to MySQL server during query when dumpingMySqlErrorServer
- local.ERROR: Symfony\Component\Debug\Exception\FatalErrorException: Allowed memory size of 134217728ErrorException
- [GuzzleHttp\Exception\RequestException] cURL error 60: SSL certificate problem: unable to get localHTTPExceptionError
- Error establishing a database connection 的解決方法(發現黑客入侵)ErrorDatabase黑客
- ERROR 2013 (HY000): Lost connection to MySQL server at 'reading authorization paErrorMySqlServer
- oozie.action.hadoop.LauncherException: IO error Connection timed out: no further informationHadoopExceptionErrorORM
- ERROR3948: Loading local data is disabled - this must be enabled on both the client and server sidesErrorclientServerIDE
- 3.2.2 Opening a Closed DatabaseDatabase
- git pull遇到錯誤:error: Your local changes to the following files would be overwritten by merge:GitError
- 切換分支 error: Your local changes tby checkout: 錯誤解決方法Error
- 解決Mac終端下載報錯 curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refusedMacAIGithub
- Fatal error: require(): Failed opening required 'E:\phpstudy_pro\WWW\TP5\tp5\public/../thinkphp/baseErrorUIAIPHP
- MySQL報錯ERROR 2013 (HY000): Lost connection to MySQL server during queryMySqlErrorServer
- 使用Presto查詢hive表資料時報"Error opening Hive split hdfs"問題,及解決方法RESTHiveError
- Oracle 19C RAC 安裝 Error 4 opening dom ASM/Self in 0x5984500 報錯處理OracleErrorASM
- 連線華為雲的Redis服務報錯“Error: Connection reset by peer”RedisError
- ubuntu ssh: connect to host ** port 22: Connection refused ssh登入遠端伺服器時提示Permission denied (publickey,password)Ubuntu伺服器
- WPF initialization for opening and unitialization for closing process
- 3.1.5.2 Starting an Instance, and Mounting and Opening a DatabaseDatabase
- location.port