请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

第二台虚拟机创建pxc容器后一直闪退。

老师你好,今天用本地虚拟机模拟操作,第一台虚拟机正常创建两个pxc节点,也能正常同步,但是第二台虚拟机创建容器后,运行50多秒就闪退了。防火墙和selinux都关闭了。

正在回答 回答被采纳积分+3

1回答

神思者 2018-12-09 21:46:36

1.pxc创建容器的命令写的不对,检查命令
2.第二个虚拟机是否加入了swarm网络
3.用docker logs 容器id看一下日志报错信息

0 回复 有任何疑惑可以回复我~
  • 提问者 weboer #1
    命令是没有错的,第二个虚拟机也加入了swarm网络,可以正常查到;但是查看了日志,有提示:【WSREP: failed to open gcomm backend connection: 131: No address to connect (FATAL)
             at gcomm/src/gmcast.cpp:connect_precheck():310】这是什么情况?
    回复 有任何疑惑可以回复我~ 2018-12-09 23:10:50
  • 提问者 weboer #2
    [ERROR] WSREP: failed to open gcomm backend connection: 131: No address to connect (FATAL)
             at gcomm/src/gmcast.cpp:connect_precheck():310
    2018-12-09T14:28:29.401353Z 0 [ERROR] WSREP: gcs/src/gcs_core.cpp:gcs_core_open():209: Failed to open backend connection: -131 (State not recoverable)
    2018-12-09T14:28:29.401527Z 0 [ERROR] WSREP: gcs/src/gcs.cpp:gcs_open():1514: Failed to open channel 'PXC' at 'gcomm://pxc1': -131 (State not recoverable)
     [ERROR] WSREP: gcs connect failed: State not recoverable
    [ERROR] WSREP: Provider/Node (gcomm://pxc1) failed to establish connection with cluster (reason: 7)
    [ERROR] Aborting
    
    [Note] Giving 0 client threads a chance to die gracefully
    [Note] WSREP: Waiting for active wsrep applier to exit
    [Note] WSREP: Service disconnected.
     [Note] WSREP: Waiting to close threads......
     [Note] WSREP: Some threads may fail to exit.
    [Note] Binlog end
    [Note] mysqld: Shutdown complete
    回复 有任何疑惑可以回复我~ 2018-12-09 23:14:54
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信