# Required redis version

**URL:** <https://discuss.ray.io/t/required-redis-version/5638>\
**Category:** Ray Core\
**Created:** [April 1, 2022, 3:33am UTC](https://discuss.ray.io/t/required-redis-version/5638 "2022-04-01T03:33:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![david.waterworth](https://avatars.discourse-cdn.com/v4/letter/d/e68b1a/32.png) [@david.waterworth](https://discuss.ray.io/u/david.waterworth)\
**Post date:** [April 1, 2022, 3:33am UTC](https://discuss.ray.io/t/required-redis-version/5638/1 "2022-04-01T03:33:37Z")

</div>

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

- High: It blocks me to complete my task.

I’m having trouble starting ray because I already have a redis instance (version 5.0.7) running on my development workstation.

When I run `ray start --head` it fails with the error

> Unable to connect to GCS at 192.168.2.14:6379. Check that (1) Ray GCS with matching version started successfully at the specified address, and (2) there is no firewall setting preventing access.

I’ve tried using passing the address of redis using --address but that also fails - it says the primary server is unreachable and a new one will be started. But then I get the same error as above.

If I shutdown my redis server, then run `ray start --head` it works (but then my application based on redis queue (rq) fails).

So I’m assuming `ray` depends on a different version of redis to `rq` but I cannot find what version ray requires. Can someone please point me in the correct direction so I can see if I can find a version that’s mutually compatible.

---

<div class="post-metadata">

**Author:** ![Mingwei](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/mingwei/32/997_2.png) [@Mingwei](https://discuss.ray.io/u/Mingwei)\
**Post date:** [April 1, 2022, 4:36am UTC](https://discuss.ray.io/t/required-redis-version/5638/2 "2022-04-01T04:36:03Z")

</div>

Hi @david.waterworth, you can try starting Ray on a port different from Redis’, e.g. `ray start --head --port=6888`, and connect to that address instead e.g. `ray start --address=192.168.2.14:6888`.

Most likely Ray’s global control store failed to start because for legacy reasons it also wants to start on port 6379. We will try to improve the error message here.

---

<div class="post-metadata">

**Author:** ![david.waterworth](https://avatars.discourse-cdn.com/v4/letter/d/e68b1a/32.png) [@david.waterworth](https://discuss.ray.io/u/david.waterworth)\
**Post date:** [April 1, 2022, 5:56am UTC](https://discuss.ray.io/t/required-redis-version/5638/3 "2022-04-01T05:56:20Z")

</div>

Ahh yes that works thanks! So it’s not trying to connect to redis, but redis is already using port 6379?

---

<div class="post-metadata">

**Author:** ![Mingwei](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/mingwei/32/997_2.png) [@Mingwei](https://discuss.ray.io/u/Mingwei)\
**Post date:** [April 1, 2022, 2:04pm UTC](https://discuss.ray.io/t/required-redis-version/5638/4 "2022-04-01T14:04:28Z")

</div>

Great! Exactly, Ray trying to connect ot port 6379 is because Ray tries to start its global control store process on port 6379 by default. In this case, the global control store was not started successfully because port 6379 is already used.
