Error while creating badger KV posting store

Query and insert using dgo today as usual.
Can Dgraph be restored on its original basis.

NAME                           READY   STATUS             RESTARTS   AGE
dgraph-alpha-0                 0/1     CrashLoopBackOff   7          15m
dgraph-ratel-7548d757d-8n44q   1/1     Running            0          15m
dgraph-zero-0                  1/1     Running            0          14m
dgraph-zero-1                  1/1     Running            0          13m
dgraph-zero-2                  1/1     Running            0          13m
[root@dgraph-33 ~]# kubectl logs -f  dgraph-alpha-0
++ hostname -f
+ dgraph alpha --my=dgraph-alpha-0.dgraph-alpha.dgraph-ns.svc.cluster.local:7080 --zero dgraph-zero-0.dgraph-zero.dgraph-ns:5080,dgraph-zero-1.dgraph-zero.dgraph-ns:5080,dgraph-zero-2.dgraph-zero.dgraph-ns:5080 --security whitelist=172.16.0.0/16 --cache size_mb=4096 --telemetry sentry=false
I0428 03:36:33.642597       1 init.go:110]

Dgraph version   : v21.03.0
Dgraph codename  : rocket
Dgraph SHA-256   : b4e4c77011e2938e9da197395dbce91d0c6ebb83d383b190f5b70201836a773f
Commit SHA-1     : a77bbe8ae
Commit timestamp : 2021-04-07 21:36:38 +0530
Branch           : HEAD
Go version       : go1.16.2
jemalloc enabled : true

For Dgraph official documentation, visit https://dgraph.io/docs.
For discussions about Dgraph     , visit https://discuss.dgraph.io.
For fully-managed Dgraph Cloud   , visit https://dgraph.io/cloud.

Licensed variously under the Apache Public License 2.0 and Dgraph Community License.
Copyright 2015-2021 Dgraph Labs, Inc.


I0428 03:36:33.643294       1 run.go:756] x.Config: {PortOffset:0 Limit:query-edge=1000000; mutations-nquad=1000000; query-timeout=0ms; max-pending-queries=10000; max-retries=-1; mutations=allow; normalize-node=10000; disallow-drop=false; txn-abort-after=5m LimitMutationsNquad:1000000 LimitQueryEdge:1000000 BlockClusterWideDrop:false LimitNormalizeNode:10000 QueryTimeout:0s MaxRetries:-1 GraphQL:introspection=true; debug=false; extensions=true; poll-interval=1s; lambda-url= GraphQLDebug:false}
I0428 03:36:33.643379       1 run.go:757] x.WorkerConfig: {TmpDir:t ExportPath:export Trace:ratio=0.01; jaeger=; datadog= MyAddr:dgraph-alpha-0.dgraph-alpha.dgraph-ns.svc.cluster.local:7080 ZeroAddr:[dgraph-zero-0.dgraph-zero.dgraph-ns:5080 dgraph-zero-1.dgraph-zero.dgraph-ns:5080 dgraph-zero-2.dgraph-zero.dgraph-ns:5080] TLSClientConfig:<nil> TLSServerConfig:<nil> Raft:idx=; group=; learner=false; snapshot-after-entries=10000; snapshot-after-duration=30m; pending-proposals=256 Badger:{Dir: ValueDir: SyncWrites:false NumVersionsToKeep:1 ReadOnly:false Logger:0xc000091460 Compression:1 InMemory:false MetricsEnabled:true NumGoroutines:8 MemTableSize:67108864 BaseTableSize:2097152 BaseLevelSize:10485760 LevelSizeMultiplier:10 TableSizeMultiplier:2 MaxLevels:7 VLogPercentile:0 ValueThreshold:1048576 NumMemtables:5 BlockSize:4096 BloomFalsePositive:0.01 BlockCacheSize:2791728742 IndexCacheSize:1503238553 NumLevelZeroTables:5 NumLevelZeroTablesStall:15 ValueLogFileSize:1073741823 ValueLogMaxEntries:1000000 NumCompactors:4 CompactL0OnClose:false LmaxCompaction:false ZSTDCompressionLevel:0 VerifyValueChecksum:false EncryptionKey:[] EncryptionKeyRotationDuration:240h0m0s BypassLockGuard:false ChecksumVerificationMode:0 DetectConflicts:true NamespaceOffset:-1 managedTxns:false maxBatchCount:0 maxBatchSize:0 maxValueThreshold:0} WhiteListedIPRanges:[{Lower:172.16.0.0 Upper:172.16.255.255}] StrictMutations:false AclEnabled:false HmacSecret:**** AbortOlderThan:5m0s ProposedGroupId:0 StartTime:2022-04-28 03:36:33.249060377 +0000 UTC m=+0.234855203 Ludicrous:enabled=false; concurrency=2000 LudicrousEnabled:false Security:whitelist=172.16.0.0/16; token= EncryptionKey:**** LogRequest:0 HardSync:false Audit:false}
I0428 03:36:33.643524       1 run.go:758] worker.Config: {PostingDir:p WALDir:w MutationsMode:0 AuthToken: HmacSecret:**** AccessJwtTtl:0s RefreshJwtTtl:0s CachePercentage:0,65,35 CacheMb:4096 Audit:<nil> ChangeDataConf:file=; kafka=; sasl_user=; sasl_password=; ca_cert=; client_cert=; client_key=;}
I0428 03:36:33.644300       1 log.go:295] Found file: 214 First Index: 6158018
I0428 03:36:33.644396       1 storage.go:125] Init Raft Storage with snap: 6168125, first: 6168126, last: 6177869
I0428 03:36:33.644420       1 server_state.go:141] Opening postings BadgerDB with options: {Dir:p ValueDir:p SyncWrites:false NumVersionsToKeep:2147483647 ReadOnly:false Logger:0x32c8038 Compression:1 InMemory:false MetricsEnabled:true NumGoroutines:8 MemTableSize:67108864 BaseTableSize:2097152 BaseLevelSize:10485760 LevelSizeMultiplier:10 TableSizeMultiplier:2 MaxLevels:7 VLogPercentile:0 ValueThreshold:1048576 NumMemtables:5 BlockSize:4096 BloomFalsePositive:0.01 BlockCacheSize:2791728742 IndexCacheSize:1503238553 NumLevelZeroTables:5 NumLevelZeroTablesStall:15 ValueLogFileSize:1073741823 ValueLogMaxEntries:1000000 NumCompactors:4 CompactL0OnClose:false LmaxCompaction:false ZSTDCompressionLevel:0 VerifyValueChecksum:false EncryptionKey:[] EncryptionKeyRotationDuration:240h0m0s BypassLockGuard:false ChecksumVerificationMode:0 DetectConflicts:false NamespaceOffset:1 managedTxns:false maxBatchCount:0 maxBatchSize:0 maxValueThreshold:0}
I0428 03:36:34.297675       1 log.go:34] All 1040 tables opened in 530ms
E0428 03:36:34.339814       1 log.go:32] Received err: Level validation err: Levels Controller err: Intra:
00000000  04 00 00 00 00 00 00 00  00 00 0b 64 67 72 61 70  |...........dgrap|
00000010  68 2e 74 79 70 65 02 02  59 61 72 61 4d 61 74 63  |h.type..YaraMatc|
00000020  68 53 74 72 69 6e 67 00  00 00 00 01 bb 7a 6b ff  |hString......zk.|
00000030  ff ff ff ff a4 63 44                              |.....cD|

 vs
00000000  04 00 00 00 00 00 00 00  00 00 0b 64 67 72 61 70  |...........dgrap|
00000010  68 2e 74 79 70 65 02 02  59 61 72 61 4d 61 74 63  |h.type..YaraMatc|
00000020  68 53 74 72 69 6e 67 00  00 00 00 01 a7 74 ee ff  |hString......t..|
00000030  ff ff ff ff a4 6d 36                              |.....m6|

: level=3 j=263 numTables=265
github.com/dgraph-io/badger/v3.(*levelHandler).validate
        /go/pkg/mod/github.com/dgraph-io/badger/v3@v3.0.0-20210405181011-d918b9904b2a/util.go:63
github.com/dgraph-io/badger/v3.(*levelsController).validate
        /go/pkg/mod/github.com/dgraph-io/badger/v3@v3.0.0-20210405181011-d918b9904b2a/util.go:33
github.com/dgraph-io/badger/v3.newLevelsController
        /go/pkg/mod/github.com/dgraph-io/badger/v3@v3.0.0-20210405181011-d918b9904b2a/levels.go:179
github.com/dgraph-io/badger/v3.Open
        /go/pkg/mod/github.com/dgraph-io/badger/v3@v3.0.0-20210405181011-d918b9904b2a/db.go:349
github.com/dgraph-io/badger/v3.OpenManaged
        /go/pkg/mod/github.com/dgraph-io/badger/v3@v3.0.0-20210405181011-d918b9904b2a/managed_db.go:26
github.com/dgraph-io/dgraph/worker.(*ServerState).initStorage
        /ext-go/1/src/github.com/dgraph-io/dgraph/worker/server_state.go:144
github.com/dgraph-io/dgraph/worker.InitServerState
        /ext-go/1/src/github.com/dgraph-io/dgraph/worker/server_state.go:80
github.com/dgraph-io/dgraph/dgraph/cmd/alpha.run
        /ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/alpha/run.go:760
github.com/dgraph-io/dgraph/dgraph/cmd/alpha.init.2.func1
        /ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/alpha/run.go:93
github.com/spf13/cobra.(*Command).execute
        /go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:830
github.com/spf13/cobra.(*Command).ExecuteC
        /go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:914
github.com/spf13/cobra.(*Command).Execute
        /go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:864
github.com/dgraph-io/dgraph/dgraph/cmd.Execute
        /ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/root.go:78
main.main
        /ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/main.go:99
runtime.main
        /usr/local/go/src/runtime/proc.go:225
runtime.goexit
        /usr/local/go/src/runtime/asm_amd64.s:1371. Cleaning up...
2022/04/28 03:36:34 Level validation err: Levels Controller err: Intra:
00000000  04 00 00 00 00 00 00 00  00 00 0b 64 67 72 61 70  |...........dgrap|
00000010  68 2e 74 79 70 65 02 02  59 61 72 61 4d 61 74 63  |h.type..YaraMatc|
00000020  68 53 74 72 69 6e 67 00  00 00 00 01 bb 7a 6b ff  |hString......zk.|
00000030  ff ff ff ff a4 63 44                              |.....cD|

 vs
00000000  04 00 00 00 00 00 00 00  00 00 0b 64 67 72 61 70  |...........dgrap|
00000010  68 2e 74 79 70 65 02 02  59 61 72 61 4d 61 74 63  |h.type..YaraMatc|
00000020  68 53 74 72 69 6e 67 00  00 00 00 01 a7 74 ee ff  |hString......t..|
00000030  ff ff ff ff a4 6d 36                              |.....m6|

: level=3 j=263 numTables=265
github.com/dgraph-io/badger/v3.(*levelHandler).validate
        /go/pkg/mod/github.com/dgraph-io/badger/v3@v3.0.0-20210405181011-d918b9904b2a/util.go:63
github.com/dgraph-io/badger/v3.(*levelsController).validate
        /go/pkg/mod/github.com/dgraph-io/badger/v3@v3.0.0-20210405181011-d918b9904b2a/util.go:33
github.com/dgraph-io/badger/v3.newLevelsController
        /go/pkg/mod/github.com/dgraph-io/badger/v3@v3.0.0-20210405181011-d918b9904b2a/levels.go:179
github.com/dgraph-io/badger/v3.Open
        /go/pkg/mod/github.com/dgraph-io/badger/v3@v3.0.0-20210405181011-d918b9904b2a/db.go:349
github.com/dgraph-io/badger/v3.OpenManaged
        /go/pkg/mod/github.com/dgraph-io/badger/v3@v3.0.0-20210405181011-d918b9904b2a/managed_db.go:26
github.com/dgraph-io/dgraph/worker.(*ServerState).initStorage
        /ext-go/1/src/github.com/dgraph-io/dgraph/worker/server_state.go:144
github.com/dgraph-io/dgraph/worker.InitServerState
        /ext-go/1/src/github.com/dgraph-io/dgraph/worker/server_state.go:80
github.com/dgraph-io/dgraph/dgraph/cmd/alpha.run
        /ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/alpha/run.go:760
github.com/dgraph-io/dgraph/dgraph/cmd/alpha.init.2.func1
        /ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/alpha/run.go:93
github.com/spf13/cobra.(*Command).execute
        /go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:830
github.com/spf13/cobra.(*Command).ExecuteC
        /go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:914
github.com/spf13/cobra.(*Command).Execute
        /go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:864
github.com/dgraph-io/dgraph/dgraph/cmd.Execute
        /ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/root.go:78
main.main
        /ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/main.go:99
runtime.main
        /usr/local/go/src/runtime/proc.go:225
runtime.goexit
        /usr/local/go/src/runtime/asm_amd64.s:1371
Error while creating badger KV posting store
github.com/dgraph-io/dgraph/x.Checkf
        /ext-go/1/src/github.com/dgraph-io/dgraph/x/error.go:51
github.com/dgraph-io/dgraph/worker.(*ServerState).initStorage
        /ext-go/1/src/github.com/dgraph-io/dgraph/worker/server_state.go:145
github.com/dgraph-io/dgraph/worker.InitServerState
        /ext-go/1/src/github.com/dgraph-io/dgraph/worker/server_state.go:80
github.com/dgraph-io/dgraph/dgraph/cmd/alpha.run
        /ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/alpha/run.go:760
github.com/dgraph-io/dgraph/dgraph/cmd/alpha.init.2.func1
        /ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/alpha/run.go:93
github.com/spf13/cobra.(*Command).execute
        /go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:830
github.com/spf13/cobra.(*Command).ExecuteC
        /go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:914
github.com/spf13/cobra.(*Command).Execute
        /go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:864
github.com/dgraph-io/dgraph/dgraph/cmd.Execute
        /ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/root.go:78
main.main
        /ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/main.go:99
runtime.main
        /usr/local/go/src/runtime/proc.go:225
runtime.goexit
        /usr/local/go/src/runtime/asm_amd64.s:1371