Closed ghost closed 5 years ago
Looks like disk corruption on your rasp pi. If it's a Casa node would report it to them to see if they have any further insight.
@Roasbeef
I'm getting a different error now.. "Index out of range"
ubuntuuser@ln:~$ lnd --bitcoin.active --bitcoin.mainnet --debuglevel=debug --bitcoin.node=bitcoind
Attempting automatic RPC configuration to bitcoind
Automatically obtained bitcoind's RPC credentials
2019-02-21 04:45:08.070 [WRN] LTND: open /home/ubuntuuser/.lnd/lnd.conf: no such file or directory
2019-02-21 04:45:08.070 [INF] LTND: Version: 0.5.1-beta commit=v0.5.1-beta-762-ge1382bd4fc118ba2e93b1e987f94bc1a1b1fec3d, build=production, logging=default
2019-02-21 04:45:08.070 [INF] LTND: Active chain: Bitcoin (network=mainnet)
2019-02-21 04:45:08.070 [INF] CHDB: Checking for schema update: latest_version=8, db_version=7
2019-02-21 04:45:08.070 [INF] CHDB: Performing database schema migration
2019-02-21 04:45:08.071 [INF] CHDB: Applying migration #8
2019-02-21 04:45:08.071 [INF] CHDB: Migrating to the gossip message store new key format
2019-02-21 04:45:08.071 [INF] CHDB: Migration to the gossip message store new key format complete!
2019-02-21 04:45:08.359 [INF] RPCS: password gRPC proxy started at 127.0.0.1:8080
2019-02-21 04:45:08.359 [INF] RPCS: password RPC server listening on 127.0.0.1:10009
2019-02-21 04:45:08.359 [INF] LTND: Waiting for wallet encryption password. Use `lncli create` to create a wallet, `lncli unlock` to unlock an existing wallet, or `lncli changepassword` to change the password of an existing wallet and unlock it.
2019-02-21 04:45:26.499 [INF] LNWL: Opened wallet
2019-02-21 04:45:26.589 [INF] LTND: Primary chain is set to: bitcoin
2019-02-21 04:45:26.608 [INF] LTND: Initializing bitcoind backed fee estimator
2019-02-21 04:45:26.608 [INF] LNWL: Started listening for bitcoind transaction notifications via ZMQ on tcp://127.0.0.1:28333
2019-02-21 04:45:26.608 [INF] LNWL: Started listening for bitcoind block notifications via ZMQ on tcp://127.0.0.1:28332
2019-02-21 04:45:26.610 [DBG] LNWL: Using minimum fee rate of 253 sat/kw
2019-02-21 04:45:27.826 [INF] LNWL: The wallet has been unlocked without a time limit
2019-02-21 04:45:27.836 [INF] LTND: LightningWallet opened
2019-02-21 04:45:27.837 [DBG] LNWL: Birthday block has already been verified: height=555941, hash=00000000000000000005d078e4e49601b0bb344d5f2808d75cb3d2ae96a95b24
2019-02-21 04:45:27.845 [INF] HSWC: Restoring in-memory circuit state from disk
2019-02-21 04:45:27.846 [INF] HSWC: Payment circuits loaded: num_pending=0, num_open=0
2019-02-21 04:45:27.897 [INF] LTND: Shutdown complete
panic: runtime error: index out of range
goroutine 1 [running]:
github.com/coreos/bbolt.(*leafPageElement).key(...)
/home/ubuntuuser/gocode/pkg/mod/github.com/coreos/bbolt@v1.3.2/page.go:120
github.com/coreos/bbolt.(*Cursor).keyValue(0xc0003209c0, 0x1b9f200, 0x0, 0x0, 0x1, 0xc010688f60, 0x0, 0x1)
/home/ubuntuuser/gocode/pkg/mod/github.com/coreos/bbolt@v1.3.2/cursor.go:350 +0x1b8
github.com/coreos/bbolt.(*Cursor).First(0xc0003209c0, 0x0, 0x0, 0x1b9f200, 0x0, 0x0, 0x10)
/home/ubuntuuser/gocode/pkg/mod/github.com/coreos/bbolt@v1.3.2/cursor.go:44 +0x12e
github.com/coreos/bbolt.(*Bucket).ForEach(0xc0106cda80, 0xc000320a28, 0x10, 0x10)
/home/ubuntuuser/gocode/pkg/mod/github.com/coreos/bbolt@v1.3.2/bucket.go:387 +0x94
github.com/lightningnetwork/lnd/channeldb.(*DB).fetchNodeChannels(0xc0001ee720, 0xc0106cda80, 0x20, 0x20, 0xc0106cda80, 0x0, 0x0)
/home/ubuntuuser/gocode/src/github.com/lightningnetwork/lnd/channeldb/db.go:386 +0x79
github.com/lightningnetwork/lnd/channeldb.fetchChannels.func1.1.1(0x7fbe36a90020, 0x20, 0x20, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/ubuntuuser/gocode/src/github.com/lightningnetwork/lnd/channeldb/db.go:623 +0xc2
github.com/coreos/bbolt.(*Bucket).ForEach(0xc0106cda40, 0xc000320c28, 0x21, 0x21)
/home/ubuntuuser/gocode/pkg/mod/github.com/coreos/bbolt@v1.3.2/bucket.go:388 +0x10c
github.com/lightningnetwork/lnd/channeldb.fetchChannels.func1.1(0x7fbe35709bdc, 0x21, 0x21, 0x7fbe35709bfd, 0x38, 0x38, 0x38, 0x0)
/home/ubuntuuser/gocode/src/github.com/lightningnetwork/lnd/channeldb/db.go:607 +0x11b
github.com/coreos/bbolt.(*Bucket).ForEach(0xc0001e2980, 0xc000320d40, 0x3, 0x3)
/home/ubuntuuser/gocode/pkg/mod/github.com/coreos/bbolt@v1.3.2/bucket.go:388 +0x10c
github.com/lightningnetwork/lnd/channeldb.fetchChannels.func1(0xc00043c2a0, 0x1212030, 0xc00043c2a0)
/home/ubuntuuser/gocode/src/github.com/lightningnetwork/lnd/channeldb/db.go:601 +0x141
github.com/coreos/bbolt.(*DB).View(0xc0002f2600, 0xc000320e00, 0x0, 0x0)
/home/ubuntuuser/gocode/pkg/mod/github.com/coreos/bbolt@v1.3.2/db.go:719 +0x90
github.com/lightningnetwork/lnd/channeldb.fetchChannels(0xc0001ee720, 0x0, 0x1212028, 0x0, 0xc00000d680, 0xa41230, 0xc0001e2580)
/home/ubuntuuser/gocode/src/github.com/lightningnetwork/lnd/channeldb/db.go:583 +0x84
github.com/lightningnetwork/lnd/channeldb.(*DB).FetchAllOpenChannels(0xc0001ee720, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/ubuntuuser/gocode/src/github.com/lightningnetwork/lnd/channeldb/db.go:547 +0x32
github.com/lightningnetwork/lnd/htlcswitch.(*circuitMap).trimAllOpenCircuits(0xc0001e2580, 0x0, 0x0)
/home/ubuntuuser/gocode/src/github.com/lightningnetwork/lnd/htlcswitch/circuit_map.go:387 +0x35
github.com/lightningnetwork/lnd/htlcswitch.NewCircuitMap(0xc0004c22d0, 0xc0004c22d0, 0x10, 0x10, 0xf5e980)
/home/ubuntuuser/gocode/src/github.com/lightningnetwork/lnd/htlcswitch/circuit_map.go:205 +0x97
github.com/lightningnetwork/lnd/htlcswitch.New(0xc0001bd8c0, 0x130fe80, 0xc000440078, 0xc0004c2290, 0xc0001ee720, 0x13139c0, 0x1b9f200, 0xc0004c22a0, 0xc000520f30, 0x131e5a0, ...)
/home/ubuntuuser/gocode/src/github.com/lightningnetwork/lnd/htlcswitch/switch.go:288 +0xd2
main.newServer(0xc000064ce0, 0x1, 0x1, 0xc0001ee720, 0xc0000b7ad0, 0xc0001bd8c0, 0x0, 0x0, 0x0)
/home/ubuntuuser/gocode/src/github.com/lightningnetwork/lnd/server.go:329 +0xe9e
main.lndMain(0x0, 0x0)
/home/ubuntuuser/gocode/src/github.com/lightningnetwork/lnd/lnd.go:308 +0xb74
main.main()
/home/ubuntuuser/gocode/src/github.com/lightningnetwork/lnd/lnd.go:418 +0x26
Any help would be greatly appreciated. I would also like to note I've tried moving .lnd folder to another clean ubuntu node.. same error when I try to unlock node
Background
LND encounters an error and the docker container crashes.
Your environment
Casa Node: Raspberry Pi LND: 0.5.1 Bitcoind: 0.17.0, is synced.
Expected behaviour
LND boots properly.
Actual behaviour