I have an ancient instance of camlistore (that ancient) that I want to
check whether I can discard/migrate. When the server starts, it fails
with the following?
I have tried to reindex, but this panics as well. I'm wondering what
the best way of salvaging the blobs would be at least to be able to
look at them to see whether I want to keep them.
thanks
Dan
```
2021/05/08 03:39:05 Starting camlistored version 2016-09-27-3e1edc1; Go
go1.7.1 (linux/amd64)
2021/05/08 03:39:05 TLS enabled, with SHA-256 certificate fingerprint:
7a8f78061f778fd50889
2021/05/08 03:39:05 Starting to listen on
https://localhost:3179
2021/05/08 03:39:05 Caught panic installer handlers: error
instantiating storage for prefix "/bs/", type "blobpacked": failed to
setup blobpacked metaIndex: error from "leveldb" KeyValue: leveldb:
manifest corrupted (field 'comparer'): missing [file=MANIFEST-000281]
goroutine 1 [running]:
runtime/debug.Stack(0xc420056050, 0x2, 0xc420315000)
/home/user/go/src/runtime/debug/stack.go:24 +0x79
runtime/debug.PrintStack()
/home/user/go/src/runtime/debug/stack.go:16 +0x22
camlistore.org/pkg/serverinit.(*Config).InstallHandlers.func1(0xc4202df
bc0)
/home/user/src/
camlistore.org/tmp/build-gopath-
nosqlite/src/
camlistore.org/pkg/serverinit/serverinit.go:525 +0xa8
panic(0xcced60, 0xc420a375e0)
/home/user/go/src/runtime/panic.go:458 +0x243
camlistore.org/pkg/serverinit.(*handlerLoader).setupHandler.func1(0xc42
09ff140, 0xc4201bd000, 0xe3bed7, 0xb)
/home/user/src/
camlistore.org/tmp/build-gopath-
nosqlite/src/
camlistore.org/pkg/serverinit/serverinit.go:307 +0x1b4
panic(0xcced60, 0xc420a375e0)
/home/user/go/src/runtime/panic.go:458 +0x243
camlistore.org/pkg/serverinit.(*handlerLoader).setupHandler.func1(0xc42
09ff440, 0xc4201bd000, 0xe3ee18, 0xe)
/home/user/src/
camlistore.org/tmp/build-gopath-
nosqlite/src/
camlistore.org/pkg/serverinit/serverinit.go:307 +0x1b4
panic(0xcced60, 0xc420a375e0)
/home/user/go/src/runtime/panic.go:458 +0x243
camlistore.org/pkg/serverinit.(*handlerLoader).setupHandler.func1(0xc42
09ff740, 0xc4201bd000, 0xe34422, 0x4)
/home/user/src/
camlistore.org/tmp/build-gopath-
nosqlite/src/
camlistore.org/pkg/serverinit/serverinit.go:307 +0x1b4
panic(0xcced60, 0xc420a375e0)
/home/user/go/src/runtime/panic.go:458 +0x243
camlistore.org/pkg/serverinit.exitFailure(0xe6548f, 0x36, 0xc4202dea90,
0x3, 0x3)
/home/user/src/
camlistore.org/tmp/build-gopath-
nosqlite/src/
camlistore.org/pkg/serverinit/serverinit.go:276 +0xef
camlistore.org/pkg/serverinit.(*handlerLoader).setupHandler(0xc4201bd00
0, 0xe34422, 0x4)
/home/user/src/
camlistore.org/tmp/build-gopath-
nosqlite/src/
camlistore.org/pkg/serverinit/serverinit.go:319 +0x9c7
camlistore.org/pkg/serverinit.(*handlerLoader).GetStorage(0xc4201bd000,
0xe34422, 0x4, 0x2, 0x2, 0x0, 0xc4202decc0)
/home/user/src/
camlistore.org/tmp/build-gopath-
nosqlite/src/
camlistore.org/pkg/serverinit/serverinit.go:250 +0x49
camlistore.org/pkg/blobserver/replica.newFromConfig(0x1507400,
0xc4201bd000, 0xc420a29d40, 0x7, 0xc4205f2308, 0xc4202ded01,
0xc4202ded70)
/home/user/src/
camlistore.org/tmp/build-gopath-
nosqlite/src/
camlistore.org/pkg/blobserver/replica/replica.go:112
+0x270
camlistore.org/pkg/blobserver.CreateStorage(0xe40b4f, 0x7, 0x1507400,
0xc4201bd000, 0xc420a29d40, 0xe, 0x1, 0x2, 0x7f60c1148750)
/home/user/src/
camlistore.org/tmp/build-gopath-
nosqlite/src/
camlistore.org/pkg/blobserver/registry.go:111 +0xc3
camlistore.org/pkg/serverinit.(*handlerLoader).setupHandler(0xc4201bd00
0, 0xe3ee18, 0xe)
/home/user/src/
camlistore.org/tmp/build-gopath-
nosqlite/src/
camlistore.org/pkg/serverinit/serverinit.go:316 +0x24d
camlistore.org/pkg/serverinit.(*handlerLoader).GetStorage(0xc4201bd000,
0xe3ee18, 0xe, 0x14fb080, 0xc42094eb60, 0x1502c80, 0xc42094eb20)
/home/user/src/
camlistore.org/tmp/build-gopath-
nosqlite/src/
camlistore.org/pkg/serverinit/serverinit.go:250 +0x49
camlistore.org/pkg/jsonsign/signhandler.newJSONSignFromConfig(0x1507400
, 0xc4201bd000, 0xc420a29a40, 0x8, 0xc420001c28, 0xc4202df301,
0xc4202df358)
/home/user/src/
camlistore.org/tmp/build-gopath-
nosqlite/src/
camlistore.org/pkg/jsonsign/signhandler/sig.go:109 +0x6e0
camlistore.org/pkg/blobserver.CreateHandler(0xe39517, 0x8, 0x1507400,
0xc4201bd000, 0xc420a29a40, 0xb, 0x0, 0x1, 0x0)
/home/user/src/
camlistore.org/tmp/build-gopath-
nosqlite/src/
camlistore.org/pkg/blobserver/registry.go:140 +0xc3
camlistore.org/pkg/serverinit.(*handlerLoader).setupHandler(0xc4201bd00
0, 0xe3bed7, 0xb)
/home/user/src/
camlistore.org/tmp/build-gopath-
nosqlite/src/
camlistore.org/pkg/serverinit/serverinit.go:365 +0xa96
camlistore.org/pkg/serverinit.(*handlerLoader).setupAll(0xc4201bd000)
/home/user/src/
camlistore.org/tmp/build-gopath-
nosqlite/src/
camlistore.org/pkg/serverinit/serverinit.go:230 +0x9a
camlistore.org/pkg/serverinit.(*Config).InstallHandlers(0xc420a07e80,
0x14f7e80, 0xc4201bc280, 0xc4209aeba0, 0x16, 0x0, 0x0, 0x0, 0x0, 0x0,
...)
/home/user/src/
camlistore.org/tmp/build-gopath-
nosqlite/src/
camlistore.org/pkg/serverinit/serverinit.go:591 +0x451
main.Main(0x0, 0x0)
/home/user/src/
camlistore.org/tmp/build-gopath-
nosqlite/src/
camlistore.org/server/camlistored/camlistored.go:421
+0x5d3
main.main()
/home/user/src/
camlistore.org/tmp/build-gopath-
nosqlite/src/
camlistore.org/server/camlistored/camlistored.go:354 +0x33
Error parsing config: Caught panic: error instantiating storage for
prefix "/bs/", type "blobpacked": failed to setup blobpacked metaIndex:
error from "leveldb" KeyValue: leveldb: manifest corrupted (field
'comparer'): missing [file=MANIFEST-000281]
```