lightninglabs / lightning-terminal

Lightning Terminal: Your Home for Lightning Liquidity
MIT License
487 stars 82 forks source link

macaroon files not created automatically #659

Closed RyanPaul31 closed 8 months ago

RyanPaul31 commented 8 months ago

Hi Team,

I have followed the same procedure for Lit configurations and It was running. But the problem is macaroon files are not automatically created inside .lit folder and also tls.cert and tls.key files are also not generated.

Also macaroon files are not generated inside any of .loop, .pool and .faraday folders.

Kindly guide me where it went wrong. What needs to be done to solve this issues?

Thanks in Advance!

guggero commented 8 months ago

That sounds like Lit isn't starting up properly. Can you post some logs please?

RyanPaul31 commented 8 months ago

LTND: We're not running within systemd or the service type is not 'notify' 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. LTND: Received interrupt LTND: Shutting down... LTND: Gracefully shutting down. LTND: unable to set up wallet password listeners: shutting down LTND: Shutting down because error in main method: error creating wallet config: unable to set up wallet password listeners: shutting down STAT: Setting the lit sub-server as errored: could not start Lit: %v STAT: could not start the lit sub-server: could not start Lit: received the shutdown signal LITD: Shutdown signal received GRPC: [core] [Channel #83] Channel Connectivity change to SHUTDOWN GRPC: [core] [Channel #83 SubChannel #84] Subchannel Connectivity change to SHUTDOWN GRPC: [core] [Channel #42] Channel Connectivity change to SHUTDOWN GRPC: [core] [Channel #29 SubChannel #30] Subchannel Connectivity change to SHUTDOWN GRPC: [core] [Channel #29 SubChannel #30] Subchannel deleted GRPC: [core] [Channel #29] Channel deleted GRPC: [transport] transport: loopyWriter exited. Closing connection. Err: transport closed by client GRPC: [transport] transport: closing: connection error: desc = "error reading from server: read tcp 127.0.0.1:52714->127.0.0.1:10009: use of closed network connection" GRPC: [core] [Channel #77] Channel Connectivity change to SHUTDOWN GRPC: [core] [Channel #77 SubChannel #78] Subchannel Connectivity change to SHUTDOWN GRPC: [core] [Channel #77 SubChannel #78] Subchannel deleted GRPC: [core] [Channel #77] Channel deleted GRPC: [transport] transport: loopyWriter exited. Closing connection. Err: transport closed by client GRPC: [transport] transport: closing: connection error: desc = "error reading from server: read tcp 127.0.0.1:52686->127.0.0.1:10009: use of closed network connection" GRPC: [core] [Channel #42 SubChannel #44] Subchannel Connectivity change to SHUTDOWN GRPC: [core] [Channel #42 SubChannel #44] Subchannel deleted GRPC: [core] [Channel #42] Channel deleted GRPC: [core] [Channel #47 SubChannel #56] Subchannel Connectivity change to SHUTDOWN GRPC: [core] [Channel #13 SubChannel #14] Subchannel Connectivity change to SHUTDOWN GRPC: [core] [Channel #79 SubChannel #82] Subchannel deleted GRPC: [core] [Channel #89] Channel Connectivity change to SHUTDOWN STAT: Setting the faraday sub-server as stopped GRPC: [core] [Channel #86] Channel Connectivity change to SHUTDOWN GRPC: [core] [Server #2 ListenSocket #3] ListenSocket deleted GRPC: [core] [Channel #38] Channel Connectivity change to SHUTDOWN

guggero commented 8 months ago

So you started Lit in integrated mode, which means it is also starting an lnd node. You have to create a wallet first (see second line of the log). Once you create the wallet (which doesn't require a macaroon), the other macaroons and certificates will be created.

RyanPaul31 commented 8 months ago

I've created wallet and macaroon files are created only inside .lnd folder not inside other folders

guggero commented 8 months ago

The wallet is probably still syncing, which takes a while. Check the logs for more information or errors.

RyanPaul31 commented 8 months ago

I'm frequently getting this error only : GRPC: [transport] transport: closing: connection error: desc = "error reading from server: read tcp 127.0.0.1:52656->127.0.0.1:10009: use of closed network connection"

guggero commented 8 months ago

That just means a component is trying to connect to lnd. But without any context that could be anything.

RyanPaul31 commented 8 months ago

How can I proceed further?

guggero commented 8 months ago

Give us more info, like the log output since you created the wallet. Going to move this into a discussion, as it's related to trouble shooting.