1、

Apr 21 19:15:54 pxc1 systemd[1]: mysql@bootstrap.service: main process exited, code=exited, status=1/FAILURE
Apr 21 19:15:57 pxc1 mysql-systemd[8777]: /usr/bin/mysql-systemd: line 140: kill: (8776) - No such process
Apr 21 19:15:57 pxc1 mysql-systemd[8777]: ERROR! mysqld_safe with PID 8776 has already exited: FAILURE
Apr 21 19:15:57 pxc1 systemd[1]: mysql@bootstrap.service: control process exited, code=exited status=1
Apr 21 19:15:57 pxc1 mysql-systemd[9267]: WARNING: mysql pid file /var/run/mysqld/mysqld.pid empty or not readable
Apr 21 19:15:57 pxc1 mysql-systemd[9267]: ERROR! mysql already dead
Apr 21 19:15:57 pxc1 systemd[1]: mysql@bootstrap.service: control process exited, code=exited status=2
Apr 21 19:15:57 pxc1 mysql-systemd[9296]: WARNING: mysql pid file /var/run/mysqld/mysqld.pid empty or not readable
Apr 21 19:15:57 pxc1 mysql-systemd[9296]: WARNING: mysql may be already dead
Apr 21 19:15:57 pxc1 systemd[1]: Failed to start Percona XtraDB Cluster with config /etc/sysconfig/mysql.bootstrap.
-- Subject: Unit mysql@bootstrap.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit mysql@bootstrap.service has failed.
--
-- The result is failed.
Apr 21 19:15:57 pxc1 systemd[1]: Unit mysql@bootstrap.service entered failed state.
Apr 21 19:15:57 pxc1 systemd[1]: mysql@bootstrap.service failed.
Apr 21 19:15:57 pxc1 polkitd[6586]: Unregistered Authentication Agent for unix-process:8728:76373 (system bus name :1.67, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)

解决办法:

修改最新节点的文件参数

#vi /var/lib/mysql/grastate.dat

把safe_to_bootstrap: 0  改成1后

开启服务:systemctl start mysql@bootstrap.service

参考:https://www.percona.com/forums/questions-discussions/percona-xtradb-cluster/49255-can-t-start-my-cluster-it-s-so-urgent

2、polkitd[6505]: Unregistered Authentication Agent for unix-process:11708:568436 (system bus name :1.115, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)

Apr 24 20:07:19 pxc1 libvirtd[7173]: 2019-04-25 03:07:19.828+0000: 7173: info : libvirt version: 4.5.0, package: 10.el7 (CentOS BuildSystem <http://bugs.centos.org>, 201
Apr 24 20:07:19 pxc1 libvirtd[7173]: 2019-04-25 03:07:19.828+0000: 7173: info : hostname: pxc1
Apr 24 20:07:19 pxc1 libvirtd[7173]: 2019-04-25 03:07:19.828+0000: 7173: error : virFirewallApplyRuleFirewallD:790 : The name org.fedoraproject.FirewallD1 was not provid
Apr 24 20:07:19 pxc1 polkitd[6505]: Unregistered Authentication Agent for unix-process:11656:566133 (system bus name :1.114, object path /org/freedesktop/PolicyKit1/Auth
Apr 24 20:07:41 pxc1 polkitd[6505]: Registered Authentication Agent for unix-process:11708:568436 (system bus name :1.115 [/usr/bin/pkttyagent --notify-fd 5 --fallback],
Apr 24 20:07:41 pxc1 systemd[1]: Started HAProxy Load Balancer.
Apr 24 20:07:41 pxc1 haproxy-systemd-wrapper[11714]: haproxy-systemd-wrapper: executing /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid -Ds
Apr 24 20:07:41 pxc1 polkitd[6505]: Unregistered Authentication Agent for unix-process:11708:568436 (system bus name :1.115, object path /org/freedesktop/PolicyKit1/Auth
Apr 24 20:07:41 pxc1 haproxy-systemd-wrapper[11714]: [WARNING] 113/200741 (11717) : parsing [/etc/haproxy/haproxy.cfg:46] : 'option httplog' not usable with frontend 'px
Apr 24 20:07:41 pxc1 haproxy-systemd-wrapper[11714]: [WARNING] 113/200741 (11717) : config : 'option forwardfor' ignored for frontend 'pxc-front' as it requires HTTP mod
Apr 24 20:07:41 pxc1 haproxy-systemd-wrapper[11714]: [WARNING] 113/200741 (11717) : config : 'option forwardfor' ignored for backend 'pxc-back' as it requires HTTP mode.
Apr 24 20:07:41 pxc1 haproxy-systemd-wrapper[11714]: [ALERT] 113/200741 (11717) : Starting frontend pxc-front: cannot bind socket [0.0.0.0:3306]
Apr 24 20:07:41 pxc1 systemd[1]: haproxy.service: main process exited, code=exited, status=1/FAILURE
Apr 24 20:07:41 pxc1 haproxy-systemd-wrapper[11714]: haproxy-systemd-wrapper: exit, haproxy RC=1
Apr 24 20:07:41 pxc1 systemd[1]: Unit haproxy.service entered failed state.
Apr 24 20:07:41 pxc1 systemd[1]: haproxy.service failed.
Apr 24 20:10:01 pxc1 systemd[1]: Started Session 22 of user root.
Apr 24 20:10:01 pxc1 systemd[1]: Started Session 23 of user root.
Apr 24 20:10:01 pxc1 CROND[11869]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Apr 24 20:10:01 pxc1 CROND[11872]: (root) CMD (ntpdate ntp3.aliyun.com )
Apr 24 20:10:01 pxc1 CROND[11868]: (root) CMDOUT (/bin/sh: ntpdate: command not found)

解决办法:

绑定不了这个IP地址

没有办法,注释了该项

[root@pxc1 ~]# vi /etc/percona-xtradb-cluster.conf.d/wsrep.cnf

3、[ERROR] Can't start server: listen() on TCP/IP port: Address already in use

2019-04-25T09:39:26.855277Z 0 [Note] IPv6 is available.
2019-04-25T09:39:26.855304Z 0 [Note] - '::' resolves to '::';
2019-04-25T09:39:26.855332Z 0 [Note] Server socket created on IP: '::'.
2019-04-25T09:39:26.855373Z 0 [ERROR] Can't start server: listen() on TCP/IP port: Address already in use
2019-04-25T09:39:26.855382Z 0 [ERROR] listen() on TCP/IP failed with error 98
2019-04-25T09:39:26.855422Z 0 [ERROR] Aborting

2019-04-25T09:39:26.855437Z 0 [Note] Giving 2 client threads a chance to die gracefully
2019-04-25T09:39:28.861627Z 0 [Note] WSREP: Closing send monitor...
2019-04-25T09:39:28.861674Z 0 [Note] WSREP: Closed send monitor.
2019-04-25T09:39:28.861707Z 0 [Note] WSREP: gcomm: terminating thread
2019-04-25T09:39:28.861758Z 0 [Note] WSREP: gcomm: joining thread

解决办法:

查看相关地址,发现3306被占用

[root@pxc1 ~]# netstat -tunl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 192.168.132.131:3306 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN

关闭keepalived虚拟的IP地址

[root@pxc1 ~]# systemctl stop keepalived

后重启正常

Haproxy + Keepalived +PXC 常见错误的更多相关文章

  1. 利用ansible书写playbook搭建HAProxy+Keepalived+PXC负载均衡和高可用的PXC环境续

    ansible.playbook.haproxy.keepalived.PXC haproxy+keepalived双主模式调度pxc集群 HAProxy介绍 反向代理服务器,支持双机热备支持虚拟主机 ...

  2. HAProxy+Keepalived+PXC负载均衡和高可用的PXC环境

    HAProxy介绍 反向代理服务器,支持双机热备支持虚拟主机,但其配置简单,拥有非常不错的服务器健康检查功能,当其代理的后端服务器出现故障, HAProxy会自动将该服务器摘除,故障恢复后再自动将该服 ...

  3. Haproxy+Keepalived负载均衡

    Haproxy介绍 HAProxy是一个特别适用于高可用性环境的TCP/HTTP开源的反向代理和负载均衡软件.在7层负载均衡方面的功能很强大(支持cookie track, header rewrit ...

  4. haproxy+keepalived(涵盖了lvs,nginx.haproxy比较)

    文章转载自: haproxy+keepalived    https://cloud.tencent.com/developer/article/1026385 网络四层和七层的区别   https: ...

  5. Haproxy+Keepalived高可用环境部署梳理(主主和主从模式)

    Nginx.LVS.HAProxy 是目前使用最广泛的三种负载均衡软件,本人都在多个项目中实施过,通常会结合Keepalive做健康检查,实现故障转移的高可用功能. 1)在四层(tcp)实现负载均衡的 ...

  6. HaProxy+Keepalived+Mycat高可用群集配置

    概述 本章节主要介绍配置HaProxy+Keepalived高可用群集,Mycat的配置就不在这里做介绍,可以参考我前面写的几篇关于Mycat的文章. 部署图: 配置  HaProxy安装 181和1 ...

  7. haproxy+keepalived实现高可用负载均衡

    软件负载均衡一般通过两种方式来实现:基于操作系统的软负载实现和基于第三方应用的软负载实现.LVS就是基于Linux操作系统实现的一种软负载,HAProxy就是开源的并且基于第三应用实现的软负载. HA ...

  8. HaProxy+keepalived实现负载均衡

    HAProxy提供高可用性.负载均衡以及基于TCP和HTTP应用的代理,支持虚拟主机,它是免费.快速并且可靠的一种解决方案.HAProxy特别适用于那些负载特大的web站点,这些站点通常又需要会话保持 ...

  9. 实现基于Haproxy+Keepalived负载均衡高可用架构

    1.项目介绍: 上上期我们实现了keepalived主从高可用集群网站架构,随着公司业务的发展,公司负载均衡服务已经实现四层负载均衡,但业务的复杂程度提升,公司要求把mobile手机站点作为单独的服务 ...

随机推荐

  1. Django中的Form表单验证

    回忆一下Form表单验证的逻辑: 前端有若干个input输入框,将用户输入内容,以字典传递给后端. 后端预先存在一个Form表单验证的基类,封装了一个检测用户输入是否全部通过的方法.该方法会先定义好错 ...

  2. CentOS7.0安装Nginx 1.7.4

    一.安装准备 首先由于nginx的一些模块依赖一些lib库,所以在安装nginx之前,必须先安装这些lib库,这些依赖库主要有g++.gcc.openssl-devel.pcre-devel和zlib ...

  3. Win7 IIS配置

    一.首先,在开始打开你的控制面板 二.进入到控制面板,选择程序和功能,点击进入 三.在程序与功能中,左菜单栏,打开你的Windows工能 四.在Windows工能中,把你的Internet信息服务中的 ...

  4. 构建Dubbo-2.0.7源码

    一. 下载源码: git clone --branch dubbo-2.0.7 https://github.com/apache/incubator-dubbo.git 二. 下载依赖 git cl ...

  5. linux之间免密操作

    为了方便分布式集群操作,主机master需要免密操作两个节点slave1和slave2(slave1和slave2在对应机器已经修改hosts文件) 操作步骤: 首先测试连接slave1操作: [ro ...

  6. COCI 2018/2019 CONTEST #2 T4 Maja T5Sunčanje Solution

    COCI 2018/2019 CONTEST #2 T4 T5 Solution abstract 花式暴力 #2 T5 Sunčanje 题意 按顺序给你1e5个长方形(左下角坐标&& ...

  7. mayan游戏

    这道题超级好 就是我太菜了写了几个小时不算是debug了几个小时. 我只想出了几个小剪枝 可能是状态不太好吧 写完这道题真的是完美诠释了什么,叫做: 暴力出奇迹!!! 真的是太暴力了. 最多只移动5步 ...

  8. 用sort方法输出数组

  9. IP的面向无连接状态

    ip是面向于无连接的状态,在发包前,不需要建立与对端目标地址之间的连接. ip采用面向无连接的原因? 面向连接比无连接复杂,此外每次通信前都要事先建立连接,会降低处理速度.需要有连接时可以委托上一层提 ...

  10. 构建react项目失败解决办法

    1.初始化项目,报下方错误 2.解决方法,更新淘宝镜像 npm config set registry https://registry.npm.taobao.org 3.在初始化项目 create- ...