syncthing: panic: leveldb/table: corruption on data-block
One of my machines crashes on startup. This is the error:
[W4RYZ] 17:08:14 INFO: syncthing v0.12.16 "Beryllium Bedbug" (go1.6beta2 windows-amd64) WIN-P6RP886TVDJ\Administrator@WIN-P6RP886TVDJ 2016-01-24 07:09:28 UTC
[W4RYZ] 17:08:14 INFO: My ID: W4RYZKF
[W4RYZ] 17:08:14 INFO: Single thread hash performance is ~148 MB/s
[W4RYZ] 17:08:16 INFO: Compacting database: leveldb/table: corruption on data-block (pos=2007062): checksum mismatch, want=0xf78f0353 got=0x4687f369 [file=18152769.ldb]
panic: leveldb/table: corruption on data-block (pos=2007062): checksum mismatch, want=0xf78f0353 got=0x4687f369 [file=18152769.ldb]
panic: leveldb/table: corruption on data-block (pos=2007062): checksum mismatch, want=0xf78f0353 got=0x4687f369 [file=18152769.ldb]
goroutine 1 [running]:
github.com/syncthing/syncthing/lib/db.readWriteTransaction.close(0xc08283cea0, 0xc08281c078, 0xc083183780)
c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/lib/db/leveldb_transactions.go:59 +0x88
github.com/syncthing/syncthing/lib/db.readWriteTransaction.checkFlush(0xc08283cea0, 0xc08281c078, 0xc083183780)
c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/lib/db/leveldb_transactions.go:67 +0x9b
github.com/syncthing/syncthing/lib/db.(*Instance).genericReplace(0xc08281c078, 0xc083096f48, 0x6, 0x8, 0xc0827f0720, 0x20, 0x20, 0x0, 0x0, 0x0, ...)
c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/lib/db/leveldb_dbinstance.go:164 +0xe3f
github.com/syncthing/syncthing/lib/db.(*Instance).replace(0xc08281c078, 0xc083096f48, 0x6, 0x8, 0xc0827f0720, 0x20, 0x20, 0x0, 0x0, 0x0, ...)
c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/lib/db/leveldb_dbinstance.go:178 +0xdc
github.com/syncthing/syncthing/lib/db.(*FileSet).Replace(0xc083494680, 0x2b8e5e30604f1b33, 0xf97f497c09b2777b, 0x9726a2bcab30407d, 0x2a2a9a034482a7c2, 0x0, 0x0, 0x0)
c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/lib/db/set.go:128 +0x410
github.com/syncthing/syncthing/lib/model.(*Model).Index(0xc08247e000, 0x2b8e5e30604f1b33, 0xf97f497c09b2777b, 0x9726a2bcab30407d, 0x2a2a9a034482a7c2, 0xc0822caa90, 0x6, 0x0, 0x0, 0x0, ...)
c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/lib/model/model.go:544 +0x993
main.syncthingMain(0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0xc0821748c0, 0x47, 0x0, 0xc082005f8d, ...)
c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/main.go:695 +0x4ce2
main.main()
c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/main.go:362 +0x94f
[W4RYZ] 17:08:48 INFO: syncthing v0.12.16 "Beryllium Bedbug" (go1.6beta2 windows-amd64) WIN-P6RP886TVDJ\Administrator@WIN-P6RP886TVDJ 2016-01-24 07:09:28 UTC
[W4RYZ] 17:08:48 INFO: My ID: W4RYZKF
[W4RYZ] 17:08:49 INFO: Single thread hash performance is ~169 MB/s
[W4RYZ] 17:08:51 INFO: Compacting database: leveldb: closed
panic: leveldb/table: corruption on data-block (pos=2007062): checksum mismatch, want=0xf78f0353 got=0x4687f369 [file=18152769.ldb]
panic: leveldb/table: corruption on data-block (pos=2007062): checksum mismatch, want=0xf78f0353 got=0x4687f369 [file=18152769.ldb]
goroutine 1 [running]:
github.com/syncthing/syncthing/lib/db.readWriteTransaction.close(0xc082d03380, 0xc082026108, 0xc082d4bdc0)
c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/lib/db/leveldb_transactions.go:59 +0x88
github.com/syncthing/syncthing/lib/db.readWriteTransaction.checkFlush(0xc082d03380, 0xc082026108, 0xc082d4bdc0)
c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/lib/db/leveldb_transactions.go:67 +0x9b
github.com/syncthing/syncthing/lib/db.(*Instance).genericReplace(0xc082026108, 0xc0837f7330, 0x9, 0x10, 0xc082c78bc0, 0x20, 0x20, 0x0, 0x0, 0x0, ...)
c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/lib/db/leveldb_dbinstance.go:164 +0xe3f
github.com/syncthing/syncthing/lib/db.(*Instance).replace(0xc082026108, 0xc0837f7330, 0x9, 0x10, 0xc082c78bc0, 0x20, 0x20, 0x0, 0x0, 0x0, ...)
c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/lib/db/leveldb_dbinstance.go:178 +0xdc
github.com/syncthing/syncthing/lib/db.(*FileSet).Replace(0xc083600e00, 0x2b8e5e30604f1b33, 0xf97f497c09b2777b, 0x9726a2bcab30407d, 0x2a2a9a034482a7c2, 0x0, 0x0, 0x0)
c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/lib/db/set.go:128 +0x410
github.com/syncthing/syncthing/lib/model.(*Model).Index(0xc0824e0ea0, 0x2b8e5e30604f1b33, 0xf97f497c09b2777b, 0x9726a2bcab30407d, 0x2a2a9a034482a7c2, 0xc082173fc0, 0x9, 0x0, 0x0, 0x0, ...)
c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/lib/model/model.go:544 +0x993
main.syncthingMain(0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0xc0821745a0, 0x47, 0x0, 0xc082005f8d, ...)
c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/main.go:695 +0x4ce2
main.main()
c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/main.go:362 +0x94f
Should syncthing handle this? Should I do something manually?
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 18 (6 by maintainers)
For those wondering where the syncthing home directory is on Windows (so not so easy to just use
syncthing -paths
), it’s inC:\Users\USER\AppData\Local\Syncthing
on Windows 8.1.Thank you.
I deleted only the corrupted file and it is working again.