-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
Background
lnd is crashing during startup:
Attempting automatic RPC configuration to bitcoind
Automatically obtained bitcoind's RPC credentials
2018-04-17 22:19:08.109 [INF] LTND: Version 0.4.1-beta commit=
2018-04-17 22:19:08.110 [INF] LTND: Active chain: Bitcoin (network=testnet)
2018-04-17 22:19:08.112 [INF] CHDB: Checking for schema update: latest_version=0, db_version=0
2018-04-17 22:19:08.119 [INF] RPCS: password RPC server listening on 127.0.0.1:10009
2018-04-17 22:19:08.120 [INF] RPCS: password gRPC proxy started at 127.0.0.1:8080
2018-04-17 22:19:08.121 [INF] LTND: Waiting for wallet encryption password. Use lncli create
to create wallet, or lncli unlock
to unlock already created wallet.
2018-04-17 22:19:20.759 [INF] LNWL: Opened wallet
2018-04-17 22:19:21.159 [INF] LTND: Primary chain is set to: bitcoin
2018-04-17 22:19:21.159 [INF] LTND: Initializing bitcoind backed fee estimator
2018-04-17 22:19:27.366 [INF] LNWL: Opened wallet
2018-04-17 22:19:27.371 [INF] LNWL: Started listening for blocks via ZMQ on tcp://127.0.0.1:29000
2018-04-17 22:19:33.627 [INF] LNWL: The wallet has been unlocked without a time limit
2018-04-17 22:19:33.628 [INF] LTND: LightningWallet opened
2018-04-17 22:19:33.657 [INF] HSWC: Restoring in-memory circuit state from disk
2018-04-17 22:19:33.658 [INF] HSWC: Payment circuits loaded: num_pending=6, num_open=6
2018-04-17 22:19:33.693 [INF] HSWC: Trimming open circuits for chan_id=1293038:78:0, start_htlc_id=0
2018-04-17 22:19:33.693 [INF] HSWC: Trimming open circuits for chan_id=1293043:62:1, start_htlc_id=0
2018-04-17 22:19:33.693 [INF] HSWC: Trimming open circuits for chan_id=1293054:445:0, start_htlc_id=0
panic: page 1072 already freed
goroutine 1 [running]:
github.com/lightningnetwork/lnd/vendor/github.com/coreos/bbolt.(*freelist).free(0x122500a0, 0x85fb, 0x0, 0x7518b000)
/Users/roasbeef/gocode/src/github.com/lightningnetwork/lnd/vendor/github.com/coreos/bbolt/freelist.go:143 +0x4ac
github.com/lightningnetwork/lnd/vendor/github.com/coreos/bbolt.(*node).spill(0x11e99040, 0x1224b710, 0xacfe28)
/Users/roasbeef/gocode/src/github.com/lightningnetwork/lnd/vendor/github.com/coreos/bbolt/node.go:363 +0x1e0
github.com/lightningnetwork/lnd/vendor/github.com/coreos/bbolt.(*node).spill(0x11e99000, 0x0, 0x0)
/Users/roasbeef/gocode/src/github.com/lightningnetwork/lnd/vendor/github.com/coreos/bbolt/node.go:350 +0x90
github.com/lightningnetwork/lnd/vendor/github.com/coreos/bbolt.(*node).spill(0x11e98fc0, 0x120e32e4, 0x5)
/Users/roasbeef/gocode/src/github.com/lightningnetwork/lnd/vendor/github.com/coreos/bbolt/node.go:350 +0x90
github.com/lightningnetwork/lnd/vendor/github.com/coreos/bbolt.(*Bucket).spill(0x1200aac0, 0x1200aa00, 0x120e3538)
/Users/roasbeef/gocode/src/github.com/lightningnetwork/lnd/vendor/github.com/coreos/bbolt/bucket.go:568 +0x37c
github.com/lightningnetwork/lnd/vendor/github.com/coreos/bbolt.(*Bucket).spill(0x11ebc50c, 0xbeadc529, 0x5b68e6d)
/Users/roasbeef/gocode/src/github.com/lightningnetwork/lnd/vendor/github.com/coreos/bbolt/bucket.go:535 +0x2d4
github.com/lightningnetwork/lnd/vendor/github.com/coreos/bbolt.(*Tx).Commit(0x11ebc500, 0x0, 0x0)
/Users/roasbeef/gocode/src/github.com/lightningnetwork/lnd/vendor/github.com/coreos/bbolt/tx.go:160 +0xb8
github.com/lightningnetwork/lnd/vendor/github.com/coreos/bbolt.(*DB).Update(0x11f78000, 0x120e3630, 0x0, 0x0)
/Users/roasbeef/gocode/src/github.com/lightningnetwork/lnd/vendor/github.com/coreos/bbolt/db.go:675 +0xd0
github.com/lightningnetwork/lnd/channeldb.(*ChannelGraph).SetSourceNode(0x11e0c638, 0x120903f0, 0x46, 0x46)
/Users/roasbeef/gocode/src/github.com/lightningnetwork/lnd/channeldb/graph.go:314 +0x5c
main.newServer(0x11f30978, 0x1, 0x1, 0x11f76050, 0x12084000, 0x122fd140, 0x0, 0x8, 0x12084000)
/Users/roasbeef/gocode/src/github.com/lightningnetwork/lnd/server.go:320 +0xe10
main.lndMain(0x0, 0x0)
/Users/roasbeef/gocode/src/github.com/lightningnetwork/lnd/lnd.go:303 +0x8b8
main.main()
/Users/roasbeef/gocode/src/github.com/lightningnetwork/lnd/lnd.go:623 +0x24
Your environment
- lnd 0.4.1-beta (lnd-linux-arm-v0.4.1-beta.tar.gz)
- Linux 4.14.30-v7+ invoice: improve "wrong network" error message #1102 SMP Mon Mar 26 16:45:49 BST 2018 armv7l GNU/Linux (Rapbian Stretch Lite)
- Bitcoin Core Daemon version v0.16.0 (bitcoin-0.16.0-arm-linux-gnueabihf.tar.gz)
- I recently copied my existing .lnd folder to a new hardrive.
Steps to reproduce
lnd is crashing during startup. It happens every time I try to start it.
Expected behaviour
lnd should startup without error
Actual behaviour
lnd crashes with a stack trace.