From 8ec9a1e70d7b43455c89768f27187f15d5983a38 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 20 Nov 2026 01:55:55 -0700 Subject: names restarts itself when the Lightning node's socket goes stale. "tried to zap pnk but it said names.coinos.io could not create an invoice" (Adam, 2026-11-20). bcln was recreated at 04:26Z; names has the node's socket file mounted, the mount kept pointing at the old file, and every @coinos.io LNURL invoice failed with ECONNREFUSED for four and a half hours until names was restarted by hand. The same thing cost 13 hours on 2026-11-11. The socket client now counts refused connections: after a minute of nothing but refusals (ten minutes if this process never reached the node, so a node that is down doesn't restart names in a loop) names logs it and exits, and docker's restart mounts the new socket. Only the mainnet node does this; the mutinynet one is left alone. New bridge/ln.test.js passes (4 checks), with the store and forget tests. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_01VMan6Upic5L6MMJzkTn8zg --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package.json') diff --git a/package.json b/package.json index 357f54f..1915df8 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "description": "Server-side services for coinos v3: the payment-name registrar, NWC push, Blossom sync storage, the public feed and media proxy", "license": "MIT", "scripts": { - "test": "bun test names/store.test.js names/forget.test.js", + "test": "bun test names/store.test.js names/forget.test.js bridge/ln.test.js", "names": "bun names/server.js", "nwcpush": "bun nwcpush/server.js", "blossom": "bun blossom/server.js", -- cgit v1.2.3