Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • I ISPConfig 3
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 551
    • Issues 551
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 41
    • Merge requests 41
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ISPConfig
  • ISPConfig 3
  • Issues
  • #6182

Closed
Open
Created Jun 15, 2021 by Daniel Hochhaus@Hightower_dah

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

Assignee
Assign to
Time tracking