Skip to content

Instantly share code, notes, and snippets.

@bereska
Created June 4, 2020 20:34
Show Gist options
  • Save bereska/95fd4d99bdab5ea0a56c93273e6ac1d8 to your computer and use it in GitHub Desktop.
Save bereska/95fd4d99bdab5ea0a56c93273e6ac1d8 to your computer and use it in GitHub Desktop.
lnd crash after force closechannel
root@btclnd:/home/pi/gocode/src/github.com/lightningnetwork/lnd/contractcourt# tail -f /mnt/hdd/.lnd/logs/bitcoin/mainnet/lnd.log
2020-06-04 21:58:57.301 [INF] LTND: LightningWallet opened
2020-06-04 21:58:57.405 [INF] HSWC: Restoring in-memory circuit state from disk
2020-06-04 21:58:57.428 [INF] HSWC: Payment circuits loaded: num_pending=0, num_open=0
2020-06-04 21:58:57.560 [INF] HSWC: Trimming open circuits for chan_id=622332:1781:1, start_htlc_id=2
2020-06-04 21:58:58.081 [INF] LTND: Channel backup proxy channel notifier starting
2020-06-04 21:58:58.081 [INF] ATPL: Instantiating autopilot with active=false, max_channels=5, allocation=0.600000, min_chan_size=20000, max_chan_size=16777215, private=false, min_confs=1, conf_target=3
2020-06-04 21:58:58.112 [INF] RPCS: RPC server listening on 0.0.0.0:10009
2020-06-04 21:58:58.121 [INF] RPCS: gRPC proxy started at 127.0.0.1:8080
2020-06-04 21:58:58.129 [INF] LTND: Waiting for chain backend to finish sync, start_height=633068
2020-06-04 21:58:58.680 [INF] LNWL: Started rescan from block 0000000000000000001027dab2b57a99ea7d562583b30da7d2ce5c922be4f22f (height 631414) for 84 addresses
2020-06-04 23:28:34.348 [INF] LNWL: Catching up block hashes to height 633072, this might take a while
2020-06-04 23:28:34.418 [INF] LNWL: Done catching up block hashes
2020-06-04 23:28:34.436 [INF] LNWL: Finished rescan for 84 addresses (synced to block 00000000000000000003d43a261d3b759dbf9390f8afb601b8998e9f15472d05, height 633072)
2020-06-04 23:28:35.441 [INF] LTND: Chain backend is fully synced (end_height=633072)!
2020-06-04 23:28:35.556 [INF] PRNF: PeerNotifier starting
2020-06-04 23:28:35.681 [INF] NTFN: New block epoch subscription
2020-06-04 23:28:35.686 [INF] HSWC: Starting HTLC Switch
2020-06-04 23:28:35.687 [INF] NTFN: New block epoch subscription
2020-06-04 23:28:36.328 [INF] LNWL: Removed invalid transaction: (*wire.MsgTx)(0x286e340)({
Version: (int32) 2,
TxIn: ([]*wire.TxIn) (len=3 cap=3) {
(*wire.TxIn)(0x35e2780)({
PreviousOutPoint: (wire.OutPoint) 3be18fbca03b3500c1467de0a31bfa0e2a1accaa32f1a30eb22907d700aa0b5c:1,
SignatureScript: ([]uint8) {
},
Witness: (wire.TxWitness) (len=2 cap=2) {
([]uint8) (len=72 cap=72) {
00000000 30 45 02 21 00 e4 2c ec 49 cb a6 db c7 fb 88 21 |0E.!..,.I......!|
00000010 59 22 ff 32 19 cc 18 39 39 37 45 1f 49 aa b9 31 |Y".2...997E.I..1|
00000020 af 6c 38 29 c9 02 20 7e ff 5e 9f d3 fc 5b 93 44 |.l8).. ~.^...[.D|
00000030 9f 30 71 87 9c e6 89 5d c7 2c 64 c2 df 3e 26 9d |.0q....].,d..>&.|
00000040 8d 72 0f b3 3b b7 e2 01 |.r..;...|
},
([]uint8) (len=33 cap=33) {
00000000 02 05 b7 33 59 ec b1 7f 50 b5 ac ea 62 dc 83 28 |...3Y...P...b..(|
00000010 15 1d 4b 8a e1 db 80 81 98 f0 48 ee 3e d1 9e 2b |..K.......H.>..+|
00000020 d4 |.|
}
},
Sequence: (uint32) 0
}),
(*wire.TxIn)(0x35e27c0)({
PreviousOutPoint: (wire.OutPoint) d9489bd02ca4406392a60d6e778f296ea2cf66edaf3f610061921eedcdf84c5f:1,
SignatureScript: ([]uint8) {
},
Witness: (wire.TxWitness) (len=2 cap=2) {
([]uint8) (len=71 cap=71) {
00000000 30 44 02 20 23 c3 fb 23 52 05 ee 6b 2d 90 de 35 |0D. #..#R..k-..5|
00000010 7e c8 91 4c 5b 9b 24 bb b6 fa da e0 bf 29 fb d2 |~..L[.$......)..|
00000020 25 ae 64 3a 02 20 24 b9 a3 03 a6 f5 15 06 bb bc |%.d:. $.........|
00000030 04 d4 6e 34 ca 7f a2 8b 6f bd bd 11 28 4a 83 fb |..n4....o...(J..|
00000040 94 b8 57 ec 93 2f 01 |..W../.|
},
([]uint8) (len=33 cap=33) {
00000000 03 71 71 dc 31 10 02 6b 6e 54 2e ee 27 74 0d 94 |.qq.1..knT..'t..|
00000010 e5 88 26 13 ca ee 47 a0 26 e8 e6 ca ef 4c 57 b4 |..&...G.&....LW.|
00000020 e1 |.|
}
},
Sequence: (uint32) 0
}),
(*wire.TxIn)(0x35e2800)({
PreviousOutPoint: (wire.OutPoint) 8831bd4552604b6d350a77be308860aac4bee309bec5c2a33a06959dffeec101:0,
SignatureScript: ([]uint8) {
},
Witness: (wire.TxWitness) (len=2 cap=2) {
([]uint8) (len=72 cap=72) {
00000000 30 45 02 21 00 d5 3a b3 54 99 56 04 81 f2 02 ed |0E.!..:.T.V.....|
00000010 17 64 ec 3a 76 46 2b c2 8d f9 85 54 47 98 d0 53 |.d.:vF+....TG..S|
00000020 fd e3 75 0e a3 02 20 2d de 78 b0 2a a5 9e 99 21 |..u... -.x.*...!|
00000030 21 57 d2 97 86 05 35 f3 8a 47 74 29 81 f2 75 6d |!W....5..Gt)..um|
00000040 ce db 61 8b bd 32 1f 01 |..a..2..|
},
([]uint8) (len=33 cap=33) {
00000000 02 d0 e8 b9 75 ff 28 6e 8d 19 05 8e a2 48 1f 5d |....u.(n.....H.]|
00000010 0d 3d b6 14 a8 3e 27 0f ef 0a d3 eb 2e 6e 49 5d |.=...>'......nI]|
00000020 da |.|
}
},
Sequence: (uint32) 0
})
},
TxOut: ([]*wire.TxOut) (len=1 cap=1) {
(*wire.TxOut)(0x286e380)({
Value: (int64) 325286,
PkScript: ([]uint8) (len=22 cap=22) {
00000000 00 14 22 4a be ef 2f 91 a5 06 95 e2 a8 92 74 bd |.."J../.......t.|
00000010 14 47 35 16 d6 71 |.G5..q|
}
})
},
LockTime: (uint32) 622147
})
2020-06-04 23:28:36.335 [INF] NTFN: New block epoch subscription
2020-06-04 23:28:36.444 [INF] NTFN: New block epoch subscription
2020-06-04 23:28:36.486 [INF] CNCT: Creating ChannelArbitrators for 3 active channels
2020-06-04 23:28:36.488 [INF] NTFN: New block epoch subscription
2020-06-04 23:28:36.497 [INF] NTFN: New block epoch subscription
2020-06-04 23:28:36.498 [INF] NTFN: New block epoch subscription
2020-06-04 23:28:36.533 [INF] NTFN: New spend subscription: spend_id=3, outpoint=b450e05e740a5da8ef9731ab50770e7f3ddc9aabc4d70533e7ffb9f7531ddda8:0, script=0 e399add0f329b4c9e81ce85bf79e0ec4aad6f75a3f72eaee27b86db71516326a, height_hint=623336
2020-06-04 23:28:36.540 [INF] NTFN: Dispatching historical spend rescan for outpoint=b450e05e740a5da8ef9731ab50770e7f3ddc9aabc4d70533e7ffb9f7531ddda8:0, script=0 e399add0f329b4c9e81ce85bf79e0ec4aad6f75a3f72eaee27b86db71516326a, start=623336, end=633072
2020-06-04 23:28:36.540 [INF] NTFN: New spend subscription: spend_id=2, outpoint=8860eafc5f8570e115bdad8e4e9379ede5f72e496fe8627107a5a2332d7457a9:0, script=0 01828c8befde6fd248dbd6530b7aad657941b79044d7cbfc5ad41e29e7a5f801, height_hint=631414
2020-06-04 23:28:36.540 [INF] NTFN: Dispatching historical spend rescan for outpoint=8860eafc5f8570e115bdad8e4e9379ede5f72e496fe8627107a5a2332d7457a9:0, script=0 01828c8befde6fd248dbd6530b7aad657941b79044d7cbfc5ad41e29e7a5f801, start=631414, end=633072
2020-06-04 23:28:36.541 [INF] NTFN: New spend subscription: spend_id=1, outpoint=f029b45a579b89dabbd7b80b0ed84215dea37c8acfc0eda13ce9eebb82f8945f:1, script=0 55f813c2b6cace6cec9f9915e80484f01c234c99c451cd9412eb6f5f0965811e, height_hint=631414
2020-06-04 23:28:36.541 [INF] NTFN: Dispatching historical spend rescan for outpoint=f029b45a579b89dabbd7b80b0ed84215dea37c8acfc0eda13ce9eebb82f8945f:1, script=0 55f813c2b6cace6cec9f9915e80484f01c234c99c451cd9412eb6f5f0965811e, start=631414, end=633072
2020-06-04 23:28:36.812 [INF] CNCT: Close observer for ChannelPoint(8860eafc5f8570e115bdad8e4e9379ede5f72e496fe8627107a5a2332d7457a9:0) active
2020-06-04 23:28:36.988 [INF] CNCT: Close observer for ChannelPoint(f029b45a579b89dabbd7b80b0ed84215dea37c8acfc0eda13ce9eebb82f8945f:1) active
2020-06-04 23:28:37.339 [INF] CNCT: Close observer for ChannelPoint(b450e05e740a5da8ef9731ab50770e7f3ddc9aabc4d70533e7ffb9f7531ddda8:0) active
2020-06-04 23:28:37.346 [INF] CNCT: ChannelArbitrator(8860eafc5f8570e115bdad8e4e9379ede5f72e496fe8627107a5a2332d7457a9:0): starting state=StateBroadcastCommit, trigger=chainTrigger, triggerHeight=633072
2020-06-04 23:28:37.349 [INF] CNCT: ChannelArbitrator(8860eafc5f8570e115bdad8e4e9379ede5f72e496fe8627107a5a2332d7457a9:0): force closing chan
2020-06-04 23:28:37.411 [INF] HSWC: Removing channel link with ChannelID(a957742d33a2a5077162e86f492ef7e5ed79934e8eadbd15e170855ffcea6088)
2020-06-04 23:28:37.459 [INF] CNCT: local commit: (*wire.MsgTx)(<nil>)
2020-06-04 23:29:40.257 [INF] LTND: Version: 0.10.0-beta commit=v0.10.0-beta-198-gdb47a0ce00b2c2a3108ec2b527c17654bfc71a38, build=production, logging=default
2020-06-04 23:29:40.258 [INF] LTND: Active chain: Bitcoin (network=mainnet)
2020-06-04 23:29:40.258 [INF] LTND: Opening the main database, this might take a few minutes...
2020-06-04 23:30:27.925 [INF] CHDB: Checking for schema update: latest_version=13, db_version=13
2020-06-04 23:30:27.926 [INF] LTND: Database now open (time_to_open=47.666962368s)!
2020-06-04 23:30:27.971 [INF] RPCS: password gRPC proxy started at 127.0.0.1:8080
2020-06-04 23:30:27.970 [INF] RPCS: password RPC server listening on 0.0.0.0:10009
2020-06-04 23:30:27.974 [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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment