lightninglabs / lightning-terminal

Lightning Terminal: Your Home for Lightning Liquidity
MIT License
501 stars 88 forks source link

Immediate crash after starting on version v0.10.1-alpha #570

Closed thepatchworkapp closed 1 year ago

thepatchworkapp commented 1 year ago

After updating to v0.10.1-alpha, litd stops immediately after starting.

Expected behavior

For litd to continue running.

Actual behavior

2023-06-07 15:42:35.310 [INF] LITD: LiT is running in mainnet, the taproot assets subserver do not support the `mainnet` network yet, disabling taproot assets subserver
2023-06-07 15:42:35.310 [INF] LITD: LiT version: 0.10.1-alpha commit=v0.10.1-alpha
2023-06-07 15:42:35.311 [INF] LITD: Listening for http_tls on: 127.0.0.1:8443
2023-06-07 15:42:35.315 [INF] SESS: Checking for schema update: latest_version=0, db_version=0
2023-06-07 15:42:35.315 [INF] LITD: Dialing lnd gRPC server at localhost:10009
----------------------------------------------------------
 Lightning Terminal (LiT) by Lightning Labs

 LND Operating mode      remote
 LND Node status         online
 LND Alias               The Wall | beavb.tc/the-wall
 LND Version             0.16.3-beta commit=v0.16.3-beta
 LiT Version             0.10.1-alpha commit=v0.10.1-alpha
 Web interface           127.0.0.1:8443 (open https://127.0.0.1:8443 in your browser)           
----------------------------------------------------------
2023-06-07 15:42:36.355 [INF] LITD: Connecting basic lnd client
2023-06-07 15:42:36.556 [INF] LITD: Connecting full lnd client
2023-06-07 15:42:36.556 [INF] LNDC: Creating lnd connection to localhost:10009
2023-06-07 15:42:36.556 [INF] LNDC: Connected to lnd
2023-06-07 15:42:36.559 [INF] LNDC: Waiting for lnd to unlock
2023-06-07 15:42:36.561 [INF] LNDC: Wallet state of lnd is now: Lnd main server is ready for requests
2023-06-07 15:42:36.725 [INF] LNDC: lnd version: v0.16.3-beta, build tags 'autopilotrpc,chainrpc,invoicesrpc,peersrpc,routerrpc,signrpc,walletrpc,watchtowerrpc,wtclientrpc'
2023-06-07 15:42:36.725 [INF] LNDC: Using network mainnet
2023-06-07 15:42:36.725 [INF] LNDC: Waiting for lnd to be fully synced to its chain backend, this might take a while
2023-06-07 15:42:36.886 [INF] LNDC: lnd is now fully synced to its chain backend
2023-06-07 15:42:36.963 [INF] LOOPD: Protocol version: MuSig2
2023-06-07 15:42:36.963 [INF] LOOPD: Swap server address: swap.lightning.today:11010
2023-06-07 15:42:36.964 [INF] STORE: Checking for schema update: latest_version=4, db_version=4
2023-06-07 15:42:37.020 [INF] LOOPD: Waiting for updates
2023-06-07 15:42:37.020 [INF] LOOPD: Starting liquidity manager
2023-06-07 15:42:37.020 [INF] LOOPD: Starting swap client
2023-06-07 15:42:37.020 [INF] LOOP: Connected to lnd node 'The Wall | beavb.tc/the-wall' with pubkey 0203e5b16ebe87b089f22e18752f1f7a66a1bdf77879df8d1c9e8d912dbfb9beb4 (version v0.16.3-beta, build tags 'autopilotrpc,chainrpc,invoicesrpc,peersrpc,routerrpc,signrpc,walletrpc,watchtowerrpc,wtclientrpc')
2023-06-07 15:42:37.020 [INF] POOL: Version: 0.6.4-beta commit=v0.6.4-beta
2023-06-07 15:42:37.022 [INF] LOOP: Wait for first block ntfn
2023-06-07 15:42:37.022 [INF] LOOP: Starting event loop at height 793264
2023-06-07 15:42:37.077 [INF] POOL: Auction server address: pool.lightning.finance:12010
2023-06-07 15:42:37.078 [INF] CLDB: Checking for schema update: latest_version=1, db_version=1
2023-06-07 15:42:37.240 [INF] POOL: Using batch version 42 for connecting to auctioneer
2023-06-07 15:42:37.402 [INF] POOL: Using batch version 42 for connecting to auctioneer
2023-06-07 15:42:37.402 [INF] RPCS: Starting trader server
2023-06-07 15:42:37.563 [INF] RPCS: Connected to lnd node The Wall | beavb.tc/the-wall with pubkey 0203e5b16ebe87b089f22e18752f1f7a66a1bdf77879df8d1c9e8d912dbfb9beb4
2023-06-07 15:42:37.571 [INF] ACCT: Watching spend of 2854fdc3303b62b7bcfead476c7d76f79ac4ad7d9c6769198870eccd8885c6aa:0 for account 032faad6563636ac62778767a8056860f2e55b19f99aaeffa683fe6a0d38aa4044
2023-06-07 15:42:37.661 [INF] AUCT: Successfully connected to auction server
2023-06-07 15:42:38.014 [INF] FNDG: Starting funding manager
2023-06-07 15:42:38.014 [INF] FNDG: Funding manager is now active
2023-06-07 15:42:38.014 [INF] RPCS: Trader server is now active
2023-06-07 15:42:38.016 [INF] LITD: Starting LiT macaroon service
2023-06-07 15:42:38.074 [INF] AUTO: Starting Autopilot Client
2023-06-07 15:42:38.479 [INF] LITD: Starting LiT session server
2023-06-07 15:42:38.863 [INF] SESS: Mailbox RPC server listening on mailbox:f4dce9df3f9c99db5a490d46a14126af3c2779eab7e76ea6c7387a384535b4a5b9c96d0bf71ca08b739f316c416f0d4a5d2bcd8d1f6e03300f63fafebb60578e@mailbox.terminal.lightning.today:443
2023-06-07 15:42:38.866 [INF] SESS: Mailbox RPC server listening on mailbox:72932eb47ce1e9bed42ced8f66a0970e2721ddeed9402f31e670e8b1b5216344d755fbe77996f4e4fd1f8f23c92f64361b908b1394881ada8a63ae01054e50ea@mailbox.terminal.lightning.today:443
2023-06-07 15:42:38.872 [INF] LITD: Starting LiT account service
2023-06-07 15:42:38.872 [INF] SESS: Mailbox RPC server listening on mailbox:2eb56374c0115107b45b9c5dc499f08556e65d6d3a3cf8a0875582dda578cc7385cb39d9cf6d90df5b0ef0bd72740111a98414df1ef4b8e7596619e3ba0272e1@mailbox.terminal.lightning.today:443
2023-06-07 15:42:38.872 [INF] LITD: Starting LiT middleware manager
2023-06-07 15:42:38.874 [INF] LITD: Internal sub server startup complete
2023-06-07 15:42:41.110 [WRN] GRPC: [core] grpc: Server.Serve failed to complete security handshake from "mailbox:72932eb47ce1e9bed42ced8f66a0970e2721ddeed9402f31e670e8b1b5216344d755fbe77996f4e4fd1f8f23c92f64361b908b1394881ada8a63ae01054e50eb@mailbox.terminal.lightning.today:443": error reading from go-back-n: EOF
2023-06-07 15:42:42.213 [INF] LOOPD: Liquidity manager stopped
2023-06-07 15:42:42.213 [ERR] LOOPD: Runtime error in daemon, shutting down: rpc error: code = Unavailable desc = connection closed
2023-06-07 15:42:42.213 [INF] LOOPD: Stopping gRPC server
2023-06-07 15:42:42.213 [INF] LOOPD: Stopping REST server
2023-06-07 15:42:42.213 [ERR] ACCT: Unable to determine spend for account 032faad6563636ac62778767a8056860f2e55b19f99aaeffa683fe6a0d38aa4044: rpc error: code = Unavailable desc = error reading from server: read tcp 127.0.0.1:34400->127.0.0.1:10009: use of closed network connection
2023-06-07 15:42:42.213 [INF] LOOP: Swap client terminating
2023-06-07 15:42:42.213 [INF] LOOP: Swap client terminated
2023-06-07 15:42:42.213 [INF] LOOPD: Swap client stopped
2023-06-07 15:42:42.213 [ERR] RMID: Error in interceptor: RPC middleware receive failed: rpc error: code = Unavailable desc = error reading from server: read tcp 127.0.0.1:34400->127.0.0.1:10009: use of closed network connection
2023-06-07 15:42:42.213 [ERR] LITD: Received critical error from subsystem, shutting down: RPC middleware receive failed: rpc error: code = Unavailable desc = error reading from server: read tcp 127.0.0.1:34400->127.0.0.1:10009: use of closed network connection
2023-06-07 15:42:42.214 [INF] POOL: Received shutdown signal, stopping server
2023-06-07 15:42:42.214 [INF] AUCT: Shutting down auctioneer client
2023-06-07 15:42:42.214 [ERR] RMID: Error in interceptor: RPC middleware receive failed: rpc error: code = Unavailable desc = error reading from server: read tcp 127.0.0.1:34400->127.0.0.1:10009: use of closed network connection
2023-06-07 15:42:42.214 [ERR] RPCS: Unable to receive block notification: rpc error: code = Unavailable desc = error reading from server: read tcp 127.0.0.1:34400->127.0.0.1:10009: use of closed network connection
2023-06-07 15:42:42.214 [ERR] ACCT: Unable to receive block notification: rpc error: code = Unavailable desc = error reading from server: read tcp 127.0.0.1:34400->127.0.0.1:10009: use of closed network connection
2023-06-07 15:42:42.214 [ERR] RPCS: Unable to receive block notification: channel acceptor receive failed: rpc error: code = Unavailable desc = error reading from server: read tcp 127.0.0.1:34400->127.0.0.1:10009: use of closed network connection
2023-06-07 15:42:42.214 [ERR] ACCT: Error in invoice subscription: rpc error: code = Unavailable desc = error reading from server: read tcp 127.0.0.1:34400->127.0.0.1:10009: use of closed network connection
2023-06-07 15:42:42.214 [ERR] RMID: Error in interceptor: RPC middleware receive failed: rpc error: code = Unavailable desc = error reading from server: read tcp 127.0.0.1:34400->127.0.0.1:10009: use of closed network connection

System information

Standalone, compiled from source for ARM64.

litd --network=mainnet --uipassword=somepass --lnd-mode=remote

positiveblue commented 1 year ago

Does it crash every time that you try to start it?

Could you restart it with logs in debug mode? remote.lit-debuglevel=debug

thepatchworkapp commented 1 year ago

While I was waiting, I reinstalled v0.10.0 and it worked fine; just to confirm.

When I tried v0.10.1 again, I added --remote.lit-debuglevel=debug as requested. Here is the log: https://pastebin.com/PzMbuiWC - this seems to work and I can use the UI.

I have restarted it a couple of times now, and I no longer have a problem.

positiveblue commented 1 year ago

Looks like the update was completed successfully :tada:

Feel free to remove the debug log level so your logs get less noisy.

I will close the bug, we can reopen it if it happens again