From 2181b5ced09d685c298acec35f1fa2a25347f865 Mon Sep 17 00:00:00 2001 From: johnysigma Date: Wed, 6 Aug 2025 11:24:24 +0300 Subject: [PATCH] Fix RQLite bind addresses to allow external connections - Change RQLite HTTP bind from localhost to 0.0.0.0 - Change RQLite Raft bind from localhost to 0.0.0.0 - This allows secondary bootstrap nodes and regular nodes to join the cluster - Resolves 'invalid join address' error for secondary bootstrap nodes --- pkg/database/rqlite.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/database/rqlite.go b/pkg/database/rqlite.go index 2f04a5d..4cd8b00 100644 --- a/pkg/database/rqlite.go +++ b/pkg/database/rqlite.go @@ -43,8 +43,8 @@ func (r *RQLiteManager) Start(ctx context.Context) error { // Build RQLite command args := []string{ - "-http-addr", fmt.Sprintf("localhost:%d", r.config.RQLitePort), - "-raft-addr", fmt.Sprintf("localhost:%d", r.config.RQLiteRaftPort), + "-http-addr", fmt.Sprintf("0.0.0.0:%d", r.config.RQLitePort), + "-raft-addr", fmt.Sprintf("0.0.0.0:%d", r.config.RQLiteRaftPort), } // Add join address if specified (for non-bootstrap or secondary bootstrap nodes)