NebulousLabs / Sia

Blockchain-based marketplace for file storage. Project has moved to GitLab: https://gitlab.com/NebulousLabs/Sia
https://sia.tech
MIT License
2.71k stars 440 forks source link

A critical error loading Sia has occured: Siad unexpectedly exited. #3062

Closed NUEH7hdOSA closed 6 years ago

NUEH7hdOSA commented 6 years ago

BUG REPORT

Stack Trace or error message

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... goroutine 1 [running]: runtime/debug.Stack(0x446dee, 0x0, 0xc04250bef8) /usr/local/go/src/runtime/debug/stack.go:24 +0xae runtime/debug.PrintStack() /usr/local/go/src/runtime/debug/stack.go:16 +0x29 github.com/NebulousLabs/Sia/build.Critical(0xc04250c220, 0x2, 0x2) /home/luke/go/src/github.com/NebulousLabs/Sia/build/critical.go:16 +0x9a github.com/NebulousLabs/Sia/persist.(Logger).Critical(0xc0421ef340, 0xc04250c220, 0x2, 0x2) /home/luke/go/src/github.com/NebulousLabs/Sia/persist/log.go:37 +0xd3 github.com/NebulousLabs/Sia/modules/consensus.(ConsensusSet).computeConsensusChange(0xc0420bbb80, 0xc04214a380, 0xc04200c3a0, 0x1, 0x1, 0xc042368280, 0x2, 0x2, 0x0, 0x0, ...) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/subscribe.go:20 +0xae8 github.com/NebulousLabs/Sia/modules/consensus.(ConsensusSet).managedInitializeSubscribe.func2(0xc04214a380, 0xaf82e0, 0xc04214a380) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/subscribe.go:183 +0x1a1 github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt.(DB).View(0xc0420632c0, 0xc04250d030, 0x0, 0x0) /home/luke/go/src/github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt/db.go:704 +0xa1 github.com/NebulousLabs/Sia/modules/consensus.(ConsensusSet).managedInitializeSubscribe(0xc0420bbb80, 0xdedea0, 0xc0420ae000, 0xff61fa4b22365da0, 0xc3f31f5603ca3f87, 0x736addb189baff67, 0xf50b69f252318bfc, 0xc0422bbd40, 0x47273d, 0x5bf7115) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/subscribe.go:176 +0x26d github.com/NebulousLabs/Sia/modules/consensus.(ConsensusSet).ConsensusSetSubscribe(0xc0420bbb80, 0xdedea0, 0xc0420ae000, 0xff61fa4b22365da0, 0xc3f31f5603ca3f87, 0x736addb189baff67, 0xf50b69f252318bfc, 0xc0422bbd40, 0x0, 0x0) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/subscribe.go:216 +0x108 github.com/NebulousLabs/Sia/modules/transactionpool.(TransactionPool).initPersist(0xc0420ae000, 0xc0420ae000, 0xc0422ae240) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/transactionpool/persist.go:179 +0x984 github.com/NebulousLabs/Sia/modules/transactionpool.New(0xdf8d00, 0xc0420bbb80, 0xdf87e0, 0xc0420ae6e0, 0xc042368000, 0x37, 0x0, 0x0, 0x42c96f) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/transactionpool/transactionpool.go:101 +0x257 main.(Server).loadModules(0xc0420884b0, 0xaf86b8, 0xc042010600) /home/luke/go/src/github.com/NebulousLabs/Sia/cmd/siad/server.go:514 +0x187c main.startDaemon(0x0, 0x0, 0xc04200c2eb, 0xe, 0xc04201211b, 0x5, 0xc04200c32c, 0x5, 0x0, 0xc04201215a, ...) /home/luke/go/src/github.com/NebulousLabs/Sia/cmd/siad/daemon.go:188 +0x2ee main.startDaemonCmd(0xc0420b8d80, 0xc04208c410, 0x0, 0x5) /home/luke/go/src/github.com/NebulousLabs/Sia/cmd/siad/daemon.go:236 +0x169 github.com/spf13/cobra.(Command).execute(0xc0420b8d80, 0xc04206a010, 0x5, 0x7, 0xc0420b8d80, 0xc04206a010) /home/luke/go/src/github.com/spf13/cobra/command.go:750 +0x2c8 github.com/spf13/cobra.(Command).ExecuteC(0xc0420b8d80, 0xae94c5, 0x3b, 0xc042047a40) /home/luke/go/src/github.com/spf13/cobra/command.go:831 +0x315 github.com/spf13/cobra.(*Command).Execute(0xc0420b8d80, 0xf06f80, 0xad12db) /home/luke/go/src/github.com/spf13/cobra/command.go:784 +0x32 main.main() /home/luke/go/src/github.com/NebulousLabs/Sia/cmd/siad/main.go:174 +0x797 Critical error: getBlockMap failed in computeConsensusChange: requested item does not exist Please submit a bug report here: https://github.com/NebulousLabs/Sia/issues requested item does not exist

Expected Behavior boot sia-ui

How to reproduce it (as minimally and precisely as possible)

Environment

tbenz9 commented 6 years ago

This error might resolve itself with a reboot of Sia. If not, you'll have to delete the transactionpool.db file. Instructions for deleting the transactionpool.db file can be found at the link below. Feel free to reopen this issue if you have more issues or questions.

https://gist.github.com/tbenz9/8066d74853ab28c23bd7bc1d3c7cdeda#delete-the-transactionpooldb-file