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

feat: integrate with RaspiBlitz #750

Open
wants to merge 2 commits into
base: external-lnd
Choose a base branch
from
Open

feat: integrate with RaspiBlitz #750

wants to merge 2 commits into from

Conversation

reliveyy
Copy link
Collaborator

No description provided.

@reliveyy
Copy link
Collaborator Author

admin@raspberrypi:/opt/xud $ bash start.sh
🚀 Launching mainnet environment
🌍 Checking for updates...
- Container mainnet_xud_1: recreate
Recreating mainnet_xud_1 ... done
Starting mainnet_xud_1 ... done

🏃 Warming up...

Syncing light clients:
┌─────────┬─────────────────────────────────────────────────────┐
│ SERVICE │ STATUS                                              │
├─────────┼─────────────────────────────────────────────────────┤
│ lndltc  │ Syncing 100.00% (1933349/1933349)                   │
└─────────┴─────────────────────────────────────────────────────┘
XUD should not take so long to be ready. please check container "mainnet_xud_1" logs for more details.
Would you like to keep waiting? [Y/n]
Do you want to create a new xud environment or restore an existing one?
1) Create New
2) Restore Existing
Please choose: 1
You are creating an xud node key and underlying wallets. All will be secured by a single password provided below.

Enter a password:
Re-enter password:

Error: 14 UNAVAILABLE: lnd-BTC is Disconnected
💀 Failed to create wallets.

@kilrau
Copy link
Contributor

kilrau commented Oct 23, 2020

admin@raspberrypi:/opt/xud $ bash start.sh
🚀 Launching mainnet environment
🌍 Checking for updates...
- Container mainnet_xud_1: recreate
Recreating mainnet_xud_1 ... done
Starting mainnet_xud_1 ... done

🏃 Warming up...

Syncing light clients:
┌─────────┬─────────────────────────────────────────────────────┐
│ SERVICE │ STATUS                                              │
├─────────┼─────────────────────────────────────────────────────┤
│ lndltc  │ Syncing 100.00% (1933349/1933349)                   │
└─────────┴─────────────────────────────────────────────────────┘
XUD should not take so long to be ready. please check container "mainnet_xud_1" logs for more details.
Would you like to keep waiting? [Y/n]
Do you want to create a new xud environment or restore an existing one?
1) Create New
2) Restore Existing
Please choose: 1
You are creating an xud node key and underlying wallets. All will be secured by a single password provided below.

Enter a password:
Re-enter password:

Error: 14 UNAVAILABLE: lnd-BTC is Disconnected
💀 Failed to create wallets.

@sangaman

@reliveyy
Copy link
Collaborator Author

reliveyy commented Oct 23, 2020

Got issues running xud:latest__pi on feature branch mainnet. So I will switch xud version to latest in mainnet as a simple fix. And I will switch it back when this PR is ready to merge.

@reliveyy
Copy link
Collaborator Author

reliveyy commented Oct 26, 2020

I tried specifying --lndbtc.rpc-host as raspberrypi and adding 10.0.3.1 raspberrypi in mainnet_xud_1 container /etc/hosts. The disconnection issue was resolved. The DNS name raspberrypi is used in lndbtc tls.cert. So I can infer that the xud disconnects with lndbtc because of TLS certificate DNS name mismatch (10.0.3.1 != raspberrypi or localhost) @sangaman @kilrau @erkarl

@reliveyy
Copy link
Collaborator Author

lndltc exits because of "invalid seek"

[DEBUG] Enabling neutrino
Waiting for lnd-litecoin onion address...
Onion address for lnd-litecoin is ghdi6hu4zic5wi35lk5tx74dclwmc7euzqnhtgsqnqst7gxor4dpa4id.onion
2020-10-27 11:41:10.214 [INF] LTND: Version: 0.11.0-beta.rc1 commit=v0.11.0-beta.rc1, build=production, logging=default
2020-10-27 11:41:10.214 [INF] LTND: Active chain: Litecoin (network=mainnet)
2020-10-27 11:41:10.214 [INF] LTND: Opening the main database, this might take a few minutes...
2020-10-27 11:41:10.214 [INF] LTND: Opening bbolt database, sync_freelist=false
2020-10-27 11:41:10.220 [INF] CHDB: Checking for schema update: latest_version=17, db_version=17
2020-10-27 11:41:10.220 [INF] LTND: Database now open (time_to_open=5.908129ms)!
2020-10-27 11:41:10.580 [ERR] LTND: unable to initialize neutrino backend: unable to create neutrino light client: tor host is unreachable
2020-10-27 11:41:10.580 [INF] LTND: Shutdown complete
unable to initialize neutrino backend: unable to create neutrino light client: tor host is unreachable
Traceback (most recent call last):
  File "/usr/bin/supervisord", line 11, in <module>
    load_entry_point('supervisor==4.1.0', 'console_scripts', 'supervisord')()
  File "/usr/lib/python3.8/site-packages/supervisor/supervisord.py", line 358, in main
    go(options)
  File "/usr/lib/python3.8/site-packages/supervisor/supervisord.py", line 368, in go
    d.main()
  File "/usr/lib/python3.8/site-packages/supervisor/supervisord.py", line 76, in main
    self.run()
  File "/usr/lib/python3.8/site-packages/supervisor/supervisord.py", line 93, in run
    self.runforever()
  File "/usr/lib/python3.8/site-packages/supervisor/supervisord.py", line 244, in runforever
    self.reap()
  File "/usr/lib/python3.8/site-packages/supervisor/supervisord.py", line 280, in reap
    process.finish(pid, sts)
  File "/usr/lib/python3.8/site-packages/supervisor/process.py", line 520, in finish
    self.drain()
  File "/usr/lib/python3.8/site-packages/supervisor/process.py", line 86, in drain
    dispatcher.handle_read_event()
  File "/usr/lib/python3.8/site-packages/supervisor/dispatchers.py", line 270, in handle_read_event
    self.record_output()
  File "/usr/lib/python3.8/site-packages/supervisor/dispatchers.py", line 204, in record_output
    self._log(data)
  File "/usr/lib/python3.8/site-packages/supervisor/dispatchers.py", line 173, in _log
    self.childlog.info(data)
  File "/usr/lib/python3.8/site-packages/supervisor/loggers.py", line 327, in info
    self.log(LevelsByName.INFO, msg, **kw)
  File "/usr/lib/python3.8/site-packages/supervisor/loggers.py", line 345, in log
    handler.emit(record)
  File "/usr/lib/python3.8/site-packages/supervisor/loggers.py", line 227, in emit
    self.doRollover()
  File "/usr/lib/python3.8/site-packages/supervisor/loggers.py", line 264, in doRollover
    if not (self.stream.tell() >= self.maxBytes):
OSError: [Errno 29] Invalid seek

@kilrau
Copy link
Contributor

kilrau commented Oct 27, 2020

I think it has more to do with your connection:

2020-10-27 11:41:10.580 [ERR] LTND: unable to initialize neutrino backend: unable to create neutrino light client: tor host is unreachable
2020-10-27 11:41:10.580 [INF] LTND: Shutdown complete
unable to initialize neutrino backend: unable to create neutrino light client: tor host is unreachable

Can you get a stable connection on the pi? If not can you try disabling lndltc?

@kilrau kilrau self-requested a review October 27, 2020 17:05
@reliveyy
Copy link
Collaborator Author

reliveyy commented Oct 27, 2020

Can you get a stable connection on the pi? If not can you try disabling lndltc?

I fixed my network issue. But the broken lndltc won't recover until I delete data/lndltc and restart the container. Now everything is fine. @kilrau

@kilrau
Copy link
Contributor

kilrau commented Oct 27, 2020

Great! Can we get a new image for testing?

@kilrau kilrau added the P1 top priority label Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 top priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants