Hello Zapread,
I'm trying to set up a lightning node in a docker container. But I run into an issue when starting LND at the unlock wallet step. When prompted to type 'lncli create' to create a new wallet, the input seems to hang and nothing happens. Does anyone know why this is happening? It's probably something trivial that I'm overlooking
Steps to reproduce the problem
- git clone https://github.com/matt24smith/arch-lightning
- make build && make run # from inside the cloned repo
- lnd --bitcoin.active --bitcoin.testnet # start lnd inside the container
- lncli create
I have the .lnd and .btcd folders configured as separate docker volumes for persistent storage of the blockchain history, I'm not sure if this is part of the problem
Did you check the logs? What's the error if any?
The logs seem to indicate the program isnt receiving my input at all. Just "waiting for wallet encryption password" until i send an interrupt
looks like something to do with how docker handles the console shell. Can you ssh into your instance instead of using the docker command line and try it?
Are you starting LND with nohup lnd & ? That will ensure the process continues running in background.
It worked! running lnd as a background process was the solution. I like the idea to connect over ssh, I'm adding some configuration for this