Hello everybody,
I have been running two node cluster for quite some time. Both nodes are VMs on PVE in the same subnet. Both nodes are on PMG 7.0-1 (pmg-api 7.0-7).
I am struggling with adding a third node. I was following steps from both online documentation and this forum. I was able to add a third node (which is a freshly installed VM in a remote location connected to other nodes via wireguard vpn tunnel). The third node seems to synchronize correctly:
But both original master and node seem not to synchronize correctly:
I am able to ssh from every node to every other node without providing a password.
And one more status result (which is the same on all nodes):
I would be grateful if somebody could point me in the right direction how to successfully create the three node cluster.
Thanks,
Martin
EDIT:
Although both original nodes are stuck on syncing, dashboards on all three nodes look identical. At least some sort of synchronisation is taking place. However, syslogs on first two nodes show the same error.
I have been running two node cluster for quite some time. Both nodes are VMs on PVE in the same subnet. Both nodes are on PMG 7.0-1 (pmg-api 7.0-7).
I am struggling with adding a third node. I was following steps from both online documentation and this forum. I was able to add a third node (which is a freshly installed VM in a remote location connected to other nodes via wireguard vpn tunnel). The third node seems to synchronize correctly:
Code:
Sep 23 11:30:27 pmg-office systemd[1]: Starting Proxmox Mail Gateway Database Mirror Daemon...
Sep 23 11:30:30 pmg-office pmgmirror[7948]: starting server
Sep 23 11:30:30 pmg-office systemd[1]: Started Proxmox Mail Gateway Database Mirror Daemon.
Sep 23 11:32:31 pmg-office pmgmirror[7948]: starting cluster synchronization
Sep 23 11:32:43 pmg-office pmgmirror[7948]: cluster synchronization finished (0 errors, 12.40 seconds (files 2.89, database 7.02, config 2.50))
Sep 23 11:34:30 pmg-office pmgmirror[7948]: starting cluster synchronization
Sep 23 11:34:41 pmg-office pmgmirror[7948]: cluster synchronization finished (0 errors, 10.87 seconds (files 2.99, database 5.78, config 2.09))
Sep 23 11:36:30 pmg-office pmgmirror[7948]: starting cluster synchronization
Sep 23 11:36:41 pmg-office pmgmirror[7948]: cluster synchronization finished (0 errors, 11.40 seconds (files 3.06, database 6.15, config 2.19))
But both original master and node seem not to synchronize correctly:
Code:
Sep 23 11:26:44 pmg pmgmirror[866]: cluster synchronization finished (0 errors, 0.15 seconds (files 0.12, database 0.03, config 0.00))
Sep 23 11:28:44 pmg pmgmirror[866]: starting cluster synchronization
Sep 23 11:28:44 pmg pmgmirror[866]: database sync 'pmg-backup' failed - large time difference (> 7 seconds) - not syncing
Sep 23 11:28:44 pmg pmgmirror[866]: cluster synchronization finished (1 errors, 0.01 seconds (files 0.00, database 0.01, config 0.00))
Sep 23 11:30:44 pmg pmgmirror[866]: starting cluster synchronization
Sep 23 11:30:45 pmg pmgmirror[866]: database sync 'pmg-office' failed - large time difference (> 7 seconds) - not syncing
Sep 23 11:30:45 pmg pmgmirror[866]: database sync 'pmg-backup' failed - large time difference (> 7 seconds) - not syncing
Sep 23 11:30:45 pmg pmgmirror[866]: cluster synchronization finished (2 errors, 0.26 seconds (files 0.00, database 0.26, config 0.00))
Sep 23 11:32:44 pmg pmgmirror[866]: starting cluster synchronization
Sep 23 11:32:47 pmg pmgmirror[866]: database sync 'pmg-office' failed - DBD::Pg::st execute failed: ERROR: duplicate key value violates unique constraint "cstatistic_pkey"
DETAIL: Key (cid, rid)=(3, 1472) already exists. at /usr/share/perl5/PMG/DBTools.pm line 1095.
Sep 23 11:32:48 pmg pmgmirror[866]: cluster synchronization finished (1 errors, 3.51 seconds (files 1.70, database 1.81, config 0.00))
Sep 23 11:34:44 pmg pmgmirror[866]: starting cluster synchronization
Sep 23 11:34:47 pmg pmgmirror[866]: database sync 'pmg-office' failed - DBD::Pg::st execute failed: ERROR: duplicate key value violates unique constraint "cstatistic_pkey"
DETAIL: Key (cid, rid)=(3, 1472) already exists. at /usr/share/perl5/PMG/DBTools.pm line 1095.
Sep 23 11:34:47 pmg pmgmirror[866]: cluster synchronization finished (1 errors, 3.15 seconds (files 1.54, database 1.60, config 0.00))
Sep 23 11:36:44 pmg pmgmirror[866]: starting cluster synchronization
Sep 23 11:36:47 pmg pmgmirror[866]: database sync 'pmg-office' failed - DBD::Pg::st execute failed: ERROR: duplicate key value violates unique constraint "cstatistic_pkey"
DETAIL: Key (cid, rid)=(3, 1472) already exists. at /usr/share/perl5/PMG/DBTools.pm line 1095.
Code:
Sep 23 11:28:59 pmg-backup pmgmirror[846]: starting cluster synchronization
Sep 23 11:28:59 pmg-backup pmgmirror[846]: database sync 'pmg' failed - large time difference (> 6 seconds) - not syncing
Sep 23 11:29:00 pmg-backup pmgmirror[846]: cluster synchronization finished (1 errors, 0.71 seconds (files 0.00, database 0.46, config 0.25))
Sep 23 11:30:59 pmg-backup pmgmirror[846]: starting cluster synchronization
Sep 23 11:30:59 pmg-backup pmgmirror[846]: database sync 'pmg' failed - large time difference (> 6 seconds) - not syncing
Sep 23 11:30:59 pmg-backup pmgmirror[846]: database sync 'pmg-office' failed - DBI connect('dbname=Proxmox_ruledb;host=/run/pmgtunnel;port=3;','root',...) failed: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/run/pmgtunnel/.s.PGSQL.3"? at /usr/share/perl5/PMG/DBTools.pm line 66.
Sep 23 11:30:59 pmg-backup pmgmirror[846]: cluster synchronization finished (2 errors, 0.73 seconds (files 0.00, database 0.43, config 0.30))
Sep 23 11:32:59 pmg-backup pmgmirror[846]: starting cluster synchronization
Sep 23 11:33:03 pmg-backup pmgmirror[846]: database sync 'pmg-office' failed - DBD::Pg::st execute failed: ERROR: duplicate key value violates unique constraint "cstatistic_pkey"
DETAIL: Key (cid, rid)=(3, 1472) already exists. at /usr/share/perl5/PMG/DBTools.pm line 1095.
Sep 23 11:33:03 pmg-backup pmgmirror[846]: cluster synchronization finished (1 errors, 3.94 seconds (files 1.64, database 2.07, config 0.23))
Sep 23 11:34:59 pmg-backup pmgmirror[846]: starting cluster synchronization
Sep 23 11:35:03 pmg-backup pmgmirror[846]: database sync 'pmg-office' failed - DBD::Pg::st execute failed: ERROR: duplicate key value violates unique constraint "cstatistic_pkey"
DETAIL: Key (cid, rid)=(3, 1472) already exists. at /usr/share/perl5/PMG/DBTools.pm line 1095.
Sep 23 11:35:03 pmg-backup pmgmirror[846]: cluster synchronization finished (1 errors, 4.08 seconds (files 1.59, database 2.26, config 0.23))
I am able to ssh from every node to every other node without providing a password.
And one more status result (which is the same on all nodes):
Code:
root@pmg-office:/# pmgcm status
NAME(CID)--------------IPADDRESS----ROLE-STATE---------UPTIME---LOAD----MEM---DISK
pmg(1) 192.168.XXX.105 master S 1 day 02:19 0.02 62% 75%
pmg-office(3) 192.168.XX.150 node A 16:28 0.39 89% 42%
pmg-backup(2) 192.168.XXX.100 node S 1 day 02:20 0.01 51% 74%
I would be grateful if somebody could point me in the right direction how to successfully create the three node cluster.
Thanks,
Martin
EDIT:
Although both original nodes are stuck on syncing, dashboards on all three nodes look identical. At least some sort of synchronisation is taking place. However, syslogs on first two nodes show the same error.
Last edited: