Skip to content

Instantly share code, notes, and snippets.

@bereska
bereska / journalctl lnd
Created June 10, 2020 21:17
lnd crash after force closechannel patch success
pi@btclnd:~/gocode/src/github.com/lightningnetwork/lnd $ sudo journalctl -u lnd -f
-- Logs begin at Thu 2020-04-30 02:01:42 MSK. --
Jun 10 23:54:31 btclnd lnd[27886]: 2020-06-10 23:54:31.518 [ERR] LTND: unable to set up wallet password listeners: shutting down
Jun 10 23:54:31 btclnd lnd[27886]: 2020-06-10 23:54:31.531 [INF] LTND: Shutdown complete
Jun 10 23:54:31 btclnd lnd[27886]: unable to set up wallet password listeners: shutting down
Jun 10 23:54:31 btclnd systemd[1]: lnd.service: Main process exited, code=exited, status=1/FAILURE
Jun 10 23:54:31 btclnd systemd[1]: lnd.service: Failed with result 'exit-code'.
Jun 10 23:54:31 btclnd systemd[1]: Stopped LND Lightning Daemon.
Jun 10 23:58:19 btclnd systemd[1]: Started LND Lightning Daemon.
Jun 10 23:58:20 btclnd lnd[28854]: 2020-06-10 23:58:20.603 [INF] LTND: Version: 0.10.99-beta commit=clock/v1.0.0-41-g96e41f0f6ceb70a45ab16b4f41461b110fb523a6, build=production, logging=default
pi@btclnd:~/gocode/src/github.com/lightningnetwork/lnd/contractcourt $ sudo systemctl start lnd
pi@btclnd:~/gocode/src/github.com/lightningnetwork/lnd/contractcourt $ sudo journalctl -u lnd -f
-- Logs begin at Thu 2020-04-30 02:01:42 MSK. --
Jun 10 11:42:02 btclnd systemd[1]: Stopped LND Lightning Daemon.
Jun 10 11:50:07 btclnd systemd[1]: Started LND Lightning Daemon.
Jun 10 11:50:07 btclnd lnd[27753]: 2020-06-10 11:50:07.955 [INF] LTND: Version: 0.10.99-beta commit=clock/v1.0.0-40-g38b8e54ba7de3add27db8fd9f22187afb9f548cf, build=production, logging=default
Jun 10 11:50:07 btclnd lnd[27753]: 2020-06-10 11:50:07.955 [INF] LTND: Active chain: Bitcoin (network=mainnet)
Jun 10 11:50:07 btclnd lnd[27753]: 2020-06-10 11:50:07.955 [INF] LTND: Opening the main database, this might take a few minutes...
Jun 10 11:50:09 btclnd lnd[27753]: 2020-06-10 11:50:09.568 [INF] CHDB: Checking for schema update: latest_version=14, db_version=14
Jun 10 11:50:09 btclnd lnd[27753]: 2020-06-10 11:50:09.569 [INF] LTND: Database now o
pi@btclnd:~/gocode/src/github.com/lightningnetwork/lnd/contractcourt $ sudo systemctl restart lnd
pi@btclnd:~/gocode/src/github.com/lightningnetwork/lnd/contractcourt $ sudo journalctl -u lnd -f
-- Logs begin at Tue 2020-04-28 23:17:02 MSK. --
Jun 06 11:53:08 btclnd systemd[1]: Stopped LND Lightning Daemon.
Jun 06 11:53:08 btclnd systemd[1]: Started LND Lightning Daemon.
Jun 06 11:53:09 btclnd lnd[19700]: 2020-06-06 11:53:09.001 [INF] LTND: Version: 0.10.0-beta commit=v0.10.0-beta-198-gdb47a0ce00b2c2a3108ec2b527c17654bfc71a38, build=production, logging=default
Jun 06 11:53:09 btclnd lnd[19700]: 2020-06-06 11:53:09.001 [INF] LTND: Active chain: Bitcoin (network=mainnet)
Jun 06 11:53:09 btclnd lnd[19700]: 2020-06-06 11:53:09.001 [INF] LTND: Opening the main database, this might take a few minutes...
Jun 06 11:53:10 btclnd lnd[19700]: 2020-06-06 11:53:10.301 [INF] CHDB: Checking for schema update: latest_version=13, db_version=13
Jun 06 11:53:10 btclnd lnd[19700]: 2020-06-06 11:53:10.302 [INF] LTND: Database now
@bereska
bereska / journalctl lnd
Created June 5, 2020 15:09
lnd panic after force close / patch 2
pi@btclnd:~/gocode/src/github.com/lightningnetwork/lnd/contractcourt $ sudo journalctl -u lnd -f
-- Logs begin at Tue 2020-04-28 23:17:02 MSK. --
Jun 05 17:49:18 btclnd lnd[17248]: 2020-06-05 17:49:18.807 [INF] LTND: LightningWallet opened
Jun 05 17:49:19 btclnd lnd[17248]: 2020-06-05 17:49:19.048 [INF] HSWC: Restoring in-memory circuit state from disk
Jun 05 17:49:19 btclnd lnd[17248]: 2020-06-05 17:49:19.093 [INF] HSWC: Payment circuits loaded: num_pending=0, num_open=0
Jun 05 17:49:19 btclnd lnd[17248]: 2020-06-05 17:49:19.340 [INF] HSWC: Trimming open circuits for chan_id=622332:1781:1, start_htlc_id=2
Jun 05 17:49:20 btclnd lnd[17248]: 2020-06-05 17:49:20.296 [INF] LTND: Channel backup proxy channel notifier starting
Jun 05 17:49:20 btclnd lnd[17248]: 2020-06-05 17:49:20.306 [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
Jun 05 17:49:20 btclnd lnd[17248]: 2020-06-05 17:49:20
@bereska
bereska / journalctl lnd
Created June 4, 2020 22:39
lnd panic after force closechannel
pi@btclnd:~/gocode/src/github.com/lightningnetwork/lnd/contractcourt $ sudo journalctl -u lnd -f
-- Logs begin at Tue 2020-04-28 23:17:02 MSK. --
Jun 05 01:34:44 btclnd lnd[16988]: 2020-06-05 01:34:44.019 [INF] LNWL: The wallet has been unlocked without a time limit
Jun 05 01:34:44 btclnd lnd[16988]: 2020-06-05 01:34:44.144 [INF] LTND: LightningWallet opened
Jun 05 01:34:44 btclnd lnd[16988]: 2020-06-05 01:34:44.329 [INF] HSWC: Restoring in-memory circuit state from disk
Jun 05 01:34:44 btclnd lnd[16988]: 2020-06-05 01:34:44.341 [INF] HSWC: Payment circuits loaded: num_pending=0, num_open=0
Jun 05 01:34:44 btclnd lnd[16988]: 2020-06-05 01:34:44.482 [INF] HSWC: Trimming open circuits for chan_id=622332:1781:1, start_htlc_id=2
Jun 05 01:34:44 btclnd lnd[16988]: 2020-06-05 01:34:44.835 [INF] LTND: Channel backup proxy channel notifier starting
Jun 05 01:34:44 btclnd lnd[16988]: 2020-06-05 01:34:44.845 [INF] ATPL: Instantiating autopilot with active=false, max_channels=5, allocation=0.600000, min_chan_size=20000,
@bereska
bereska / lnd.log after patch3
Created June 4, 2020 20:34
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
pi@btclnd:~/gocode/src/github.com/lightningnetwork/lnd $ sudo journalctl -u lnd -f
-- Logs begin at Tue 2020-04-28 23:17:02 MSK. --
May 23 00:54:53 btclnd lnd[29902]: 2020-05-23 00:54:53.096 [INF] LTND: LightningWallet opened
May 23 00:54:53 btclnd lnd[29902]: 2020-05-23 00:54:53.177 [INF] HSWC: Restoring in-memory circuit state from disk
May 23 00:54:53 btclnd lnd[29902]: 2020-05-23 00:54:53.200 [INF] HSWC: Payment circuits loaded: num_pending=0, num_open=0
May 23 00:54:53 btclnd lnd[29902]: 2020-05-23 00:54:53.330 [INF] HSWC: Trimming open circuits for chan_id=622332:1781:1, start_htlc_id=2
May 23 00:54:53 btclnd lnd[29902]: 2020-05-23 00:54:53.730 [INF] LTND: Channel backup proxy channel notifier starting
May 23 00:54:53 btclnd lnd[29902]: 2020-05-23 00:54:53.730 [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
May 23 00:54:53 btclnd lnd[29902]: 2020-05-23 00:54:53.737 [INF] RPC
root@btclnd:/home/pi/gocode/src/github.com/lightningnetwork/lnd/contractcourt# tail -f /mnt/hdd/.lnd/logs/bitcoin/mainnet/lnd.log
2020-05-22 11:44:30.058 [INF] LTND: Opening the main database, this might take a few minutes...
2020-05-22 11:45:22.501 [INF] CHDB: Checking for schema update: latest_version=13, db_version=13
2020-05-22 11:45:22.502 [INF] LTND: Database now open (time_to_open=52.443319159s)!
2020-05-22 11:45:22.545 [INF] RPCS: password RPC server listening on 0.0.0.0:10009
2020-05-22 11:45:22.549 [INF] RPCS: password gRPC proxy started at 127.0.0.1:8080
2020-05-22 11:45:22.550 [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.
2020-05-22 11:55:07.099 [INF] LTND: Received terminated
2020-05-22 11:55:07.100 [INF] LTND: Shutting down...
2020-05-22 11:55:07.100 [INF] LTND: Gracefully shutting down.
pi@btclnd:~/gocode/src/github.com/lightningnetwork/lnd/contractcourt $ sudo systemctl status lnd
● lnd.service - LND Lightning Daemon
Loaded: loaded (/etc/systemd/system/lnd.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2020-05-22 01:52:25 MSK; 1h 0min ago
Main PID: 27446 (lnd)
Tasks: 11 (limit: 2200)
Memory: 51.9M
CGroup: /system.slice/lnd.service
└─27446 /home/pi/gocode/bin/lnd --accept-keysend
@bereska
bereska / gist:46b5a373fd0a36a4d07d07ac993f0bc2
Created May 21, 2020 23:45
lnd crash after force closechannel
pi@btclnd:~ $ sudo journalctl -u lnd -f
-- Logs begin at Tue 2020-04-28 23:17:02 MSK. --
May 22 01:48:24 btclnd lnd[27408]: 2020-05-22 01:48:24.411 [INF] CHDB: Checking for schema update: latest_version=13, db_version=13
May 22 01:48:24 btclnd lnd[27408]: 2020-05-22 01:48:24.412 [INF] LTND: Database now open (time_to_open=52.246307237s)!
May 22 01:48:24 btclnd lnd[27408]: 2020-05-22 01:48:24.446 [INF] RPCS: password RPC server listening on 0.0.0.0:10009
May 22 01:48:24 btclnd lnd[27408]: 2020-05-22 01:48:24.447 [INF] RPCS: password gRPC proxy started at 127.0.0.1:8080
May 22 01:48:24 btclnd lnd[27408]: 2020-05-22 01:48:24.447 [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.
May 22 01:51:15 btclnd lnd[27408]: 2020-05-22 01:51:15.686 [INF] LNWL: Opened wallet
May 22 01:51:16 btclnd lnd[27408]: 2020-05-22 01:51:16.075 [INF] LTND: Primary chai