Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xucli doesn't work if L2 is not set up properly #1815

Closed
hatmer opened this issue Aug 16, 2020 · 2 comments · Fixed by #2004
Closed

xucli doesn't work if L2 is not set up properly #1815

hatmer opened this issue Aug 16, 2020 · 2 comments · Fixed by #2004
Assignees
Labels
bug Something isn't working P3 low priority
Milestone

Comments

@hatmer
Copy link
Collaborator

hatmer commented Aug 16, 2020

Background

I want to test xud only and don't need to use Lightning/Connext. Xucli cannot be used without the L2 systems fully functioning.

Steps to reproduce

Clean native install of xud. Compile and run xud without first setting up L2 systems. Attempt to run xucli.

Expected behaviour

Xud should start and connect to the xud network without requiring L2 systems.

Actual behaviour

Xucli throws error about LTC/LND/BTC networks not being connected

Screenshot 2020-08-16 at 14 22 07

Logs (/bin/xud)

(node:14514) ExperimentalWarning: The fs.promises API is experimental
16/08/2020 12:31:08.894 [RPC] info: gRPC server listening on localhost:28886
16/08/2020 12:31:09.107 [DB] info: connected to database /home/hatmer/.xud/xud-simnet.db
16/08/2020 12:31:09.133 [LND-BTC] debug: loaded tls cert from /home/hatmer/.lnd/tls.cert
16/08/2020 12:31:09.134 [LND-LTC] debug: loaded tls cert from /home/hatmer/.lnd/tls.cert
16/08/2020 12:31:09.135 [LND-LTC] info: could not load macaroon at /home/hatmer/.lnd/data/chain/litecoin/simnet/admin.macaroon, this is normal before creating a new wallet
16/08/2020 12:31:09.135 [LND-LTC] info: new status: Initialized
16/08/2020 12:31:09.137 [LND-LTC] info: waiting for wallet to be initialized...
16/08/2020 12:31:09.146 [RAIDEN] info: new status: Initialized
16/08/2020 12:31:09.147 [RAIDEN] info: trying to verify connection to raiden with uri: localhost:5001
16/08/2020 12:31:09.159 [RAIDEN] info: new status: Disconnected
16/08/2020 12:31:09.159 [RAIDEN] error: Error: connect ECONNREFUSED 127.0.0.1:5001
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1106:14)
16/08/2020 12:31:09.160 [RAIDEN] error: could not verify connection to raiden at localhost:5001, retrying in 5000 ms: Error: connect ECONNREFUSED 127.0.0.1:5001
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1106:14)
16/08/2020 12:31:09.161 [LND-BTC] debug: loaded macaroon from /home/hatmer/.lnd/data/chain/bitcoin/simnet/admin.macaroon
16/08/2020 12:31:09.162 [LND-BTC] info: new status: Initialized
16/08/2020 12:31:09.162 [LND-BTC] info: trying to verify connection to lnd at localhost:10009
16/08/2020 12:31:09.179 [LND-BTC] info: new status: WaitingUnlock
16/08/2020 12:31:09.180 [LND-BTC] error: could not verify connection at localhost:10009, error: {"code":12,"metadata":{"_internal_repr":{},"flags":0},"details":"unknown service lnrpc.Lightning"}, retrying in 5000 ms
16/08/2020 12:31:09.181 [GLOBAL] info: Node key is encrypted, unlock with 'xucli unlock', 'xucli create', or 'xucli restore'
16/08/2020 12:31:14.147 [RAIDEN] info: trying to verify connection to raiden with uri: localhost:5001
16/08/2020 12:31:14.149 [RAIDEN] error: Error: connect ECONNREFUSED 127.0.0.1:5001
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1106:14)
16/08/2020 12:31:14.150 [RAIDEN] error: could not verify connection to raiden at localhost:5001, retrying in 5000 ms: Error: connect ECONNREFUSED 127.0.0.1:5001
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1106:14)
16/08/2020 12:31:15.139 [LND-LTC] info: new status: WaitingUnlock
16/08/2020 12:31:19.151 [RAIDEN] info: trying to verify connection to raiden with uri: localhost:5001
16/08/2020 12:31:19.153 [RAIDEN] error: Error: connect ECONNREFUSED 127.0.0.1:5001
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1106:14)
16/08/2020 12:31:19.153 [RAIDEN] error: could not verify connection to raiden at localhost:5001, retrying in 5000 ms: Error: connect ECONNREFUSED 127.0.0.1:5001
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1106:14)
16/08/2020 12:31:23.877 [RPC] debug: received call /xudrpc.XudInit/CreateNode
16/08/2020 12:31:24.155 [RAIDEN] info: trying to verify connection to raiden with uri: localhost:5001
16/08/2020 12:31:24.157 [RAIDEN] error: Error: connect ECONNREFUSED 127.0.0.1:5001
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1106:14)
16/08/2020 12:31:24.163 [RAIDEN] error: could not verify connection to raiden at localhost:5001, retrying in 5000 ms: Error: connect ECONNREFUSED 127.0.0.1:5001
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1106:14)
16/08/2020 12:31:24.217 [LND-LTC] info: new status: Disconnected
16/08/2020 12:31:24.218 [LND-LTC] debug: error on initWallet: 14 UNAVAILABLE: failed to connect to all addresses
16/08/2020 12:31:24.218 [LND-LTC] error: could not initialize wallet: 14 UNAVAILABLE: failed to connect to all addresses
{ code: 13,
message:
'could not initialize lnd-LTC: 14 UNAVAILABLE: failed to connect to all addresses',
name: 'UnknownError' }
16/08/2020 12:31:24.230 [RPC] error: call /xudrpc.XudInit/CreateNode errored with code 13: could not initialize lnd-LTC: 14 UNAVAILABLE: failed to connect to all addresses
16/08/2020 12:31:24.243 [LND-BTC] debug: error on initWallet: 2 UNKNOWN: wallet already exists
16/08/2020 12:31:24.245 [LND-BTC] error: could not initialize wallet: 2 UNKNOWN: wallet already exists
16/08/2020 12:31:29.205 [LND-LTC] error: AssertionError [ERR_ASSERTION]: awaitWalletInit should not be called from a status besides Initialized or Unlocked
at LndClient. (/home/hatmer/xud/dist/lndclient/LndClient.js:358:38)
at Generator.next ()
at /home/hatmer/xud/dist/lndclient/LndClient.js:27:71
at new Promise ()
at __awaiter (/home/hatmer/xud/dist/lndclient/LndClient.js:23:12)
at LndClient.awaitWalletInit (/home/hatmer/xud/dist/lndclient/LndClient.js:337:42)
at LndClient. (/home/hatmer/xud/dist/lndclient/LndClient.js:402:30)
at Generator.next ()
at /home/hatmer/xud/dist/lndclient/LndClient.js:27:71
at new Promise ()
16/08/2020 12:31:29.253 [RAIDEN] info: trying to verify connection to raiden with uri: localhost:5001
16/08/2020 12:31:29.274 [RAIDEN] error: Error: connect ECONNREFUSED 127.0.0.1:5001
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1106:14)
16/08/2020 12:31:29.276 [RAIDEN] error: could not verify connection to raiden at localhost:5001, retrying in 5000 ms: Error: connect ECONNREFUSED 127.0.0.1:5001
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1106:14)
16/08/2020 12:31:31.735 [RAIDEN] info: created raiden keystore with master seed and empty password in /home/hatmer/.ethereum
^C16/08/2020 12:31:32.811 [GLOBAL] info: XUD is shutting down
16/08/2020 12:31:32.814 [LND-BTC] info: new status: Disconnected
16/08/2020 12:31:32.824 [CONNEXT] error: cannot set status to Disconnected from NotInitialized
16/08/2020 12:31:32.825 [CONNEXT] error: cannot set status to Disconnected from NotInitialized
16/08/2020 12:31:32.840 [RPC] info: gRPC server completed shutdown
16/08/2020 12:31:32.858 [GLOBAL] info: XUD shutdown gracefully

@hatmer hatmer added the bug Something isn't working label Aug 16, 2020
@kilrau kilrau added the P2 mid priority label Aug 16, 2020
@ghost
Copy link

ghost commented Aug 16, 2020

Related issue: #1576

@kilrau
Copy link
Contributor

kilrau commented Sep 9, 2020

Related issue: #1576

True, we would need to do that one first. Since #1576 is also needed for ExchangeUnion/xud-docker#140, we should do that one first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P3 low priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants