Cant replace consensus.db for a full blockchain syncronize
-
Hi i downloaded the blockchain file few day ago when i replace my consensus.db file sia shows this error,
A critical error loading Sia has occured: Siad unexpectedly exited. Error log: Sia Daemon v1.3.2
Git Revision 72938f5
Loading...
(0/6) Loading siad...
(1/6) Loading gateway...
(2/6) Loading consensus...
(3/6) Loading transaction pool...
panic: invalid page type: 2685566: 10goroutine 40 [running]:
github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt.(*Cursor).search(0xc04226eb68, 0xc042942920, 0x20, 0x20, 0x28fa7e)
/home/luke/go/src/github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt/cursor.go:256 +0x413
github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt.(*Cursor).searchPage(0xc04226eb68, 0xc042942920, 0x20, 0x20, 0x84199000)
/home/luke/go/src/github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt/cursor.go:314 +0x161
github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt.(*Cursor).search(0xc04226eb68, 0xc042942920, 0x20, 0x20, 0x41a9)
/home/luke/go/src/github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt/cursor.go:271 +0x1a9
github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt.(*Cursor).searchPage(0xc04226eb68, 0xc042942920, 0x20, 0x20, 0x849e3000)
/home/luke/go/src/github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt/cursor.go:314 +0x161
github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt.(*Cursor).search(0xc04226eb68, 0xc042942920, 0x20, 0x20, 0x49f3)
/home/luke/go/src/github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt/cursor.go:271 +0x1a9
github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt.(*Cursor).searchPage(0xc04226eb68, 0xc042942920, 0x20, 0x20, 0x84b0c000)
/home/luke/go/src/github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt/cursor.go:314 +0x161
github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt.(*Cursor).search(0xc04226eb68, 0xc042942920, 0x20, 0x20, 0x4b1c)
/home/luke/go/src/github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt/cursor.go:271 +0x1a9
github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt.(*Cursor).seek(0xc04226eb68, 0xc042942920, 0x20, 0x20, 0x0, 0x0, 0xc0428cca98, 0xdeb3f0, 0x8, 0x8, ...)
/home/luke/go/src/github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt/cursor.go:159 +0xb8
github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt.(*Bucket).Get(0xc0426f8940, 0xc042942920, 0x20, 0x20, 0xdee0e0, 0xc0426f8940, 0x42cc6d)
/home/luke/go/src/github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt/bucket.go:260 +0xed
github.com/NebulousLabs/Sia/modules/consensus.(*ConsensusSet).validateHeaderAndBlock(0xc0421da000, 0xdef860, 0xc0428cca80, 0x0, 0x801bc8be97925a4b, 0xbc246281ffea8d9d, 0x4b830b1b58c0957a, 0xe9f55844, 0x5b01e2a3, 0xc0422da040, ...)
/home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/accept.go:47 +0x15e
github.com/NebulousLabs/Sia/modules/consensus.(*ConsensusSet).managedAcceptBlocks.func1(0xc0428cca80, 0xaf82d8, 0xc0428cca80)
/home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/accept.go:248 +0x2c2
github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt.(*DB).Update(0xc04218a3c0, 0xc04226f2f8, 0x0, 0x0)
/home/luke/go/src/github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt/db.go:673 +0xa1
github.com/NebulousLabs/Sia/modules/consensus.(*ConsensusSet).managedAcceptBlocks(0xc0421da000, 0xc042190000, 0xa, 0xa, 0x0, 0x0, 0x0)
/home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/accept.go:244 +0x424
github.com/NebulousLabs/Sia/modules/consensus.(*ConsensusSet).managedReceiveBlocks(0xc0421da000, 0xdf80e0, 0xc0424e0080, 0x0, 0x0)
/home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/synchronize.go:225 +0x500
github.com/NebulousLabs/Sia/modules/consensus.(*ConsensusSet).(github.com/NebulousLabs/Sia/modules/consensus.managedReceiveBlocks)-fm(0xdf80e0, 0xc0424e0080, 0x0, 0x0)
/home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/synchronize.go:445 +0x45
github.com/NebulousLabs/Sia/modules/gateway.(*Gateway).managedRPC(0xc0420c2b00, 0xc04216f520, 0x11, 0xac7049, 0xa, 0xc0420300b0, 0x0, 0x0)
/home/luke/go/src/github.com/NebulousLabs/Sia/modules/gateway/rpc.go:66 +0x2c9
github.com/NebulousLabs/Sia/modules/gateway.(*Gateway).RPC(0xc0420c2b00, 0xc04216f520, 0x11, 0xac7049, 0xa, 0xc0420300b0, 0x0, 0x0)
/home/luke/go/src/github.com/NebulousLabs/Sia/modules/gateway/rpc.go:76 +0xd8
github.com/NebulousLabs/Sia/modules/consensus.(*ConsensusSet).threadedInitialBlockchainDownload.func1(0xc0421da000, 0xc04226fef0, 0xc04226fe98, 0xc04226fea0, 0x0, 0x0)
/home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/synchronize.go:580 +0x12e
github.com/NebulousLabs/Sia/modules/consensus.(*ConsensusSet).threadedInitialBlockchainDownload(0xc0421da000, 0x0, 0x0)
/home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/synchronize.go:601 +0x151
github.com/NebulousLabs/Sia/modules/consensus.New.func1(0x1, 0xc04217a130, 0xc0421da000, 0xdf87e0, 0xc0420c2b00)
/home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/consensusset.go:151 +0x3eb
created by github.com/NebulousLabs/Sia/modules/consensus.New
/home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/consensusset.go:144 +0x656.How can i fix it i tried deleting the sia folder from appdata and re running the sia program it works just fine but when i replace the blockchain file it shows that error.
I downloaded the blockchain file from here https://consensus.siahub.info/consensus.db
Thanks in advance.
-
@huskyhunter
If this only happens after you replaceconsensus.db, yourconsensus.dbdownload is probably corrupted.
Try to sync from scratch without replacingconsensus.dbor try to donwload from another source.0Find me on the Official Sia Discord.
Feel free to donate if I helped you!
SC: e8f701c1b2b37c8560cd9bbd2ab85e352d27112f51f0cec815a1331dcc2257392f6b53440b4c
DCR: DsSKZQkB1MZ81o5DtePbmC3swPCzgbtdg6f
ETH/ETC: 0x5d67690768F0Fc4780c578393Ca567e5bCb38378