MasterNotDiscoveredException exception when running create queries in CrateDB

Hi Team,

I am getting exception when creating an user/table in CrateDB.

I was able to run the select quries.

Exception : MasterNotDiscoveredException[org.elasticsearch.cluster.block.ClusterBlockException: blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized];]

What could be the reason, why it is blocking the create operation?

I have attached the yaml file please refer that as well.

apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: crate-poc
  namespace: crate
spec:
  serviceName: "crate-set"
  replicas: 2
  selector:
    matchLabels:
      app: crate
  template:
    metadata:
      labels:
        app: crate
    spec:
      initContainers:
        - name: init-sysctl
          image: busybox
          imagePullPolicy: IfNotPresent
          command: ["sysctl", "-w", "vm.max_map_count=262144"]
          securityContext:
            privileged: true
      containers:
        - name: crate
          image: crate:5.8.1
          command:
            - /docker-entrypoint.sh
            - -Ccluster.name=${CLUSTER_NAME}
            - -Cgateway.recover_after_nodes=2
            - -Cgateway.expected_nodes=${EXPECTED_NODES}
            - -Cpath.data=/data
          volumeMounts:
            - mountPath: /data
              name: data
          resources:
            limits:
              cpu: "4"
              memory: "4Gi"
            requests:
              cpu: "2"
              memory: "4Gi"
          ports:
            - containerPort: 4300
              name: crate-internal
            - containerPort: 4200
              name: crate-web
            - containerPort: 5432
              name: postgres
          env:
            - name: CRATE_HEAP_SIZE
              value: "1024m"
            - name: EXPECTED_NODES
              value: "2"
            - name: CLUSTER_NAME
              value: "crate-poc"
            - name: NAMESPACE
              valueFrom:
                fieldRef:
                  fieldPath: metadata.namespace
  volumeClaimTemplates:
    - metadata:
        name: data
      spec:
        accessModes: ["ReadWriteOnce"]
        resources:
          requests:
            storage: 30Gi

Thanks,
Prudhvi Boyina

Hi,
In this case I would look at the logs from both pods for further details, maybe you want to share those?