Problem ith my Dgraph deployment on a MicroK8s cluster

I am facing an issue with my Dgraph deployment on a MicroK8s cluster. Below are the key points:

Connection with Dgraph Zero

The pod e360-dgraph-alpha-0 successfully connects to the pod e360-dgraph-zero-0, as shown in the logs:

I0327 15:59:22.701272    19 pool.go:164] CONN: Connecting to e360-dgraph-zero-0.e360-dgraph-zero-headless.default.svc.cluster.local:5080  
I0327 15:59:22.744414    19 groups.go:135] Connected to group zero. Assigned group: 0  

This indicates that there are no connectivity issues between Dgraph Alpha and Dgraph Zero.

Error subscribing to GraphQL schema updates

However, the following error repeatedly appears in the Dgraph Alpha logs:

E0327 15:59:22.602032    19 groups.go:1223] Error during SubscribeForUpdates for prefix "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x15dgraph.graphql.schema\x00": Unable to find any servers for group: 1. closer err: <nil>  

This indicates that Dgraph Alpha cannot find servers for group 1, which is likely related to issues in the GraphQL schema configuration.

Raft Initialization

The Dgraph Alpha node initializes correctly as part of group 1, as shown in the logs:

I0327 15:59:23.014841    19 draft.go:2168] Restarting node for group: 1  
I0327 15:59:23.015839    19 groups.go:157] Init and start Raft node: OK  

This confirms that the Raft consensus system is functioning.

Schema loading from the database

The schema and types are loaded from the database, but they do not contain any data:

I0327 15:59:22.749099    19 log.go:34] LoadFromDb Schema Streaming about 0 B of uncompressed data (0 B on disk)  
I0327 15:59:22.770047    19 log.go:34] LoadFromDb Type Streaming about 0 B of uncompressed data (0 B on disk)  

Might be a corruption issue… Have a look at this thread: Received err: file does not exist for table 267629. Cleaning up

If no joy there, search this forum for “Error during SubscribeForUpdates” and you’ll see how others have overcome this issue