Graylog keeps sending warning about missing leader node

1. Describe your incident:

Hi,
i defined my single graylog server as leader node via docker-compose.yml but i´ve still got this system message coming up constantly:

NO_LEADER: There was no leader Graylog server node detected in the cluster

Looking into the docker containers graylog.conf the config shows that the value is_leader = true is set correctly.

2. Describe your environment:

services:
  mongo:
    image: mongo:5
    restart: unless-stopped
    networks:
      - graylog
    volumes:
      - ${PWD}/volumes/mongo_data:/data/db
    logging:
      options:
        max-size: 500m
  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2
    restart: unless-stopped
    volumes:
      - ${PWD}/volumes/es_data:/usr/share/elasticsearch/data
    environment:
      - http.host=0.0.0.0
      - transport.host=localhost
      - network.host=0.0.0.0
      - "ES_JAVA_OPTS=-Xms1024m -Xmx1024m"
      - action.auto_create_index=false
    ulimits:
      memlock:
        soft: -1
        hard: -1
    networks:
      - graylog
    logging:
      options:
        max-size: 500m
  graylog:
    image: graylog/graylog:6.1.8
    restart: unless-stopped
    volumes:
      - ${PWD}/volumes/graylog_journal:/usr/share/graylog/data/journal
      - ${PWD}/volumes/graylog-config:/usr/share/graylog/data/config
      - ${PWD}/volumes/graylog-contentpacks:/usr/share/graylog/data/contentpacks
      - ${PWD}/volumes/graylog_data:/usr/share/graylog/data/data
      - ${PWD}/cacerts:/opt/java/openjdk/lib/security/cacerts
    environment:
      - GRAYLOG_IS_LEADER=true
      - GRAYLOG_PASSWORD_SECRET=REDACTED
      - GRAYLOG_ROOT_PASSWORD_SHA2=REDACTED
      - GRAYLOG_HTTP_EXTERNAL_URI=http://example.com:9000/
      - NOMAD_ALLOC_INDEX=0
    networks:
      graylog:
        ipv4_address: 172.19.0.4
    depends_on:
      - mongo
      - elasticsearch
    ports:
      - 443:9000
      - 9000:9000
      - 1514:1514
      - 1515:1515/udp
      - 1514:1514/udp
      - 12201:12201
      - 12201:12201/udp
      - 5044:5044
    logging:
      options:
        max-size: 500m
networks:
  graylog:
    driver: bridge
    ipam:
      driver: default
      config:
        - subnet: 172.19.0.0/24

Boolean values need to be enclosed in quotes:
GRAYLOG_IS_LEADER="true"

Still the same problem, nothing changed.

Did you see this:

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