ray-project / ray

Ray is an AI compute engine. Ray consists of a core distributed runtime and a set of AI Libraries for accelerating ML workloads.
https://ray.io
Apache License 2.0
34.04k stars 5.78k forks source link

[Windows][Installation] Install of Ray using Windows subsystem for Linux (WSL) fails to start the Ray dashboard #32693

Closed ChristosPeridis closed 11 months ago

ChristosPeridis commented 1 year ago

Hello dear members of the Ray team.

I am a ML engineer with specialty in DRL. I am using Ray for accelerating my workflows and running multiple experiments by leveraging the Tune and Rllib Ray APIs. I have used Ray in Linux and Windows. For the development phase I usually run my code in my personal Windows machines for testing. Lately I have been using WSL for running my code on Windows11 since I needed Fork method for process initialization in my programme, which is not natively supported by Windows. I wanted also to run Ray through WSL. However when I tried I faced the following error:

image

Is there an easy way to overcome this issue, so I am able to run Ray using WSL? It is very important because certain ML libraries, such as TensorFlow, will stop offering their lates versions for native Windows, and the latest versions will only work through WSL.

image

WSL seems to be the future for ML application development on Windows, and Ray being able to support it by default will significantly increase the frameworks reputation.

I am always at your disposal for any further information or queries you might have for my set up of Ray or the error message.

Thank you very much for your valuable help!!!

Kind regards,

Christos Peridis

sbarman25 commented 1 year ago

Hi Christos,

See if the dashboard server is running at: localhost:8265

I too get the 'failed to start dashboard error' but when I go to localhosst:8265, it works fine. The logs also show that the dashboard server is running. Yet to figure why it spits out that error message.

image

image

System Specs: Ubuntu 22.04 LTS Windows 10 WSL2

scottsun94 commented 1 year ago

cc: @rkooo567

rkooo567 commented 1 year ago

What's your ray version? Can you try using Ray 2.3 and show me what's the error message?

ChristosPeridis commented 1 year ago

Thank you very much everyone for your replies!

I do apologise for my delayed reply, unfortunately I was very busy this period with other running projects I did not manage to find time for further investigating to this issue. I had been using Ray version 2.2.0 when I first experimented with running Ray through WSL2. I will test it with Ray version 2.3.1 as well and I will report back to you as soon as possible.

Thank you all very much again for your valuable help and support!!!

anyscalesam commented 1 year ago

@ChristosPeridis we are now at ray28; hav eyou had a chance to attempt repro.