[SOLVED] Sync errors after renaming hosts

TobiTobs

Member
Jun 3, 2022
11
2
8
Hi there,

I renamed my hosts according to this guide: https://pmg.proxmox.com/wiki/index.php/Change_FQDN
Both are in a cluster and after the hostname change, the master node has the following error in the syslog
starting cluster synchronization
Jun 03 10:21:34 mxgate01 pmgmirror[871]: database sync 'mxgate02' failed - DBI connect('dbname=Proxmox_ruledb;host=/run/pmgtunnel;port=2;','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.2"? at /usr/share/perl5/PMG/DBTools.pm line 66.
Jun 03 10:21:34 mxgate01 pmgmirror[871]: cluster synchronization finished (1 errors, 0.01 seconds (files 0.00, database 0.01, config 0.00))
Postgres is running on both instances. Is there any other place I can check?

Thanks in advance!
Tobias
 
did you also do this:

If you run a Proxmox Mail Gateway cluster, you will need to adapt /etc/pmg/cluster.conf with the changed IP addresses and hostnames and make sure that passwordless SSH authentication is still working between the nodes in the cluster.

Additionally check all other nodes' /etc/hosts files to make sure that the old IP address and FQDN are replaced there as well.
?
did you restart the servers (or services) ?
 
IP addresses did not change, hostnames were changed in /etc/pmg/cluster.conf
A reboot was done after both instances were changed.

I added the private IP addresses to the /etc/hosts file just now and its working now, before the hosts connected via the public ip - but that's ok, I can live with adding the private IPs