[SOLVED] Sync errors after renaming hosts

tbsbckr

New Member
Jun 3, 2022
4
0
1
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
 

dcsapak

Proxmox Staff Member
Staff member
Feb 1, 2016
8,062
992
163
34
Vienna
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) ?
 

tbsbckr

New Member
Jun 3, 2022
4
0
1
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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!