so I tried x times ago the installation. I followed exactly this both installation instrucions:
https://www.cyberciti.biz/faq/howto-install-configure-mariadb-galera-master-cluster-ubuntulinux/https://www.digitalocean.com/community/tutorials/how-to-configure-a-galera-cluster-with-mariadb-10-1-on-ubuntu-16-04-serversEverything is running, but sync via rsync not possible.
syslog shows the following:
Jun 12 08:32:45 ns3079510 mysqld[1185]: 2017-06-12 8:32:45 112371408574720 [Note] /usr/sbin/mysqld (mysqld 10.1.24-MariaDB-1~xenial) starting as process 1375 ...
Jun 12 08:32:49 ns3079510 mysqld[1185]: WSREP: Recovered position 00000000-0000-0000-0000-000000000000:-1
Jun 12 08:32:49 ns3079510 mysqld[1411]: 2017-06-12 8:32:49 110692474747136 [Note] /usr/sbin/mysqld (mysqld 10.1.24-MariaDB-1~xenial) starting as process 1411 ...
Jun 12 08:32:49 ns3079510 mysqld[1411]: 2017-06-12 8:32:49 110692474747136 [Note] WSREP: Read nil XID from storage engines, skipping position init
Jun 12 08:32:49 ns3079510 mysqld[1411]: 2017-06-12 8:32:49 110692474747136 [Note] WSREP: wsrep_load(): loading provider library '/usr/lib/galera/libgalera_smm.so'
Jun 12 08:32:49 ns3079510 mysqld[1411]: 2017-06-12 8:32:49 110692474747136 [Note] WSREP: wsrep_load(): Galera 25.3.20(r3703) by Codership Oy <
in...@codership.com> loaded successfully.
Jun 12 08:32:49 ns3079510 mysqld[1411]: 2017-06-12 8:32:49 110692474747136 [Note] WSREP: CRC-32C: using hardware acceleration.
Jun 12 08:32:49 ns3079510 mysqld[1411]: 2017-06-12 8:32:49 110692474747136 [Note] WSREP: Found saved state: 00000000-0000-0000-0000-000000000000:-1, safe_to_bootsrap: 1
Jun 12 08:32:49 ns3079510 mysqld[1411]: 2017-06-12 8:32:49 110692474747136 [Note] WSREP: Passing config to GCS: base_dir = /var/lib/mysql/; base_host = 172.16.0.51; base_port = 4567; cert.log_conflicts = no; debug = no; evs.auto_evict = 0; evs.delay_margin = PT1S; evs.delayed_keep_period = PT30S; evs.inactive_check_period = PT0.5S; evs.inactive_timeout = PT15S; evs.join_retrans_period = PT1S; evs.max_install_timeouts = 3; evs.send_window = 4; evs.stats_report_period = PT1M; evs.suspect_timeout = PT5S; evs.user_send_window = 2; evs.view_forget_timeout = PT24H; gcache.dir = /var/lib/mysql/; gcache.keep_pages_size = 0; gcache.mem_size = 0;
gcache.name = /var/lib/mysql//galera.cache; gcache.page_size = 128M; gcache.recover = no; gcache.size = 128M; gcomm.thread_prio = ; gcs.fc_debug = 0; gcs.fc_factor = 1.0; gcs.fc_limit = 16; gcs.fc_master_slave = no; gcs.max_packet_size = 64500; gcs.max_throttle = 0.25; gcs.recv_q_hard_limit = 9223372036854775807; gcs.recv_q_soft_limit = 0.25; gcs.sync_donor = no; gmcast.segment = 0; gmcast.version = 0; pc.announce_timeout = PT3S; pc.checksum = false; pc.ig
Jun 12 08:32:49 ns3079510 mysqld[1411]: 2017-06-12 8:32:49 110692474747136 [Note] WSREP: GCache history reset: old(00000000-0000-0000-0000-000000000000:0) -> new(00000000-0000-0000-0000-000000000000:-1)
Jun 12 08:32:49 ns3079510 mysqld[1411]: 2017-06-12 8:32:49 110692474747136 [Note] WSREP: Assign initial position for certification: -1, protocol version: -1
Jun 12 08:32:49 ns3079510 mysqld[1411]: 2017-06-12 8:32:49 110692474747136 [Note] WSREP: wsrep_sst_grab()
Jun 12 08:32:49 ns3079510 mysqld[1411]: 2017-06-12 8:32:49 110692474747136 [Note] WSREP: Start replication
Jun 12 08:32:49 ns3079510 mysqld[1411]: 2017-06-12 8:32:49 110692474747136 [Note] WSREP: Setting initial position to 00000000-0000-0000-0000-000000000000:-1
Jun 12 08:32:49 ns3079510 mysqld[1411]: 2017-06-12 8:32:49 110692474747136 [Note] WSREP: protonet asio version 0
Jun 12 08:32:49 ns3079510 mysqld[1411]: 2017-06-12 8:32:49 110692474747136 [Note] WSREP: Using CRC-32C for message checksums.
Jun 12 08:32:49 ns3079510 mysqld[1411]: 2017-06-12 8:32:49 110692474747136 [Note] WSREP: backend: asio
Jun 12 08:32:49 ns3079510 mysqld[1411]: 2017-06-12 8:32:49 110692474747136 [Note] WSREP: gcomm thread scheduling priority set to other:0
Jun 12 08:32:49 ns3079510 mysqld[1411]: 2017-06-12 8:32:49 110692474747136 [Warning] WSREP: access file(/var/lib/mysql//gvwstate.dat) failed(No such file or directory)
Jun 12 08:32:49 ns3079510 mysqld[1411]: 2017-06-12 8:32:49 110692474747136 [Note] WSREP: restore pc from disk failed
Jun 12 08:32:49 ns3079510 mysqld[1411]: 2017-06-12 8:32:49 110692474747136 [Note] WSREP: GMCast version 0
Jun 12 08:32:49 ns3079510 mysqld[1411]: 2017-06-12 8:32:49 110692474747136 [Note] WSREP: (f47d475f, 'tcp://
0.0.0.0:4567') listening at tcp://
0.0.0.0:4567Jun 12 08:32:49 ns3079510 mysqld[1411]: 2017-06-12 8:32:49 110692474747136 [Note] WSREP: (f47d475f, 'tcp://
0.0.0.0:4567') multicast: , ttl: 1
Jun 12 08:32:49 ns3079510 mysqld[1411]: 2017-06-12 8:32:49 110692474747136 [Note] WSREP: EVS version 0
Jun 12 08:32:49 ns3079510 mysqld[1411]: 2017-06-12 8:32:49 110692474747136 [Note] WSREP: gcomm: connecting to group 'test_cluster', peer '
172.16.0.50:,
172.16.0.51:'
Jun 12 08:32:49 ns3079510 mysqld[1411]: 2017-06-12 8:32:49 110692474747136 [Note] WSREP: (f47d475f, 'tcp://
0.0.0.0:4567') connection established to f47d475f tcp://
172.16.0.51:4567Jun 12 08:32:49 ns3079510 mysqld[1411]: 2017-06-12 8:32:49 110692474747136 [Warning] WSREP: (f47d475f, 'tcp://
0.0.0.0:4567') address 'tcp://
172.16.0.51:4567' points to own listening address, blacklisting
Jun 12 08:32:49 ns3079510 mysqld[1411]: 2017-06-12 8:32:49 110692474747136 [Note] WSREP: (f47d475f, 'tcp://
0.0.0.0:4567') connection established to 4681d2df tcp://
172.16.0.50:4567Jun 12 08:32:49 ns3079510 mysqld[1411]: 2017-06-12 8:32:49 110692474747136 [Note] WSREP: (f47d475f, 'tcp://
0.0.0.0:4567') turning message relay requesting on, nonlive peers:
Jun 12 08:32:50 ns3079510 mysqld[1411]: 2017-06-12 8:32:50 110692474747136 [Note] WSREP: declaring 4681d2df at tcp://
172.16.0.50:4567 stable
Jun 12 08:32:50 ns3079510 mysqld[1411]: 2017-06-12 8:32:50 110692474747136 [Note] WSREP: Node 4681d2df state prim
Jun 12 08:32:50 ns3079510 mysqld[1411]: 2017-06-12 8:32:50 110692474747136 [Note] WSREP: view(view_id(PRIM,4681d2df,4) memb {
Jun 12 08:32:50 ns3079510 mysqld[1411]: #0114681d2df,0
Jun 12 08:32:50 ns3079510 mysqld[1411]: #011f47d475f,0
Jun 12 08:32:50 ns3079510 mysqld[1411]: } joined {
Jun 12 08:32:50 ns3079510 mysqld[1411]: } left {
Jun 12 08:32:50 ns3079510 mysqld[1411]: } partitioned {
Jun 12 08:32:50 ns3079510 mysqld[1411]: })
Jun 12 08:32:50 ns3079510 mysqld[1411]: 2017-06-12 8:32:50 110692474747136 [Note] WSREP: save pc into disk
Jun 12 08:32:50 ns3079510 mysqld[1411]: 2017-06-12 8:32:50 110692474747136 [Note] WSREP: gcomm: connected
Jun 12 08:32:50 ns3079510 mysqld[1411]: 2017-06-12 8:32:50 110692474747136 [Note] WSREP: Changing maximum packet size to 64500, resulting msg size: 32636
Jun 12 08:32:50 ns3079510 mysqld[1411]: 2017-06-12 8:32:50 110692474747136 [Note] WSREP: Shifting CLOSED -> OPEN (TO: 0)
Jun 12 08:32:50 ns3079510 mysqld[1411]: 2017-06-12 8:32:50 110692474747136 [Note] WSREP: Opened channel 'test_cluster'
Jun 12 08:32:50 ns3079510 mysqld[1411]: 2017-06-12 8:32:50 110692474747136 [Note] WSREP: Waiting for SST to complete.
Jun 12 08:32:50 ns3079510 mysqld[1411]: 2017-06-12 8:32:50 110692118591232 [Note] WSREP: New COMPONENT: primary = yes, bootstrap = no, my_idx = 1, memb_num = 2
Jun 12 08:32:50 ns3079510 mysqld[1411]: 2017-06-12 8:32:50 110692118591232 [Note] WSREP: STATE EXCHANGE: Waiting for state UUID.
Jun 12 08:32:50 ns3079510 mysqld[1411]: 2017-06-12 8:32:50 110692118591232 [Note] WSREP: STATE EXCHANGE: sent state msg: f4cdb049-4f38-11e7-8302-02b7fe411841
Jun 12 08:32:50 ns3079510 mysqld[1411]: 2017-06-12 8:32:50 110692118591232 [Note] WSREP: STATE EXCHANGE: got state msg: f4cdb049-4f38-11e7-8302-02b7fe411841 from 0 (mdb01)
Jun 12 08:32:50 ns3079510 mysqld[1411]: 2017-06-12 8:32:50 110692118591232 [Note] WSREP: STATE EXCHANGE: got state msg: f4cdb049-4f38-11e7-8302-02b7fe411841 from 1 (mdb02)
Jun 12 08:32:50 ns3079510 mysqld[1411]: 2017-06-12 8:32:50 110692118591232 [Note] WSREP: Quorum results:
Jun 12 08:32:50 ns3079510 mysqld[1411]: #011version = 4,
Jun 12 08:32:50 ns3079510 mysqld[1411]: #011component = PRIMARY,
Jun 12 08:32:50 ns3079510 mysqld[1411]: #011conf_id = 3,
Jun 12 08:32:50 ns3079510 mysqld[1411]: #011members = 1/2 (joined/total),
Jun 12 08:32:50 ns3079510 mysqld[1411]: #011act_id = 0,
Jun 12 08:32:50 ns3079510 mysqld[1411]: #011last_appl. = -1,
Jun 12 08:32:50 ns3079510 mysqld[1411]: #011protocols = 0/7/3 (gcs/repl/appl),
Jun 12 08:32:50 ns3079510 mysqld[1411]: #011group UUID = c2482967-4f36-11e7-bdbb-1f53966b2ed7
Jun 12 08:32:50 ns3079510 mysqld[1411]: 2017-06-12 8:32:50 110692118591232 [Note] WSREP: Flow-control interval: [23, 23]
Jun 12 08:32:50 ns3079510 mysqld[1411]: 2017-06-12 8:32:50 110692118591232 [Note] WSREP: Shifting OPEN -> PRIMARY (TO: 0)
Jun 12 08:32:50 ns3079510 mysqld[1411]: 2017-06-12 8:32:50 110692422470400 [Note] WSREP: State transfer required:
Jun 12 08:32:50 ns3079510 mysqld[1411]: #011Group state: c2482967-4f36-11e7-bdbb-1f53966b2ed7:0
Jun 12 08:32:50 ns3079510 mysqld[1411]: #011Local state: 00000000-0000-0000-0000-000000000000:-1
Jun 12 08:32:50 ns3079510 mysqld[1411]: 2017-06-12 8:32:50 110692422470400 [Note] WSREP: New cluster view: global state: c2482967-4f36-11e7-bdbb-1f53966b2ed7:0, view# 4: Primary, number of nodes: 2, my index: 1, protocol version 3
Jun 12 08:32:50 ns3079510 mysqld[1411]: 2017-06-12 8:32:50 110692422470400 [Warning] WSREP: Gap in state sequence. Need state transfer.
Jun 12 08:32:50 ns3079510 mysqld[1411]: 2017-06-12 8:32:50 110692090525440 [Note] WSREP: Running: 'wsrep_sst_rsync --role 'joiner' --address '172.16.0.51' --datadir '/var/lib/mysql/' --parent '1411' --binlog '/var/log/mysql/mariadb-bin' 'Jun 12 08:32:51 ns3079510 rsyncd[1452]: rsyncd version 3.1.1 starting, listening on port 4444
Jun 12 08:32:52 ns3079510 mysqld[1411]: 2017-06-12 8:32:52 110692127508224 [Note] WSREP: (f47d475f, 'tcp://0.0.0.0:4567') connection to peer f47d475f with addr tcp://172.16.0.51:4567 timed out, no messages seen in PT3S
Jun 12 08:32:53 ns3079510 mysqld[1411]: 2017-06-12 8:32:53 110692127508224 [Note] WSREP: (f47d475f, 'tcp://0.0.0.0:4567') turning message relay requesting offI tested again with installing ufw and a second try to uninstall iptables. But the same results.
Node 1 shows:# mysql -u root -p -e "SHOW STATUS LIKE 'wsrep_cluster_size'"
Enter password: xxxx
+--------------------+-------+
| Variable_name | Value |
+--------------------+-------+
| wsrep_cluster_size | 2 |
+--------------------+-------+
Node 2:# mysql -u root -p -e "SHOW STATUS LIKE 'wsrep_cluster_size'"
Enter password: xxx
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111 "Connection refused")
Would be great to get a hint to get it running!