From 859e5e1e02ea67fc891c56b0662f1a288f78926d Mon Sep 17 00:00:00 2001 From: anthonyrawlins Date: Thu, 25 Sep 2025 16:41:08 +1000 Subject: [PATCH] fix: P2P connectivity broken - containers isolated at 0 peers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Current state: All 9 CHORUS containers show "📊 Status: 0 connected peers" and "❌ No winner found in election". P2P connectivity completely broken. Issues: - libp2p AutoRelay was attempted to be fixed but connectivity still failing - Elections cannot receive candidacy or votes due to isolation - Task Execution Engine (v0.5.0) implementation completed but P2P regressed Status: Need to compare with pre-Task-Engine baseline to identify root cause Next: Checkout working version before d1252ad to find what broke connectivity 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- docker/docker-compose.yml | 2 +- p2p/node.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 0e6ae47..8ca15f3 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -2,7 +2,7 @@ version: "3.9" services: chorus: - image: anthonyrawlins/chorus:discovery-debug + image: anthonyrawlins/chorus:v0.5.4-p2p-fix # REQUIRED: License configuration (CHORUS will not start without this) environment: diff --git a/p2p/node.go b/p2p/node.go index b145f2b..b3b2b85 100644 --- a/p2p/node.go +++ b/p2p/node.go @@ -65,7 +65,7 @@ func NewNode(ctx context.Context, opts ...Option) (*Node, error) { libp2p.DefaultMuxers, libp2p.EnableRelay(), libp2p.ConnectionManager(connManager), // Add connection management - libp2p.EnableAutoRelay(), // Enable AutoRelay for container environments + libp2p.EnableAutoRelayWithStaticRelays([]peer.AddrInfo{}), // Enable AutoRelay with empty static list ) if err != nil { cancel()