Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: 'at least 1 live replica required, could only find 0 - unhealthy instances: 0.0.0.0:9095' in Loki #15639

Open
fauzan-nbt opened this issue Jan 8, 2025 · 0 comments

Comments

@fauzan-nbt
Copy link

fauzan-nbt commented Jan 8, 2025

Describe the issue
I'm encountering an issue where Loki instances cannot find healthy ingester replicas, and the following error is appearing in the logs:
Image

Additionally, when I try to access Loki's push endpoint, I get a 500 internal error with the message:
Image

I suspect there may be a hostname resolution or configuration issue related to the Docker Compose setup or my configuration on loki config.

Screenshots, Promtail config, or terminal output

  • Loki
    Image
    Image

  • Alloy
    Image

  • etcd
    Image

Environment:

  • Infrastructure: Docker Compose
  • Deployment tool: Docker Compose

Version

  • Alloy:
    Image

  • Loki:
    Image

This is my loki-config.yaml

server:
  http_listen_port: 3100
  grpc_listen_port: 9095

common:
  instance_addr: loki
  path_prefix: /tmp/loki
  storage:
    filesystem:
      chunks_directory: /tmp/loki/chunks
      rules_directory: /tmp/loki/rules
  replication_factor: 1
  ring:
    instance_availability_zone: zone
    kvstore:
      store: etcd
      etcd:
        endpoints: ["http://etcd:2379"]

query_range:
  results_cache:
    cache:
      embedded_cache:
        enabled: true
        max_size_mb: 100

schema_config:
  configs:
    - from: "2022-01-20"
      index:
        period: 24h
        prefix: loki_ops_index_
      object_store: filesystem
      schema: v13
      store: tsdb

ingester:
  lifecycler:
    ring:
      kvstore:
        store: etcd
        etcd:
          endpoints: ["http://etcd:2379"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant