question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ray.init() is hanging

See original GitHub issue

What is the problem?

ray.init() is hanging. After logging 2021-02-04 10:22:05,793 INFO services.py:1193 -- View the Ray dashboard at http://127.0.0.1:8265, ray.init() never returns.

I’m running on CentOS Linux release 7.6.1810 (Core) with Python 3.8.5

Thank you!

Reproduction (REQUIRED)

import ray
ray.init()
  • I have verified my script runs in a clean environment and reproduces the issue.
  • I have verified the issue also occurs with the latest wheels.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
haderbacheamircommented, Sep 24, 2021

I had the same issue on centOS 7 machine, I could solve my problem by introducing the num_cpus parameter as : ray.init(num_cpus=1) before using ray.tune() function.

0reactions
stale[bot]commented, Feb 8, 2022

Hi again! The issue will be closed because there has been no more activity in the 14 days since the last message.

Please feel free to reopen or open a new issue if you’d still like it to be addressed.

Again, you can always ask for help on our discussion forum or Ray’s public slack channel.

Thanks again for opening the issue!

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Core] Ray.init() hanging
Hello, I have a training script that runs well locally on my machine, but not always when I deploy it on an online...
Read more >
Is there a way to prevent ray.init() from hanging when using ...
init() from running on the M1 Max under some circumstances. So to summarize: to overcome a hang involving ray.init() on Apple Silicon (M1...
Read more >
[Ray Tune] Ray crashes and system hangs - Google Groups
If you don't need a lot of object store memory, run ray.init(object_store_memory=int(1e9)) to limit to, e.g., 1GB. 2. Check the average RSS usage...
Read more >
Starting Ray - | notebook.community
#ray.init(num_cpus=20,num_gpus=2). By default, Ray will use psutil.cpu_count() to determine the number of CPUs, and by default the number of GPUs will be ...
Read more >
Getting started with Ray in Python! - Deepnote
Once we import ray we need to initialize it with ray.init() . Note that this only needs to be run once in the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found