From 854dcaee59c97367f23249e6bfc137ee57afe7db Mon Sep 17 00:00:00 2001 From: Darun Seethammagari Date: Tue, 23 Jan 2024 17:21:04 -0800 Subject: [PATCH] fix: Set both grpc servers to run on 0.0.0.0 --- block-streamer/src/server/mod.rs | 2 +- runner/src/server/runner-server.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/block-streamer/src/server/mod.rs b/block-streamer/src/server/mod.rs index a83535dda..10099b3f3 100644 --- a/block-streamer/src/server/mod.rs +++ b/block-streamer/src/server/mod.rs @@ -10,7 +10,7 @@ pub async fn init( delta_lake_client: std::sync::Arc, lake_s3_config: aws_sdk_s3::Config, ) -> anyhow::Result<()> { - let addr = format!("[::]:{}", port).parse()?; + let addr = format!("0.0.0.0:{}", port).parse()?; tracing::info!("Starting RPC server at {}", addr); diff --git a/runner/src/server/runner-server.ts b/runner/src/server/runner-server.ts index 32a7e3f8d..fe1dcce96 100644 --- a/runner/src/server/runner-server.ts +++ b/runner/src/server/runner-server.ts @@ -20,13 +20,13 @@ export default function startRunnerServer (executors: Map assert(process.env.GRPC_SERVER_PORT, 'GRPC_SERVER_PORT is not defined'); server.bindAsync( - `[::]:${process.env.GRPC_SERVER_PORT}`, + `0.0.0.0:${process.env.GRPC_SERVER_PORT}`, credentials.createInsecure(), // TODO: Use secure credentials with allow for Coordinator (err: Error | null, port: number) => { if (err) { console.error(`Server error: ${err.message}`); } else { - console.log(`gRPC server bound on port: ${port}`); + console.log(`gRPC server bound on: 0.0.0.0:${port}`); server.start(); } }