Example cpp fails to run on latest Ray

Hi,

I have built ray from the latest source and setup one node local cluster.

Then tried to run the cpp example as below:

~/.cache/bazel/_bazel_user/92340012adbbf146b0cbbc9933a8101e/execroot/com_github_ray_project_ray/cpp/example$ sh run.sh

It fails with following error:
[2024-07-25 16:48:55,582 E 61690 61690] core_worker.cc:251: Failed to register worker 01000000ffffffffffffffffffffffffffffffffffffffffffffffff to Raylet. IOError: [RayletClient] Unable to register worker with raylet. No such file or directory

I have also attached the full screen-shot of error.

Kindly help to resolve this issue.

Thanks in advance,

Manoj

How severe does this issue affect your experience of using Ray?

  • High: It blocks me to complete my task.

I don’t see the issue after following the steps in Modern Distributed C++ with Ray | Anyscale
i.e.

pip install -U ray[cpp]
mkdir ray-template && ray cpp --generate-bazel-project-template-to ray-template
cd ray-template && sh run.sh