Hi,
I try to setup a grafana loki cluster and set the ring store type as “memberlist”, but loki failed to start(error message: Failed to get final advertise address: no private IP address found, and explicit IP not provided), my network interface name is enth100, if I rename the network interface name to eth0, loki can start up. It is not easy to change network interface name in our prod env, so is there any ways to resolved the issue?
Check this issue: (Loki SSD fails if interface is not eth0 or en0 · Issue #4948 · grafana/loki · GitHub)
The following settings below may help you in this context.
# Name of network interface to read addresses from.
# CLI flag: -<prefix>.instance-interface-names
[instance_interface_names: <list of string> | default = [eth0 en0]]
# IP address to advertise in the ring.
# CLI flag: -<prefix>.instance-addr
[instance_addr: <list of string> | default = first from instance_interface_names]
Example of config (loki version 2.4.1):
common:
replication_factor: 1
path_prefix: /var/lib/loki
ring:
kvstore:
store: memberlist
instance_interface_names:
- enth100
Hi Marcusteixeira,
Thanks for your reply. I try your advice, but no luck, still failed to start with the same error, any other advice? Here is the more detail error message:
level=error ts=xxxxx caller=loki.go:330 msg="module failed" module=memberlist-kv error="invalid service state: Failed, expected: Running, failure services &{0xc0005f8e60 {true 10000000000 4 30000000000 2000000000 3000000000 0 true 7946 [localhost:7946] 10000000000 60000000000 10 true 0 30000000000 50000000000 0 {[] 7946 50000000000 50000000000 false 0xc000124a00 false {false}} 0xc000124a00 [{ringDesc 0x18fb440}]} 0xc0003483c0 0xc0005157a0 {{} [0 1 0]} <nil> <nil> {0 0} map[] map[ringDesc:{ringDesc 0xc18fb440}] {0 0} map[] map[] {0 0} [] 0 [] 0 0 0xc0000609c0 0xc0000f5800 0xc0000f58c0 0xc0000f5980 0xc0000f5bc0 0xc0000f5a40 0xc0000f5c80 0xc0000f5b00 0xc000566540 0xc00056660 0xc0000f5e00 0xc0000f5c0 0xc00009eb40 0xc0000f5f80 0xc000102678 0xc000515ea0 ...} failed: failed to create memberlist: Failed to get final adverties address: no private IP address found, and explicit IP not provided"
And here is the loki config:
auth_enabled: false
server:
http_listen_port: 3100
grpc_listen_port: 9096
memberlist:
join_members:
- localhost:7946
common:
path_prefix: /tmp/loki
storage:
filesystem:
chunks_directory: /tmp/loki/chunks
rules_directory: /tmp/loki/rules
replication_factor: 1
ring:
instance_interface_names:
- enth100
kvstore:
store: memberlist
schema_config:
configs:
- from: 2020-10-24
store: boltdb-shipper
object_store: filesystem
schema: v11
index:
prefix: index_
period: 24h
ruler:
alertmanager_url: http://localhost:9093
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.