Multiserver (2-Node) Setup - Backups not visible
I'm not 100% sure if it's a bug or we just misconfigured our environment, but back to our issue:
Within our 2-Node Setup (database + web server), we can not see backups created for web files, just for the database. Both nodes have only one IP (no virtual interfaces)
On the one hand our database server has different settings within /usr/local/ispconfig/server/lib/config.inc.php for $conf['db_host'] (= localhost) and $conf['dbmaster_host'] (database server IP) On the other hand our webserver is pointing with both variables towards IP of our database server.
Within /usr/local/ispconfig/server/lib/classes/backup.inc.php I've found, that the information about created backup files will be pushed to master database just when db_host and dbmaster_host are different.
Maybe it's possible to modify file backup.inc.php a bit to check the same way as it's already done within /usr/local/ispconfig/server/lib/app.inc.php
/*
Initialize the connection to the master DB,
if we are in a multiserver setup
*/
if($conf['dbmaster_host'] != '' && ($conf['dbmaster_host'] != $conf['db_host'] || ($conf['dbmaster_host'] == $conf['db_host'] && $conf['dbmaster_database'] != $conf['db_database']))) {
try {
$this->dbmaster = new db($conf['dbmaster_host'], $conf['dbmaster_user'], $conf['dbmaster_password'], $conf['dbmaster_database'], $conf['dbmaster_port'], $conf['dbmaster_client_flags']);
} catch (Exception $e) {
$this->dbmaster = false;
}
} else {
$this->dbmaster = $this->db;
}
We fixed that issue temporarily with a /etc/hosts-entry so that we use IP + hostname within config.inc.php on our webserver