[ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to ip:port

2024-01-15 16:58

本文主要是介绍[ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to ip:port,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

内容

  • 问题描述
  • 解决方法
    • centos6
      • 防火墙常用命名
    • centos7
      • firewalld常用命令

问题描述

使用MySQL5.7.24 做组复制实验,模式选择主模式,第一台主模式服务器已配置成功,但是在配置第二台服务器加入到配置的组中时报错:

2018-11-28T10:31:51.423293+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to 192.168.233.136:33061 on local port: 33061.'
2018-11-28T10:31:51.423976+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to 192.168.233.56:33061 on local port: 33061.'
2018-11-28T10:31:51.424072+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] Error connecting to all peers. Member join failed. Local port: 33061'
2018-11-28T10:31:51.424738+08:00 0 [Warning] Plugin group_replication reported: 'read failed'
2018-11-28T10:31:51.478391+08:00 0 [ERROR] Plugin group_replication reported: '[GCS] The member was unable to join the group. Local port: 33061'
2018-11-28T10:32:47.316147+08:00 2 [ERROR] Plugin group_replication reported: 'Timeout on wait for view after joining group'
2018-11-28T10:32:47.316280+08:00 2 [Note] Plugin group_replication reported: 'Requesting to leave the group despite of not being a member'
2018-11-28T10:32:47.316343+08:00 2 [ERROR] Plugin group_replication reported: '[GCS] The member is leaving a group without being on one.'
2018-11-28T10:32:47.316875+08:00 2 [Note] Plugin group_replication reported: 'auto_increment_increment is reset to 1'
2018-11-28T10:32:47.316950+08:00 2 [Note] Plugin group_replication reported: 'auto_increment_offset is reset to 1'
2018-11-28T10:32:47.317598+08:00 7 [Note] Error reading relay log event for channel 'group_replication_applier': slave SQL thread was killed
2018-11-28T10:32:47.317690+08:00 7 [Note] Slave SQL thread for channel 'group_replication_applier' exiting, replication stopped in log 'FIRST' at position 0
2018-11-28T10:32:47.320066+08:00 4 [Note] Plugin group_replication reported: 'The group replication applier thread was killed'

解决方法

经排查,第一台已启动服务器防火墙未关闭,所以需要将33061端口配置在防火墙中或者关闭防火墙即可

centos6

防火墙常用命名

# 查看防火墙状态
service iptables status# 停止防火墙
service iptables stop# 启动防火墙
service iptables start# 重启防火墙
service iptables restart# 永久关闭防火墙
chkconfig iptables off# 永久关闭后重启
chkconfig iptables on

开放33061端口

vim /etc/sysconfig/iptables

在文件中新增

-A INPUT -m state --state NEW -M tcp -p tcp --dport 33061 -j ACCEPT

保存后重启防火墙

service iptables restart

centos7

firewalld常用命令

# 启动 
systemctl start firewalld
# 关闭
systemctl stop firewalld
# 查看状态
systemctl status firewalld 
# 开机禁用 
systemctl disable firewalld
# 开机启用
systemctl enable firewalld
# 查看所有打开的端口
firewall-cmd --zone=public --list-ports

开放33061端口

#  --permanent永久生效,没有此参数重启后失效
firewall-cmd --zone=public --add-port=33061/tcp --permanent

重新载入防火墙

firewall-cmd --reload

再次配置第二台服务器就可以了。

这篇关于[ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to ip:port的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/609589

相关文章

Nginx错误拦截转发 error_page的问题解决

《Nginx错误拦截转发error_page的问题解决》Nginx通过配置错误页面和请求处理机制,可以在请求失败时展示自定义错误页面,提升用户体验,下面就来介绍一下Nginx错误拦截转发error_... 目录1. 准备自定义错误页面2. 配置 Nginx 错误页面基础配置示例:3. 关键配置说明4. 生效

Apache服务器IP自动跳转域名的问题及解决方案

《Apache服务器IP自动跳转域名的问题及解决方案》本教程将详细介绍如何通过Apache虚拟主机配置实现这一功能,并解决常见问题,本文给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,... 目录​​问题背景​​解决方案​​方法 1:修改 httpd-vhosts.conf(推荐)​​步骤

Linux(centos7)虚拟机没有IP问题及解决方案

《Linux(centos7)虚拟机没有IP问题及解决方案》文章介绍了在CentOS7中配置虚拟机网络并使用Xshell连接虚拟机的步骤,首先,检查并配置网卡ens33的ONBOOT属性为yes,然后... 目录输入查看ZFhrxIP命令:ip addr查看,没有虚拟机IP修改ens33配置文件重启网络Xh

基于Go语言开发一个 IP 归属地查询接口工具

《基于Go语言开发一个IP归属地查询接口工具》在日常开发中,IP地址归属地查询是一个常见需求,本文将带大家使用Go语言快速开发一个IP归属地查询接口服务,有需要的小伙伴可以了解下... 目录功能目标技术栈项目结构核心代码(main.go)使用方法扩展功能总结在日常开发中,IP 地址归属地查询是一个常见需求:

RabbitMQ 延时队列插件安装与使用示例详解(基于 Delayed Message Plugin)

《RabbitMQ延时队列插件安装与使用示例详解(基于DelayedMessagePlugin)》本文详解RabbitMQ通过安装rabbitmq_delayed_message_exchan... 目录 一、什么是 RabbitMQ 延时队列? 二、安装前准备✅ RabbitMQ 环境要求 三、安装延时队

解决Nginx启动报错Job for nginx.service failed because the control process exited with error code问题

《解决Nginx启动报错Jobfornginx.servicefailedbecausethecontrolprocessexitedwitherrorcode问题》Nginx启... 目录一、报错如下二、解决原因三、解决方式总结一、报错如下Job for nginx.service failed bec

Linux查询服务器 IP 地址的命令详解

《Linux查询服务器IP地址的命令详解》在服务器管理和网络运维中,快速准确地获取服务器的IP地址是一项基本但至关重要的技能,下面我们来看看Linux中查询服务器IP的相关命令使用吧... 目录一、hostname 命令:简单高效的 IP 查询工具命令详解实际应用技巧注意事项二、ip 命令:新一代网络配置全

Spring Boot spring-boot-maven-plugin 参数配置详解(最新推荐)

《SpringBootspring-boot-maven-plugin参数配置详解(最新推荐)》文章介绍了SpringBootMaven插件的5个核心目标(repackage、run、start... 目录一 spring-boot-maven-plugin 插件的5个Goals二 应用场景1 重新打包应用

java使用protobuf-maven-plugin的插件编译proto文件详解

《java使用protobuf-maven-plugin的插件编译proto文件详解》:本文主要介绍java使用protobuf-maven-plugin的插件编译proto文件,具有很好的参考价... 目录protobuf文件作为数据传输和存储的协议主要介绍在Java使用maven编译proto文件的插件

Spring Boot 实现 IP 限流的原理、实践与利弊解析

《SpringBoot实现IP限流的原理、实践与利弊解析》在SpringBoot中实现IP限流是一种简单而有效的方式来保障系统的稳定性和可用性,本文给大家介绍SpringBoot实现IP限... 目录一、引言二、IP 限流原理2.1 令牌桶算法2.2 漏桶算法三、使用场景3.1 防止恶意攻击3.2 控制资源