Key not Found Error

@Naman Except it crashes when I try to start the docker, so I can’t load it and look at the logs . :slight_smile:

root# docker run --rm -it -p “8080:8080” -p “9080:9080” -v ~/dgraph:/dgraph “dgraph/standalone:master”

Warning: This standalone version is meant for quickstart purposes only.
It is NOT RECOMMENDED for production environments.
[Sentry] 2021/10/07 15:32:09 Integration installed: ContextifyFrames
[Sentry] 2021/10/07 15:32:09 Integration installed: Environment
[Sentry] 2021/10/07 15:32:09 Integration installed: Modules
[Sentry] 2021/10/07 15:32:09 Integration installed: IgnoreErrors
[Sentry] 2021/10/07 15:32:09 Integration installed: ContextifyFrames
[Sentry] 2021/10/07 15:32:09 Integration installed: Environment
[Sentry] 2021/10/07 15:32:09 Integration installed: Modules
[Sentry] 2021/10/07 15:32:09 Integration installed: IgnoreErrors
[Sentry] 2021/10/07 15:32:11 Integration installed: ContextifyFrames
[Sentry] 2021/10/07 15:32:11 Integration installed: Environment
[Sentry] 2021/10/07 15:32:11 Integration installed: Modules
[Sentry] 2021/10/07 15:32:11 Integration installed: IgnoreErrors
[Sentry] 2021/10/07 15:32:11 Integration installed: ContextifyFrames
[Sentry] 2021/10/07 15:32:11 Integration installed: Environment
[Sentry] 2021/10/07 15:32:11 Integration installed: Modules
[Sentry] 2021/10/07 15:32:11 Integration installed: IgnoreErrors
I1007 15:32:12.019871 29 sentry_integration.go:48] This instance of Dgraph will send anonymous reports of panics back to Dgraph Labs via Sentry. No confidential information is sent. These reports help improve Dgraph. To opt-out, restart your instance with the --telemetry “sentry=false;” flag. For more info, see https://dgraph.io/docs/howto/#data-handling.
I1007 15:32:12.023201 22 sentry_integration.go:48] This instance of Dgraph will send anonymous reports of panics back to Dgraph Labs via Sentry. No confidential information is sent. These reports help improve Dgraph. To opt-out, restart your instance with the --telemetry “sentry=false;” flag. For more info, see https://dgraph.io/docs/howto/#data-handling.
I1007 15:32:12.713742 29 init.go:110]

Dgraph version : v21.09.0-rc2-13-gf6e8779a3
Dgraph codename : unnamed
Dgraph SHA-256 : 42f94bcd9127fe464482d1dcd04d6aea4746340253d41ddf5ac905a43395c66b
Commit SHA-1 : f6e8779a3
Commit timestamp : 2021-09-16 16:15:27 -0700
Branch : master
Go version : go1.16.2
jemalloc enabled : true

For Dgraph official documentation, visit https://dgraph.io/docs.
For discussions about Dgraph , visit http://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.

I1007 15:32:12.727686 22 init.go:110]

Dgraph version : v21.09.0-rc2-13-gf6e8779a3
Dgraph codename : unnamed
Dgraph SHA-256 : 42f94bcd9127fe464482d1dcd04d6aea4746340253d41ddf5ac905a43395c66b
Commit SHA-1 : f6e8779a3
Commit timestamp : 2021-09-16 16:15:27 -0700
Branch : master
Go version : go1.16.2
jemalloc enabled : true

For Dgraph official documentation, visit https://dgraph.io/docs.
For discussions about Dgraph , visit http://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.

I1007 15:32:12.728623 29 run.go:254] Setting Config to: {raft:0xc000012d88 telemetry:0xc000012d58 limit:0xc000012d90 bindall:true portOffset:0 numReplicas:1 peer: w:zw rebalanceInterval:480000000000 tlsClientConfig: audit: limiterConfig:0xc000045b40}
I1007 15:32:12.728756 29 run.go:144] Setting up grpc listener at: 0.0.0.0:5080
I1007 15:32:12.728933 29 run.go:144] Setting up http listener at: 0.0.0.0:6080
I1007 15:32:12.729087 29 log.go:295] Found file: 145 First Index: 4320001
I1007 15:32:12.729174 29 storage.go:125] Init Raft Storage with snap: 4337263, first: 4337264, last: 4337613
I1007 15:32:12.729348 29 node.go:152] Setting raft.Config to: &{ID:1 peers: learners: ElectionTick:20 HeartbeatTick:1 Storage:0xc00018ef00 Applied:4337263 MaxSizePerMsg:262144 MaxCommittedSizePerReady:67108864 MaxUncommittedEntriesSize:0 MaxInflightMsgs:256 CheckQuorum:false PreVote:true ReadOnlyOption:0 Logger:0x3939e90 DisableProposalForwarding:false}
I1007 15:32:12.729966 29 node.go:310] Found Snapshot.Metadata: {ConfState:{Nodes:[1] Learners: XXX_unrecognized:} Index:4337263 Term:3 XXX_unrecognized:}
I1007 15:32:12.730301 29 node.go:321] Found hardstate: {Term:3 Vote:1 Commit:4337613 XXX_unrecognized:}
I1007 15:32:12.734163 22 run.go:901] x.Config: {PortOffset:0 Limit:max-pending-queries=64; mutations=allow; txn-abort-after=5m; mutations-nquad=1000000; disallow-drop=false; query-timeout=0ms; max-retries=-1; shared-instance=false; query-edge=1000000; normalize-node=10000 LimitMutationsNquad:1000000 LimitQueryEdge:1000000 BlockClusterWideDrop:false LimitNormalizeNode:10000 QueryTimeout:0s MaxRetries:-1 SharedInstance:false GraphQL:{Introspection:true Debug:false Extensions:true PollInterval:1s} Lambda:{Url: Num:1 Port:20000 RestartAfter:10s}}
I1007 15:32:12.734522 22 run.go:902] x.WorkerConfig: {TmpDir:t ExportPath:export Trace:ratio=0.01; jaeger=; datadog= MyAddr: ZeroAddr:[localhost:5080] TLSClientConfig: TLSServerConfig: Raft:learner=false; snapshot-after-entries=10000; snapshot-after-duration=30m; pending-proposals=256; idx=; group= Badger:{Dir: ValueDir: SyncWrites:false NumVersionsToKeep:1 ReadOnly:false Logger:0xc0001c6fd0 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:15 BlockSize:4096 BloomFalsePositive:0.01 BlockCacheSize:322122547 IndexCacheSize:214748364 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 AllowStopTheWorld:true DetectConflicts:true NamespaceOffset:-1 ExternalMagicVersion:0 managedTxns:false maxBatchCount:0 maxBatchSize:0 maxValueThreshold:0} WhiteListedIPRanges:[{Lower:0.0.0.0 Upper:255.255.255.255}] StrictMutations:false AclEnabled:false HmacSecret:**** AbortOlderThan:5m0s ProposedGroupId:0 StartTime:2021-10-07 15:32:10.725288244 +0000 UTC m=+0.679980568 Security:whitelist=0.0.0.0/0; token= EncryptionKey:**** LogRequest:0 HardSync:false Audit:false}
I1007 15:32:12.734862 22 run.go:903] worker.Config: {PostingDir:p WALDir:w MutationsMode:1 AuthToken: HmacSecret:**** AccessJwtTtl:0s RefreshJwtTtl:0s CachePercentage:50,30,20 CacheMb:1024 Audit: ChangeDataConf:file=; kafka=; sasl_user=; sasl_password=; ca_cert=; client_cert=; client_key=; sasl-mechanism=PLAIN;}
I1007 15:32:12.735259 22 log.go:295] Found file: 455 First Index: 13620001
I1007 15:32:12.735562 22 storage.go:125] Init Raft Storage with snap: 13620395, first: 13620396, last: 13625451
I1007 15:32:12.735822 22 server_state.go:140] Opening postings BadgerDB with options: {Dir:p ValueDir:p SyncWrites:false NumVersionsToKeep:2147483647 ReadOnly:false Logger:0x3939e90 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:15 BlockSize:4096 BloomFalsePositive:0.01 BlockCacheSize:322122547 IndexCacheSize:214748364 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 AllowStopTheWorld:true DetectConflicts:false NamespaceOffset:1 ExternalMagicVersion:1 managedTxns:false maxBatchCount:0 maxBatchSize:0 maxValueThreshold:0}
I1007 15:32:12.766987 29 node.go:326] Group 0 found 17613 entries
I1007 15:32:12.767309 29 raft.go:621] Restarting node for dgraphzero
I1007 15:32:12.767441 29 node.go:189] Setting conf state to nodes:1
I1007 15:32:12.767802 29 pool.go:164] CONN: Connecting to localhost:7080
I1007 15:32:12.768001 29 log.go:34] 1 became follower at term 3
I1007 15:32:12.768156 29 log.go:34] newRaft 1 [peers: [1], term: 3, commit: 4337613, applied: 4337263, lastindex: 4337613, lastterm: 3]
I1007 15:32:12.769588 29 run.go:388] Running Dgraph Zero…
I1007 15:32:12.842589 22 log.go:34] All 167 tables opened in 27ms
[Sentry] 2021/10/07 15:32:13 Sending fatal event [b8da5cc02c044ab0acd0f92a7e16737f] to o318308.ingest.sentry.io project: 5208688
E1007 15:32:13.034831 22 log.go:32] Received err: Level validation err: Levels Controller err: Inter: Biggest(j-1)[550577]
00000000 00 00 00 00 00 00 00 00 00 00 0a 65 6d 61 69 6c |…email|
00000010 5f 74 65 78 74 02 0a 20 71 75 ff ff ff ff ff 30 |_text… qu…0|
00000020 dd 86 |…|

vs Smallest(j)[550585]:
00000000 00 00 00 00 00 00 00 00 00 00 0a 65 6d 61 69 6c |…email|
00000010 5f 74 65 78 74 02 0a 0a 09 6d ff ff ff ff ff 30 |_text…m…0|
00000020 de 56 |.V|

: level=4 j=1 numTables=13
github.com/dgraph-io/badger/v3.(*levelHandler).validate
/go/pkg/mod/github.com/dgraph-io/badger/v3@v3.0.0-20210916095630-2a9a524b649b/util.go:55
github.com/dgraph-io/badger/v3.(*levelsController).validate
/go/pkg/mod/github.com/dgraph-io/badger/v3@v3.0.0-20210916095630-2a9a524b649b/util.go:33
github.com/dgraph-io/badger/v3.newLevelsController
/go/pkg/mod/github.com/dgraph-io/badger/v3@v3.0.0-20210916095630-2a9a524b649b/levels.go:180
github.com/dgraph-io/badger/v3.Open
/go/pkg/mod/github.com/dgraph-io/badger/v3@v3.0.0-20210916095630-2a9a524b649b/db.go:344
github.com/dgraph-io/badger/v3.OpenManaged
/go/pkg/mod/github.com/dgraph-io/badger/v3@v3.0.0-20210916095630-2a9a524b649b/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:143
github.com/dgraph-io/dgraph/worker.InitServerState
/ext-go/1/src/github.com/dgraph-io/dgraph/worker/server_state.go:78
github.com/dgraph-io/dgraph/dgraph/cmd/alpha.run
/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/alpha/run.go:905
github.com/dgraph-io/dgraph/dgraph/cmd/alpha.init.1.func1
/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/alpha/run.go:101
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:79
main.main
/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/main.go:112
runtime.main
/usr/local/go/src/runtime/proc.go:225
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1371. Cleaning up…
2021/10/07 15:32:13 Level validation err: Levels Controller err: Inter: Biggest(j-1)[550577]
00000000 00 00 00 00 00 00 00 00 00 00 0a 65 6d 61 69 6c |…email|
00000010 5f 74 65 78 74 02 0a 20 71 75 ff ff ff ff ff 30 |_text… qu…0|
00000020 dd 86 |…|

vs Smallest(j)[550585]:
00000000 00 00 00 00 00 00 00 00 00 00 0a 65 6d 61 69 6c |…email|
00000010 5f 74 65 78 74 02 0a 0a 09 6d ff ff ff ff ff 30 |_text…m…0|
00000020 de 56 |.V|

: level=4 j=1 numTables=13
github.com/dgraph-io/badger/v3.(*levelHandler).validate
/go/pkg/mod/github.com/dgraph-io/badger/v3@v3.0.0-20210916095630-2a9a524b649b/util.go:55
github.com/dgraph-io/badger/v3.(*levelsController).validate
/go/pkg/mod/github.com/dgraph-io/badger/v3@v3.0.0-20210916095630-2a9a524b649b/util.go:33
github.com/dgraph-io/badger/v3.newLevelsController
/go/pkg/mod/github.com/dgraph-io/badger/v3@v3.0.0-20210916095630-2a9a524b649b/levels.go:180
github.com/dgraph-io/badger/v3.Open
/go/pkg/mod/github.com/dgraph-io/badger/v3@v3.0.0-20210916095630-2a9a524b649b/db.go:344
github.com/dgraph-io/badger/v3.OpenManaged
/go/pkg/mod/github.com/dgraph-io/badger/v3@v3.0.0-20210916095630-2a9a524b649b/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:143
github.com/dgraph-io/dgraph/worker.InitServerState
/ext-go/1/src/github.com/dgraph-io/dgraph/worker/server_state.go:78
github.com/dgraph-io/dgraph/dgraph/cmd/alpha.run
/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/alpha/run.go:905
github.com/dgraph-io/dgraph/dgraph/cmd/alpha.init.1.func1
/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/alpha/run.go:101
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:79
main.main
/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/main.go:112
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:144
github.com/dgraph-io/dgraph/worker.InitServerState
/ext-go/1/src/github.com/dgraph-io/dgraph/worker/server_state.go:78
github.com/dgraph-io/dgraph/dgraph/cmd/alpha.run
/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/alpha/run.go:905
github.com/dgraph-io/dgraph/dgraph/cmd/alpha.init.1.func1
/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/alpha/run.go:101
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:79
main.main
/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/main.go:112
runtime.main
/usr/local/go/src/runtime/proc.go:225
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1371