Panic and crash at startup

I am having issues with syncthing crashing - I am using it with the SyncTrayzor wrapper.

Here’s what it spits out at me:

panic: leveldb/table: corruption on data-block (pos=1038704): checksum mismatch, want=0x54cb7642 got=0x925315e0 [file=125444.ldb] goroutine 1 [running]: github.com/syncthing/syncthing/internal/db.ldbCheckGlobals(0xc082228160, 0xc08a0efc60, 0xb, 0x10) /go/src/github.com/syncthing/syncthing/internal/db/leveldb.go:1053 +0xde7 github.com/syncthing/syncthing/internal/db.NewFileSet(0xc082116954, 0xb, 0xc082228160, 0xc08314e350) /go/src/github.com/syncthing/syncthing/internal/db/set.go:55 +0x28c github.com/syncthing/syncthing/internal/model.(*Model).AddFolder(0xc082afc900, 0xc082116954, 0xb, 0xc0821168d0, 0xe, 0xc0820bf380, 0x2, 0x4, 0x0, 0x3c, …) /go/src/github.com/syncthing/syncthing/internal/model/model.go:1172 +0x1a8 main.syncthingMain() /go/src/github.com/syncthing/syncthing/cmd/syncthing/main.go:621 +0x221d main.main() /go/src/github.com/syncthing/syncthing/cmd/syncthing/main.go:383 +0x23da goroutine 5 [syscall]: os/signal.loop() c:/go/src/os/signal/signal_unix.go:21 +0x26 created by os/signal.init·1 c:/go/src/os/signal/signal_unix.go:27 +0x3c goroutine 7 [chan receive]: main.trackCPUUsage() /go/src/github.com/syncthing/syncthing/cmd/syncthing/gui_windows.go:37 +0x496 created by main.init·2 /go/src/github.com/syncthing/syncthing/cmd/syncthing/gui_windows.go:17 +0x2c goroutine 8 [select]: github.com/thejerf/suture.(*Supervisor).Serve(0xc0820e0000) /go/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/thejerf/suture/suture.go:411 +0xf6b created by github.com/thejerf/suture.(*Supervisor).ServeBackground /go/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/thejerf/suture/suture.go:373 +0x39 goroutine 10 [select]: github.com/syncthing/syncthing/internal/events.(*Subscription).Poll(0xc082007980, 0xdf8475800, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, …) /go/src/github.com/syncthing/syncthing/internal/events/events.go:186 +0x370 github.com/syncthing/syncthing/internal/events.(*BufferedSubscription).pollingLoop(0xc08200c5f0) /go/src/github.com/syncthing/syncthing/internal/events/events.go:223 +0x4f created by github.com/syncthing/syncthing/internal/events.NewBufferedSubscription /go/src/github.com/syncthing/syncthing/internal/events/events.go:217 +0x299 goroutine 11 [select]: github.com/syndtr/goleveldb/leveldb/util.(*BufferPool).drain(0xc0820a01c0) /go/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:205 +0x225 created by github.com/syndtr/goleveldb/leveldb/util.NewBufferPool /go/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:236 +0x253 goroutine 12 [select]: github.com/syndtr/goleveldb/leveldb.(*DB).compactionError(0xc082228160) /go/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:69 +0x561 created by github.com/syndtr/goleveldb/leveldb.openDB /go/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:139 +0x7d3 goroutine 13 [select]: github.com/syndtr/goleveldb/leveldb.(*DB).mpoolDrain(0xc082228160) /go/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_state.go:82 +0x151 created by github.com/syndtr/goleveldb/leveldb.openDB /go/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:140 +0x7ed goroutine 14 [select]: github.com/syndtr/goleveldb/leveldb.(*DB).tCompaction(0xc082228160) /go/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:768 +0x85f created by github.com/syndtr/goleveldb/leveldb.openDB /go/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:146 +0x9d6 goroutine 15 [select]: github.com/syndtr/goleveldb/leveldb.(*DB).mCompaction(0xc082228160) /go/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:715 +0x28a created by github.com/syndtr/goleveldb/leveldb.openDB /go/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:147 +0x9f0 goroutine 16 [select]: github.com/syndtr/goleveldb/leveldb.(*DB).jWriter(0xc082228160) /go/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_write.go:37 +0x19e created by github.com/syndtr/goleveldb/leveldb.openDB /go/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:148 +0xa0a goroutine 49 [chan receive]: github.com/syncthing/syncthing/internal/scanner.hashFiles(0xc084b541a0, 0x15, 0x20000, 0xc0821a6e40, 0xc0821a6d20) /go/src/github.com/syncthing/syncthing/internal/scanner/blockqueue.go:61 +0x7e github.com/syncthing/syncthing/internal/scanner.func·001() /go/src/github.com/syncthing/syncthing/internal/scanner/blockqueue.go:28 +0x5f created by github.com/syncthing/syncthing/internal/scanner.newParallelHasher /go/src/github.com/syncthing/syncthing/internal/scanner/blockqueue.go:30 +0x2b9 goroutine 20 [select]: github.com/syncthing/syncthing/internal/model.(*ProgressEmitter).Serve(0xc0831362c0) /go/src/github.com/syncthing/syncthing/internal/model/progressemitter.go:52 +0x8f9 created by github.com/syncthing/syncthing/internal/model.NewModel /go/src/github.com/syncthing/syncthing/internal/model/model.go:144 +0xb8c goroutine 21 [select]: github.com/syncthing/syncthing/internal/ignore.(*Matcher).clean(0xc082225310, 0x68c61714000) /go/src/github.com/syncthing/syncthing/internal/ignore/ignore.go:161 +0x1d0 created by github.com/syncthing/syncthing/internal/ignore.New /go/src/github.com/syncthing/syncthing/internal/ignore/ignore.go:53 +0x177 goroutine 22 [select]: github.com/syncthing/syncthing/internal/ignore.(*Matcher).clean(0xc084b46c80, 0x68c61714000) /go/src/github.com/syncthing/syncthing/internal/ignore/ignore.go:161 +0x1d0 created by github.com/syncthing/syncthing/internal/ignore.New /go/src/github.com/syncthing/syncthing/internal/ignore/ignore.go:53 +0x177 goroutine 23 [chan receive]: github.com/syncthing/syncthing/internal/model.(*Model).internalScanFolderSubs(0xc082afc900, 0xc082116100, 0x9, 0x0, 0x0, 0x0, 0x0, 0x0) /go/src/github.com/syncthing/syncthing/internal/model/model.go:1327 +0x1244 github.com/syncthing/syncthing/internal/model.(*roFolder).Serve(0xc082175830) /go/src/github.com/syncthing/syncthing/internal/model/rofolder.go:86 +0x858 created by github.com/syncthing/syncthing/internal/model.(*Model).StartFolderRO /go/src/github.com/syncthing/syncthing/internal/model/model.go:214 +0x313 goroutine 33 [select]: github.com/syncthing/syncthing/internal/ignore.(*Matcher).clean(0xc0864457c0, 0x68c61714000) /go/src/github.com/syncthing/syncthing/internal/ignore/ignore.go:161 +0x1d0 created by github.com/syncthing/syncthing/internal/ignore.New /go/src/github.com/syncthing/syncthing/internal/ignore/ignore.go:53 +0x177 goroutine 50 [semacquire]: sync.(*WaitGroup).Wait(0xc084b54220) c:/go/src/sync/waitgroup.go:132 +0x170 github.com/syncthing/syncthing/internal/scanner.func·002() /go/src/github.com/syncthing/syncthing/internal/scanner/blockqueue.go:34 +0x49 created by github.com/syncthing/syncthing/internal/scanner.newParallelHasher /go/src/github.com/syncthing/syncthing/internal/scanner/blockqueue.go:36 +0x34d goroutine 51 [semacquire]: sync.(*RWMutex).RLock(0xc082226740) c:/go/src/sync/rwmutex.go:36 +0x66 github.com/syncthing/syncthing/internal/model.(*Model).CurrentFolderFile(0xc082afc900, 0xc082116100, 0x9, 0xc083058f36, 0x90, 0x0, 0x0, 0x0, 0x0, 0x0, …) /go/src/github.com/syncthing/syncthing/internal/model/model.go:859 +0x75 github.com/syncthing/syncthing/internal/model.cFiler.CurrentFile(0xc082afc900, 0xc082116100, 0x9, 0xc083058f36, 0x90, 0x0, 0x0, 0x0, 0x0, 0x0, …) /go/src/github.com/syncthing/syncthing/internal/model/model.go:887 +0x77 github.com/syncthing/syncthing/internal/model.(*cFiler).CurrentFile(0xc084b541e0, 0xc083058f36, 0x90, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, …) :93 +0xe2 github.com/syncthing/syncthing/internal/scanner.func·004(0xc083058f20, 0xa6, 0x142260, 0xc0848a3380, 0x0, 0x0, 0x0, 0x0) /go/src/github.com/syncthing/syncthing/internal/scanner/walk.go:334 +0x2613 path/filepath.walk(0xc083058f20, 0xa6, 0x142260, 0xc0848a3380, 0xc084b542c0, 0x0, 0x0) c:/go/src/path/filepath/path.go:347 +0x98 path/filepath.walk(0xc08908c180, 0x72, 0x142260, 0xc08626c840, 0xc084b542c0, 0x0, 0x0) c:/go/src/path/filepath/path.go:372 +0x524 path/filepath.walk(0xc0848c3aa0, 0x58, 0x142260, 0xc0848c3b00, 0xc084b542c0, 0x0, 0x0) c:/go/src/path/filepath/path.go:372 +0x524 path/filepath.walk(0xc085394d20, 0x48, 0x142260, 0xc086126b40, 0xc084b542c0, 0x0, 0x0) c:/go/src/path/filepath/path.go:372 +0x524 path/filepath.walk(0xc083081080, 0x37, 0x142260, 0xc089736d20, 0xc084b542c0, 0x0, 0x0) c:/go/src/path/filepath/path.go:372 +0x524 path/filepath.walk(0xc08ac44060, 0x2c, 0x142260, 0xc08742e6c0, 0xc084b542c0, 0x0, 0x0) c:/go/src/path/filepath/path.go:372 +0x524 path/filepath.walk(0xc08b66fe60, 0x28, 0x142260, 0xc0855a07e0, 0xc084b542c0, 0x0, 0x0) c:/go/src/path/filepath/path.go:372 +0x524 path/filepath.walk(0xc087028fe0, 0x1a, 0x142260, 0xc084b2dd40, 0xc084b542c0, 0x0, 0x0) c:/go/src/path/filepath/path.go:372 +0x524 path/filepath.walk(0xc084b541a0, 0x15, 0x142260, 0xc0821a7080, 0xc084b542c0, 0x0, 0x0) c:/go/src/path/filepath/path.go:372 +0x524 path/filepath.Walk(0xc084b541a0, 0x15, 0xc084b542c0, 0x0, 0x0) c:/go/src/path/filepath/path.go:394 +0xf9 github.com/syncthing/syncthing/internal/scanner.func·003() /go/src/github.com/syncthing/syncthing/internal/scanner/walk.go:102 +0x8c created by github.com/syncthing/syncthing/internal/scanner.(*Walker).Walk /go/src/github.com/syncthing/syncthing/internal/scanner/walk.go:109 +0x442 goroutine 25 [semacquire]: sync.(*RWMutex).RLock(0xc082226740) c:/go/src/sync/rwmutex.go:36 +0x66 github.com/syncthing/syncthing/internal/model.(*Model).CurrentLocalVersion(0xc082afc900, 0xc082116560, 0x8, 0xc08626cba0, 0x0) /go/src/github.com/syncthing/syncthing/internal/model/model.go:1560 +0x52 github.com/syncthing/syncthing/internal/model.(*Model).CheckFolderHealth(0xc082afc900, 0xc082116560, 0x8, 0x0, 0x0) /go/src/github.com/syncthing/syncthing/internal/model/model.go:1700 +0x2aa github.com/syncthing/syncthing/internal/model.(*roFolder).Serve(0xc086eb3a70) /go/src/github.com/syncthing/syncthing/internal/model/rofolder.go:76 +0x470 created by github.com/syncthing/syncthing/internal/model.(*Model).StartFolderRO /go/src/github.com/syncthing/syncthing/internal/model/model.go:214 +0x313

This happens at every startup, so I am unable to run syncthing at all. I am open to any ideas!

These threads answer this and what to do:

This topic is now closed. New replies are no longer allowed.

Duplicate.