Panic with read only open/recover db
panic: leveldb: invalid sequence number
goroutine 9 [running]: github.com/syndtr/goleveldb/leveldb.makeInternalKey(...) /home/user/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/key.go:77 github.com/syndtr/goleveldb/leveldb.decodeBatchToMem.func1(0x7ea8?, {0x0, 0x2, 0x1, 0x0, 0x0}) /home/user/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/batch.go:303 +0x3f9 github.com/syndtr/goleveldb/leveldb.decodeBatch({0xc0004fa00c, 0x3e8, 0x1df4}, 0xc0000313b0) /home/user/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/batch.go:281 +0x1d1 github.com/syndtr/goleveldb/leveldb.decodeBatchToMem({0xc0004fa000?, 0x876de0?, 0xc0003a11a0?}, 0xc000031550?, 0xc0003ce000?) /home/user/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/batch.go:299 +0x209 github.com/syndtr/goleveldb/leveldb.(*DB).recoverJournalRO(0xc0000daa80) /home/user/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db.go:716 +0x7a5 github.com/syndtr/goleveldb/leveldb.openDB(0xc000236780) /home/user/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db.go:126 +0x385 github.com/syndtr/goleveldb/leveldb.Open({0x87a230?, 0xc0001c8540?}, 0x1?) /home/user/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db.go:203 +0x15e github.com/syndtr/goleveldb/leveldb.OpenFile({0xc00014a8a0?, 0x7fea285cfd48?}, 0xc0000317f8) /home/user/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db.go:225 +0x50
Source: syndtr/goleveldb