From 1a1837f183242557978ab8f2f125244895a11c98 Mon Sep 17 00:00:00 2001 From: admin Date: Tue, 3 Feb 2026 06:46:16 -0700 Subject: [PATCH] fix mgdb setup... maybe --- lxc1/p0-infrastructure/mgdb.yml | 8 ++++++-- lxc1/p2-apps/guacamole.yml | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lxc1/p0-infrastructure/mgdb.yml b/lxc1/p0-infrastructure/mgdb.yml index b744b31..16beb50 100644 --- a/lxc1/p0-infrastructure/mgdb.yml +++ b/lxc1/p0-infrastructure/mgdb.yml @@ -17,10 +17,14 @@ services: - --wsrep-on=ON - --wsrep-provider=/usr/lib/galera/libgalera_smm.so - --wsrep-cluster-name=${CLUSTER_NAME} - - --wsrep-cluster-address=gcomm://${CLUSTER_LOCAL_IP},${CLUSTER_REMOTE_IP} + # The ?pc.wait_prim=no flag allows the service to start even if it can't find a primary yet + - --wsrep-cluster-address=gcomm://${CLUSTER_LOCAL_IP},${CLUSTER_REMOTE_IP}?pc.wait_prim=no - --wsrep-node-address=${CLUSTER_KEEPALIVED_IP} - --wsrep-node-name=node${MGDB_NODE_NUMBER} - --binlog-format=row - --default-storage-engine=innodb - --innodb-autoinc-lock-mode=2 - - --bind-address=0.0.0.0 \ No newline at end of file + - --bind-address=0.0.0.0 + # This is the "Zero-Management" fix: + # pc.ignore_sb=true allows a node to promote itself if its partner is missing. + - --wsrep-provider-options=pc.ignore_sb=true;pc.ignore_connection_expiry=true;pc.npvo=true \ No newline at end of file diff --git a/lxc1/p2-apps/guacamole.yml b/lxc1/p2-apps/guacamole.yml index f991587..4f603cb 100644 --- a/lxc1/p2-apps/guacamole.yml +++ b/lxc1/p2-apps/guacamole.yml @@ -23,7 +23,7 @@ services: environment: - GUACD_HOSTNAME=${GUACD_NAME} - MYSQL_HOSTNAME=${GUAC_DB_HOST} - - MYSQL_PORT=${GUAC_DB_PORT} + - MYSQL_PORT=3306 - MYSQL_DATABASE=${GUAC_DB_NAME} - MYSQL_USER=${GUAC_DB_USER} - MYSQL_PASSWORD=${GUAC_DB_PASS}