From 592653ec19654115f9c0ced25816610d1d554998 Mon Sep 17 00:00:00 2001 From: "claude[bot]" <209825114+claude[bot]@users.noreply.github.com> Date: Sat, 28 Jun 2025 06:46:48 +0000 Subject: [PATCH] fix: Use configured bind address for temporary PostgreSQL instance The temporary PostgreSQL instance during database creation was hardcoded to listen only on 127.0.0.1, causing TCP/IP connection failures when the final configuration expected to bind to 0.0.0.0 (default). This change ensures the temporary instance uses the same network configuration as the final instance. Fixes issue where PostgreSQL instances could not accept TCP/IP connections during the creation process. Co-authored-by: Samuel --- src/instance/manager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/instance/manager.ts b/src/instance/manager.ts index 5b7db29..28dc62b 100644 --- a/src/instance/manager.ts +++ b/src/instance/manager.ts @@ -236,7 +236,7 @@ export class InstanceManager { const tempProcess = spawn(postgresPath, [ '-D', config.spec.storage.dataDirectory, '-p', config.spec.network.port.toString(), - '-c', 'listen_addresses=127.0.0.1', + '-c', `listen_addresses=${config.spec.network.bindAddress}`, '-c', `unix_socket_directories=${socketDirectory}`, ], { detached: false,