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

LND out of sync - no retry #593

Closed
offerm opened this issue Oct 20, 2018 · 0 comments · Fixed by #598
Closed

LND out of sync - no retry #593

offerm opened this issue Oct 20, 2018 · 0 comments · Fixed by #598
Assignees
Labels
bug Something isn't working lightning Lightning network & lnd integration

Comments

@offerm
Copy link
Contributor

offerm commented Oct 20, 2018

lndbtc and lndltc were out of sync when xud started.
got the right error messages but there was no retry.

offerm@exchange-install-test-machine:~/xud-simnet/xud$ xud --raiden.disable --lndbtc.nomacaroons --lndbtc.port 10002 --lndltc.nomacaroons --lndltc.port 10001
10/20/2018, 8:11:06 PM [GLOBAL] info: config loaded
10/20/2018, 8:11:06 PM [GLOBAL] info: Local nodePubKey is 0366538c8feda33eca9eb4948e1542b703636a70be4990d222c96a9d8767ec0281
10/20/2018, 8:11:06 PM [DB] info: connected to database /home/offerm/.xud/xud.db
10/20/2018, 8:11:06 PM [LND] info: macaroons are disabled for lnd at localhost:10002
10/20/2018, 8:11:06 PM [LND] info: LndClient status: Disconnected
10/20/2018, 8:11:06 PM [LND] info: trying to verify connection to lnd with uri: localhost:10002
10/20/2018, 8:11:06 PM [LND] info: macaroons are disabled for lnd at localhost:10001
10/20/2018, 8:11:06 PM [LND] info: LndClient status: Disconnected
10/20/2018, 8:11:06 PM [LND] info: trying to verify connection to lnd with uri: localhost:10001
10/20/2018, 8:11:06 PM [LND] info: LndClient status: OutOfSync
10/20/2018, 8:11:06 PM [LND] error: lnd at localhost:10002 is out of sync with chain, retrying in 5000 ms
10/20/2018, 8:11:06 PM [LND] info: LndClient status: OutOfSync
10/20/2018, 8:11:06 PM [LND] error: lnd at localhost:10001 is out of sync with chain, retrying in 5000 ms
10/20/2018, 8:11:06 PM [P2P] info: p2p server listening on 0.0.0.0:8885
10/20/2018, 8:11:06 PM [P2P] info: Connecting to known / previously connected peers
10/20/2018, 8:11:06 PM [RPC] info: gRPC server listening on localhost:8886
10/20/2018, 8:11:07 PM [P2P] debug: Connected pre-handshake to peer xud1.test.exchangeunion.com:8885
10/20/2018, 8:11:07 PM [P2P] verbose: received hello packet from xud1.test.exchangeunion.com:8885: {"version":"1.0.0-prealpha.4","pairs":["LTC/BTC","ZRX/GNT"],"nodePubKey":"02b66438730
d1fcdf4a4ae5d3d73e847a272f160fee2938e132b52cab0a0d9cfc6","lndbtcPubKey":"02d693d951ce4fc116b2b5e22e8e4966dd3cf9ad7600b8de24190d6af429f260c0","lndltcPubKey":"0227ee37fbf2035be289206fa75
77b03ee9ea6e850953f3767af601dcb1d624087","addresses":[{"host":"35.196.118.79","port":8885}]}
10/20/2018, 8:11:07 PM [P2P] verbose: opened connection to 02b66438730d1fcdf4a4ae5d3d73e847a272f160fee2938e132b52cab0a0d9cfc6 at xud1.test.exchangeunion.com:8885
10/20/2018, 8:11:07 PM [P2P] verbose: received 0 orders from 02b66438730d1fcdf4a4ae5d3d73e847a272f160fee2938e132b52cab0a0d9cfc6
10/20/2018, 8:11:07 PM [P2P] verbose: received 3 nodes (1 new) from 02b66438730d1fcdf4a4ae5d3d73e847a272f160fee2938e132b52cab0a0d9cfc6
10/20/2018, 8:11:07 PM [P2P] debug: Connected pre-handshake to peer xud2.test.exchangeunion.com:8885
10/20/2018, 8:11:07 PM [P2P] verbose: received hello packet from xud2.test.exchangeunion.com:8885: {"version":"1.0.0-prealpha.4","pairs":["LTC/BTC","ZRX/GNT"],"nodePubKey":"028599d05b1
8c0c3f8028915a17d603416f7276c822b6b2d20e71a3502bd0f9e0a","lndbtcPubKey":"03d6747c9ff24aa8b025027e30556897543642910cbdec066d54f86841ab80966b","lndltcPubKey":"03df1ac68ffdcbc7e8ee6ac6496
0e6452da31079b108b228ec13b44fbfefd527c9","addresses":[{"host":"35.231.171.148","port":8885}]}
10/20/2018, 8:11:07 PM [P2P] verbose: opened connection to 028599d05b18c0c3f8028915a17d603416f7276c822b6b2d20e71a3502bd0f9e0a at xud2.test.exchangeunion.com:8885
10/20/2018, 8:11:07 PM [P2P] verbose: received 0 orders from 028599d05b18c0c3f8028915a17d603416f7276c822b6b2d20e71a3502bd0f9e0a
10/20/2018, 8:11:07 PM [P2P] verbose: received 3 nodes (1 new) from 028599d05b18c0c3f8028915a17d603416f7276c822b6b2d20e71a3502bd0f9e0a
10/20/2018, 8:11:07 PM [P2P] debug: Connected pre-handshake to peer xud3.test.exchangeunion.com:8885
10/20/2018, 8:11:07 PM [P2P] verbose: received hello packet from xud3.test.exchangeunion.com:8885: {"version":"1.0.0-prealpha.4","pairs":["LTC/BTC","ZRX/GNT"],"nodePubKey":"03fd337659e
99e628d0487e4f87acf93e353db06f754dccc402f2de1b857a319d0","lndbtcPubKey":"030c2ffd29a92e2dd2fb6fb046b0d9157e0eda8b11caa0e439d0dd6a46a444381c","lndltcPubKey":"026b4c77e44e602b93b3bcfee00
16beeb9063ec3a22795fb233a4f1a90c7b2ffd6","addresses":[{"host":"35.229.81.83","port":8885}]}
10/20/2018, 8:11:07 PM [P2P] verbose: opened connection to 03fd337659e99e628d0487e4f87acf93e353db06f754dccc402f2de1b857a319d0 at xud3.test.exchangeunion.com:8885
10/20/2018, 8:11:07 PM [P2P] info: Completed start-up connections to known peers.
10/20/2018, 8:11:07 PM [P2P] verbose: received 0 orders from 03fd337659e99e628d0487e4f87acf93e353db06f754dccc402f2de1b857a319d0
10/20/2018, 8:11:07 PM [P2P] verbose: received 3 nodes (1 new) from 03fd337659e99e628d0487e4f87acf93e353db06f754dccc402f2de1b857a319d0
sangaman added a commit that referenced this issue Oct 23, 2018
This commit properly schedules automatic retries to verify a connection
to lnd when the backing chain is out of sync. It also adds a separate
hardcoded delay for reconnecting due to chain being out of sync, it is
longer since syncing the chain typically takes longer to resolve than
other intermittent connection issues.

Fixes #593.
@ghost ghost assigned sangaman Oct 23, 2018
@ghost ghost added the in progress label Oct 23, 2018
@sangaman sangaman added bug Something isn't working lightning Lightning network & lnd integration labels Oct 23, 2018
@ghost ghost removed the in progress label Oct 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lightning Lightning network & lnd integration
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants