# \[loki-distributed\] Loki Microservices Deployment is not working as expected.Getting "empty ring" error from distributor

**URL:** <https://community.grafana.com/t/loki-distributed-loki-microservices-deployment-is-not-working-as-expected-getting-empty-ring-error-from-distributor/50600>\
**Category:** Grafana\
**Created:** [July 16, 2021, 6:33pm UTC](https://community.grafana.com/t/loki-distributed-loki-microservices-deployment-is-not-working-as-expected-getting-empty-ring-error-from-distributor/50600 "2021-07-16T18:33:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sasikumar032](https://avatars.discourse-cdn.com/v4/letter/s/e9a140/32.png) [@sasikumar032](https://community.grafana.com/u/sasikumar032)\
**Post date:** [July 16, 2021, 6:33pm UTC](https://community.grafana.com/t/loki-distributed-loki-microservices-deployment-is-not-working-as-expected-getting-empty-ring-error-from-distributor/50600/1 "2021-07-16T18:33:37Z")

</div>

Hi Team,

I have deployed Loki in Micro Services Mode.

All the Loki components are up and Running. But i could not forwarded the logs from **promtail** to **Loki**.

Below are my config for

distributor:  
ring:  
kvstore:  
store: inmemory

```auto
ingester:
  lifecycler:
    ring:
      kvstore:
        store: inmemory
      replication_factor: 1
  chunk_idle_period: 30m
  chunk_block_size: 262144
  chunk_encoding: snappy
  chunk_retain_period: 1m
  max_transfer_retries: 0

```

Initially, i have configured the loki-distributed gateway to promtail push link:

**[http://loki-distributed-gateway.avx.svc.cluster.local:80](http://loki-distributed-gateway.avx.svc.cluster.local/)**

Getting the below error log messages:

\*\*cal:80 msg=“final error sending batch” status=426 error="server returned HTTP status 426 Upgrade Required (426): "

127.0.0.1 - - [15/Jul/2021:12:12:07 +0000] 426 “POST /loki/api/v1/push HTTP/1.1” 0 “-” “promtail/2.2.0” “-”\*\*

And after changing it to directly connecting the distributor address like below:

**[http://loki-distributed-distributor.avx.svc.cluster.local:3100](http://loki-distributed-distributor.avx.svc.cluster.local:3100/)**

I am getting the below error messages:

**level=warn ts=2021-07-15T11:21:47.817142708Z caller=logging.go:71 traceID=5ff38756cb099188 msg=“POST /loki/api/v1/push (500) 2.535511ms Response: “empty ring\n” ws: false; Content-Length: 129429; Content-Type: application/x-protobuf; User-Agent: promtail/2.2.0; X-B3-Parentspanid: 5597fba85e06f9c2; X-B3-Sampled: 1; X-B3-Spanid: 7741e05cbc81b074; X-B3-Traceid: 79276c5f9d60a41f5597fba85e06f9c2; X-Forwarded-Client-Cert: By=spiffe://cluster.local/ns/avx/sa/loki-distributed;Hash=1a0d7951946ae7805f9ae9115e5a17096b6481fa7bfd5e0fa9f67969c8d907df;Subject=”";URI=spiffe://cluster.local/ns/avx/sa/promtail; X-Forwarded-Proto: http; X-Request-Id: 579ef2ac-ea21-9f88-923f-7e63f4d64dd7; "**

Your input will be much appreciated.

---

<div class="post-metadata">

**Author:** ![flypolarbear](https://avatars.discourse-cdn.com/v4/letter/f/f05b48/32.png) [@flypolarbear](https://community.grafana.com/u/flypolarbear)\
**Post date:** [April 2, 2022, 6:02am UTC](https://community.grafana.com/t/loki-distributed-loki-microservices-deployment-is-not-working-as-expected-getting-empty-ring-error-from-distributor/50600/2 "2022-04-02T06:02:40Z")

</div>

I have the same problem, is there any solution?

---

<div class="post-metadata">

**Author:** ![mnakhtar](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@mnakhtar](https://community.grafana.com/u/mnakhtar)\
**Post date:** [April 11, 2022, 2:00pm UTC](https://community.grafana.com/t/loki-distributed-loki-microservices-deployment-is-not-working-as-expected-getting-empty-ring-error-from-distributor/50600/3 "2022-04-11T14:00:09Z")

</div>

Hi @sasikumar032 ,  
Are you able to resolve the empty ring error?  
I’m also facing the same issue.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/grafana/original/2X/e/ef5308cc58c9e5a13187b5012eb99f406928462f.png) [@system](https://community.grafana.com/u/system)\
**Post date:** [July 16, 2022, 6:34pm UTC](https://community.grafana.com/t/loki-distributed-loki-microservices-deployment-is-not-working-as-expected-getting-empty-ring-error-from-distributor/50600/4 "2022-07-16T18:34:04Z")

</div>

This topic was automatically closed after 365 days. New replies are no longer allowed.
