root@dgraph-dgraph-alpha-0:/dgraph# ./badger-linux-arm64 --dir p2 info Listening for /debug HTTP requests at port: 8080 Port busy. Trying another one... Listening for /debug HTTP requests at port: 8081 jemalloc enabled: true ___ Begin jemalloc statistics ___ Version: "5.2.1-0-gea6b3e973b477b8061e0076bb257dbd7f3faa756" Build-time option settings config.cache_oblivious: true config.debug: false config.fill: true config.lazy_lock: false config.malloc_conf: "background_thread:true,metadata_thp:auto" config.opt_safety_checks: false config.prof: false config.prof_libgcc: false config.prof_libunwind: false config.stats: true config.utrace: false config.xmalloc: false Run-time option settings opt.abort: false opt.abort_conf: false opt.confirm_conf: false opt.retain: true opt.dss: "secondary" opt.narenas: 16 opt.percpu_arena: "disabled" opt.oversize_threshold: 8388608 opt.metadata_thp: "auto" opt.background_thread: true (background_thread: true) opt.dirty_decay_ms: 10000 (arenas.dirty_decay_ms: 10000) opt.muzzy_decay_ms: 0 (arenas.muzzy_decay_ms: 0) opt.lg_extent_max_active_fit: 6 opt.junk: "false" opt.zero: false opt.tcache: true opt.lg_tcache_max: 15 opt.thp: "default" opt.stats_print: false opt.stats_print_opts: "" Arenas: 17 Quantum size: 16 Page size: 4096 Maximum thread-cached size class: 32768 Number of bin size classes: 36 Number of thread-cache bin size classes: 41 Number of large size classes: 196 Allocated: 29480, active: 36864, metadata: 2857160 (n_thp 0), resident: 2871296, mapped: 6328320, retained: 2060288 Background threads: 1, num_runs: 1, run_interval: 0 ns --- End jemalloc statistics --- [ 2023-01-19T22:23:51Z] MANIFEST 16 B MA [ now] 000001.vlog 2.0 GiB VL [EXTRA] [2023-01-19T22:23:51Z] 00001.mem 128 MiB [2023-01-19T22:23:51Z] DISCARD 1.0 MiB [2023-01-19T22:23:51Z] KEYREGISTRY 28 B [Summary] Total SST size: 0 B Value log size: 2.0 GiB Abnormalities: 3 extra files. 0 missing files. 0 empty files. 0 truncated manifests. Error: failed to open database err: while opening memtables error: while opening fid: 1 error: while updating skiplist error: end offset: 10791 < size: 134217728 error: Log truncate required to run DB. This might result in data loss github.com/dgraph-io/badger/v3.init /home/ubuntu/_work/badger/badger/errors.go:101 runtime.doInit /home/ubuntu/_work/_tool/go/1.18.9/arm64/src/runtime/proc.go:6230 runtime.doInit /home/ubuntu/_work/_tool/go/1.18.9/arm64/src/runtime/proc.go:6207 runtime.doInit /home/ubuntu/_work/_tool/go/1.18.9/arm64/src/runtime/proc.go:6207 runtime.main /home/ubuntu/_work/_tool/go/1.18.9/arm64/src/runtime/proc.go:233 runtime.goexit /home/ubuntu/_work/_tool/go/1.18.9/arm64/src/runtime/asm_arm64.s:1270 Usage: badger info [flags] Flags: --cv-mode string [none, table, block, tableAndBlock] Specifies when the db should verify checksum for SST. (default "none") --discard Parse and print DISCARD file from value logs. --enc-key string Use the provided encryption key -h, --help help for info --histogram Show a histogram of the key and value sizes. --history Show all versions of a key -l, --lookup string Hex of the key to lookup --read-only If set to true, DB will be opened in read only mode. If DB has not been closed properly, this option can be set to false to open DB. (default true) --show-internal Show internal keys along with other keys. This option should be used along with --show-key option --show-keys Show keys stored in Badger --show-meta Output item meta data as well (default true) -s, --show-tables If set to true, show tables as well. --truncate If set to true, it allows truncation of value log files if they have corrupt data. --with-prefix string Consider only the keys with specified prefix Global Flags: --dir string Directory where the LSM tree files are located. (required) --vlog-dir string Directory where the value log files are located, if different from --dir failed to open database err: while opening memtables error: while opening fid: 1 error: while updating skiplist error: end offset: 10791 < size: 134217728 error: Log truncate required to run DB. This might result in data loss github.com/dgraph-io/badger/v3.init /home/ubuntu/_work/badger/badger/errors.go:101 runtime.doInit /home/ubuntu/_work/_tool/go/1.18.9/arm64/src/runtime/proc.go:6230 runtime.doInit /home/ubuntu/_work/_tool/go/1.18.9/arm64/src/runtime/proc.go:6207 runtime.doInit /home/ubuntu/_work/_tool/go/1.18.9/arm64/src/runtime/proc.go:6207 runtime.main /home/ubuntu/_work/_tool/go/1.18.9/arm64/src/runtime/proc.go:233 runtime.goexit /home/ubuntu/_work/_tool/go/1.18.9/arm64/src/runtime/asm_arm64.s:1270