Remote ray.init(address:port) throwing errors

I’m running a ray cluster in the cloud and the cluster is coming up fine with the heads and workers. When I initialize ray on the head, the function and clustering works as expected. However, when I try access the cluster from the python code on a local server with ray.init(remote_address:port) - with remote _address being the cloud Ray head, I get the error below-

Can't find a node_ip_address.jsonfile from /tmp/ray/session_date_timestamp. Have you started Ray instance usingray startorray.init?

The file is indeed missing from the local /tmp/ray, but is present in the remote head. I’m using ray2.33.0. Is there a way to fix this?

Can you try initing a local cluster first?

How do you mean? Does the local host need to be a part of the cluster? I’m running the Ray.init command in a python code which is executing on the remote cluster.

what command are you running to create the cluster?

I was running ray.init(<ip>:port). But when I later moved to Ray client ray.init(ray://<ip>:port), the error disappeared.