From 4b2c5daf45ade543ebdbe8a3c0cf793c436c8269 Mon Sep 17 00:00:00 2001 From: dHannasch Date: Thu, 19 Nov 2020 18:25:25 -0700 Subject: [PATCH] State which IP addresses are failing to match. (#11957) * State which IP addresses are failing to match. * Use f-string. * action item? * I could swear swear this passed with length 80 before * wait, this is how it wants f-strings * reword * action item * f Co-authored-by: SangBin Cho * f Co-authored-by: SangBin Cho * f Co-authored-by: SangBin Cho Co-authored-by: SangBin Cho --- python/ray/_private/services.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/python/ray/_private/services.py b/python/ray/_private/services.py index cad37d513..4eabfee6c 100644 --- a/python/ray/_private/services.py +++ b/python/ray/_private/services.py @@ -258,7 +258,15 @@ def get_address_info_from_redis_helper(redis_address, break if relevant_client is None: raise RuntimeError( - "Redis has started but no raylets have registered yet.") + f"This node has an IP address of {node_ip_address}, and Ray " + "expects this IP address to be either the Redis address or one of" + f" the Raylet addresses. Connected to Redis at {redis_address} and" + " found raylets at " + f"{', '.join(c['NodeManagerAddress'] for c in client_table)} but " + f"none of these match this node's IP {node_ip_address}. Are any of" + " these actually a different IP address for the same node?" + "You might need to provide --node-ip-address to specify the IP " + "address that the head should use when sending to this node.") return { "object_store_address": relevant_client["ObjectStoreSocketName"],