grafana / helm-charts

Apache License 2.0
1.67k stars 2.29k forks source link

Loki gateway nginx Address family not supported by protokoll #2779

Open Jan-Zimmermann opened 1 year ago

Jan-Zimmermann commented 1 year ago

Hi,

i try to install Loki on our on-premise k8s cluster.

All pods are running only Loki-gateway does not start up. The logs show the following:

/docker-entrypoint.sh: No files found in /docker-entrypoint.d/, skipping configuration 2023/11/10 15:30:16 [emerg] 1#1: socket() [::]:8080 failed (97: Address family not supported by protocol) nginx: [emerg] socket() [::]:8080 failed (97: Address family not supported by protocol)

my config file is pretty simply i think:

  storage:
    type: 's3'
    s3:
      endpoint: http://minio.minio.svc.cluster.local:9000
      secretAccessKey: ******
      accessKeyId: log
      s3ForcePathStyle: true
      insecure: true
  storage_config:
    boltdb_shipper:
      active_index_directory: /var/loki/index
      cache_location: /var/loki/index_cache
      resync_interval: 5s
      shared_store: s3

I think the Gateway try to listen on ipv6. This is not supported in our cluster.

Can i disable Ipv6 by config? any help is welcome :)

jlec commented 11 months ago

Can we get the ipv6 support optional?

rajivreddy commented 5 days ago

@jlec Did you tried this option by setting it to false

  nginxConfig:
    # -- Which schema to be used when building URLs. Can be 'http' or 'https'.
    schema: http
    # -- Enable listener for IPv6, disable on IPv4-only systems
    enableIPv6: true