ExchangeUnion / xud-docker

Streamlined setup of xud and all dependencies via docker šŸ³
https://docs.exchangeunion.com
GNU Affero General Public License v3.0
5 stars 5 forks source link

Starting environment fails with "wait for lndltc to be ready" when xud is locked #779

Open kilrau opened 3 years ago

kilrau commented 3 years ago

Describe the bug Can't enter environment when xud is locked, lnd was restarted and locked too:

Please choose the network: 3
Pulling image exchangeunion/utils:20.11.02
šŸš€ Launching mainnet environment
šŸŒ Checking for updates...
- Image exchangeunion/lndbtc:0.11.1-beta: pull
- Container mainnet_lndbtc_1: create
A new version is available. Would you like to upgrade (Warning: this may restart your environment and cancel all open orders)? [Y/n] 
Pulling exchangeunion/lndbtc:0.11.1-beta...
cbdbe7a5bc2a: Already exists
73b0c4c3aade: Pull complete
e77afe086a99: Pull complete
883038903d7a: Pull complete
cd4413c03736: Pull complete
5c5bdf4e8f49: Pull complete
d7d7d1f568a4: Pull complete
de498de17a72: Pull complete
d07569f495ac: Pull complete
Creating mainnet_lndbtc_1...

šŸƒ Warming up...

Failed to wait for lndltc to be ready. For more details, see /media/SSD/xud-docker/mainnet/logs/mainnet.log

xud logs:

11/11/2020 11:26:02.114 [RPC] error: call /xudrpc.Xud/GetBalance errored with code 12: xud is locked
11/11/2020 11:26:02.116 [RPC] error: call /xudrpc.Xud/TradingLimits errored with code 12: xud is locked
11/11/2020 11:26:02.117 [RPC] error: call /xudrpc.Xud/SubscribeSwaps errored with code 12: xud is locked
11/11/2020 11:26:05.372 [LND-BTC] error: could not verify connection at lndbtc:10009, error: {"code":14,"metadata":{"_internal_repr":{},"flags":0},"details":"failed to connect to all addresses"}, retrying in 5000 ms
11/11/2020 11:26:05.379 [LND-LTC] error: could not verify connection at lndltc:10009, error: {"code":14,"metadata":{"_internal_repr":{},"flags":0},"details":"failed to connect to all addresses"}, retrying in 5000 ms

lndbtc logs:

2020-11-11 13:02:58.285 [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.

Expected behavior xud unlock prompt to come up and let me enter xud ctl.

sangaman commented 3 years ago

I'm getting this same issue on master when trying to start up an xud-docker environment from scratch using master - it's preventing me from using xud-docker. Any suggestions on a workaround until this is fixed?

kilrau commented 3 years ago

docker exec -it mainnet_xud_1 xucli unlock

sangaman commented 3 years ago

docker exec -it mainnet_xud_1 xucli unlock

Works as advertised.