# No connection exist

**URL:** <https://discuss.dgraph.io/t/no-connection-exist/2056>\
**Category:** Users\
**Created:** [December 23, 2017, 9:01pm UTC](https://discuss.dgraph.io/t/no-connection-exist/2056 "2017-12-23T21:01:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jzhu077](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@jzhu077](https://discuss.dgraph.io/u/jzhu077)\
**Post date:** [December 23, 2017, 9:01pm UTC](https://discuss.dgraph.io/t/no-connection-exist/2056/1 "2017-12-23T21:01:19Z")

</div>

When I query in UI, it returns an error `No connection exist`

dgraph-zero:  
2017/12/23 20:57:19 oracle.go:375: No healthy connection found to leader of group 52  
2017/12/23 20:57:19 pool.go:167: Echo error from localhost:7101. Err: rpc error: code = Unavailable desc = all SubConns are in TransientFailure

It reports that it lost connection to the dgraph server with port 7101, but that dgraph server does not report any error.

last line of dgraph server (port 7101)  
2017/12/23 20:20:54 lru.go:79: LRU cache max size is being set to 50 MB

---

<div class="post-metadata">

**Author:** ![mrjn](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/mrjn/32/775_2.png) [@mrjn](https://discuss.dgraph.io/u/mrjn)\
**Post date:** [December 24, 2017, 1:37am UTC](https://discuss.dgraph.io/t/no-connection-exist/2056/2 "2017-12-24T01:37:26Z")

</div>

> [@jzhu077](#):
>
> No healthy connection found to leader of group 52

Group 52? That’s a very high group number. I reckon what might have happened is that during your experimentation, you didn’t provide an `--idx` to Dgraph and deleted its w or p directories, due to which Zero assigned it a new group every time.

You should clear out all the dgraph and zero directories and start the cluster, this time providing a consistent unique index via the flag.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex007/uploads/dgraph/original/2X/2/2b38fdece2abe5814f2e51bee69d1e67fc304b0a.png) [@system](https://discuss.dgraph.io/u/system)\
**Post date:** [January 23, 2018, 1:37am UTC](https://discuss.dgraph.io/t/no-connection-exist/2056/3 "2018-01-23T01:37:38Z")

</div>

Closed on January 23, 2018, 1:37am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
