# Mid-way through a job, ray.util.queue.Queue.get() reports "Ray has not been started yet"

**URL:** <https://discuss.ray.io/t/mid-way-through-a-job-ray-util-queue-queue-get-reports-ray-has-not-been-started-yet/2911>\
**Category:** Uncategorized\
**Created:** [July 16, 2021, 5:18pm UTC](https://discuss.ray.io/t/mid-way-through-a-job-ray-util-queue-queue-get-reports-ray-has-not-been-started-yet/2911 "2021-07-16T17:18:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![djakubiec](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/djakubiec/32/1151_2.png) [@djakubiec](https://discuss.ray.io/u/djakubiec)\
**Post date:** [July 16, 2021, 5:18pm UTC](https://discuss.ray.io/t/mid-way-through-a-job-ray-util-queue-queue-get-reports-ray-has-not-been-started-yet/2911/1 "2021-07-16T17:18:05Z")

</div>

I am getting this unexpected error mid-way through the my Ray job.

I start a job with 5097 tasks and do many successful Queue.get() calls. About 15% of the way through the job, Queue.get() all of a sudden complains that Ray has not been started yet.

Any suggestions on how to debug?

```auto
Traceback (most recent call last):
  File "/home/djakubiec/var/jupyter/marketNeutralEquityStrategy/test.build/mnesRanking.py", line 1765, in <module>
    rayClient.processJob(parameters.priority, [(parametersReference, tickerRegion) for tickerRegion in tickerRegions], carryForwardRequestHandler, carryForwardCompletionHandler)
  File "/ceph/var/ray/tools/python.modules/focusvq/raytools/RayClient.py", line 77, in processJob
    threadsAvailable = threadQueue.get()
  File "/ceph/var/users/djakubiec/anaconda3/envs/ray2/lib/python3.7/site-packages/ray/util/queue.py", line 155, in get
    return ray.get(self.actor.get.remote(timeout))
  File "/ceph/var/users/djakubiec/anaconda3/envs/ray2/lib/python3.7/site-packages/ray/_private/client_mode_hook.py", line 62, in wrapper
    return func(*args, **kwargs)
  File "/ceph/var/users/djakubiec/anaconda3/envs/ray2/lib/python3.7/site-packages/ray/worker.py", line 1471, in get
    worker.check_connected()
  File "/ceph/var/users/djakubiec/anaconda3/envs/ray2/lib/python3.7/site-packages/ray/worker.py", line 218, in check_connected
    raise RaySystemError("Ray has not been started yet. You can "
ray.exceptions.RaySystemError: System error: Ray has not been started yet. You can start Ray with 'ray.init()'.

```

---

<div class="post-metadata">

**Author:** ![rliaw](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/rliaw/32/24_2.png) [@rliaw](https://discuss.ray.io/u/rliaw)\
**Post date:** [July 16, 2021, 5:20pm UTC](https://discuss.ray.io/t/mid-way-through-a-job-ray-util-queue-queue-get-reports-ray-has-not-been-started-yet/2911/2 "2021-07-16T17:20:43Z")

</div>

Do you mind posting a zip of `/tmp/ray/session_latest/logs`?

This seems like a client error @ijrsvt

---

<div class="post-metadata">

**Author:** ![djakubiec](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/djakubiec/32/1151_2.png) [@djakubiec](https://discuss.ray.io/u/djakubiec)\
**Post date:** [July 16, 2021, 5:44pm UTC](https://discuss.ray.io/t/mid-way-through-a-job-ray-util-queue-queue-get-reports-ray-has-not-been-started-yet/2911/3 "2021-07-16T17:44:33Z")

</div>

Sure.

Sorry for the n00b question: but how to post the zip here? When I try to copy it here I get:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/ray/original/2X/d/d286bfd7e919d53945b94c46bd35923871240c26.png)

---

<div class="post-metadata">

**Author:** ![rliaw](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/rliaw/32/24_2.png) [@rliaw](https://discuss.ray.io/u/rliaw)\
**Post date:** [July 16, 2021, 6:31pm UTC](https://discuss.ray.io/t/mid-way-through-a-job-ray-util-queue-queue-get-reports-ray-has-not-been-started-yet/2911/4 "2021-07-16T18:31:39Z")

</div>

Hmm, maybe you could post a google drive zip? Or you could also create a github issue!

---

<div class="post-metadata">

**Author:** ![djakubiec](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/djakubiec/32/1151_2.png) [@djakubiec](https://discuss.ray.io/u/djakubiec)\
**Post date:** [July 16, 2021, 6:45pm UTC](https://discuss.ray.io/t/mid-way-through-a-job-ray-util-queue-queue-get-reports-ray-has-not-been-started-yet/2911/5 "2021-07-16T18:45:34Z")

</div>

Thank @rliaw, I opened up a GitHub issue.
