Open Maith8Ae opened 3 years ago
Failed with this bug on Linux only.
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x6b9fb2]
goroutine 1 [running]:
github.com/opendexnetwork/opendex-launcher/core.(*Launcher).Start(0xc000024100, 0xc000000180, 0xc0000d3f78)
/home/runner/work/opendex-launcher/opendex-launcher/core/launcher.go:244 +0x92
main.main()
/home/runner/work/opendex-launcher/opendex-launcher/main.go:11 +0x2b
Ubuntu 20.04.2 unzip not found
Ubuntu 20.04.2 unzip not found
Fixed by using gunzip
on Linux.
Just ran this. Weirdly I don't get the
unzip not found
error today, just the shell exiting when I choose testnet:~$ export BRANCH=feat/interactive-setup ~$ sh -c "$(curl -sfL https://raw.githubusercontent.com/opendexnetwork/opendex-docker/feat/interactive-setup/opendex.sh)" Installing opendex-launcher v1.0.0-rc.5 ... https://github.com/opendexnetwork/opendex-launcher/releases/download/v1.0.0-rc.5/opendex-launcher-linux-amd64.zip 1) Testnet 2) Mainnet Please choose the network: 1 ~$
You could run export DEBUG=on
to print more debug messages. I guess it's becuase your GitHub access token is not set. It's required to run feature branch.
Probably related to this issue: https://github.com/opendexnetwork/opendex-launcher/issues/3
Ran this on testnet, basic setup is working đ
~$ export BRANCH=feat/interactive-setup
~$ sh -c "$(curl -sfL https://raw.githubusercontent.com/opendexnetwork/opendex-docker/feat/interactive-setup/opendex.sh)"
Installing opendex-launcher v1.0.0-rc.5 ...
https://github.com/opendexnetwork/opendex-launcher/releases/download/v1.0.0-rc.5/opendex-launcher-linux-amd64.zip
1) Testnet
2) Mainnet
Please choose the network: 1
đ Launching testnet environment
đ Checking for updates ...
đ Warming up ...
Syncing light clients:
âââââââââââŦââââââââââââââââââââââââââââââââââââââââââââââââââââ
â SERVICE â STATUS â
âââââââââââŧââââââââââââââââââââââââââââââââââââââââââââââââââââ¤
â lndbtc â Syncing 100.00% (1939978/1939978) â
âââââââââââŧââââââââââââââââââââââââââââââââââââââââââââââââââââ¤
â lndltc â Syncing 100.00% (1841256/1841256) â
âââââââââââ´ââââââââââââââââââââââââââââââââââââââââââââââââââââ
You are creating an opendex node key and underlying wallets. All will be secured by a single password provided below.
Enter a password:
Re-enter password:
----------------------BEGIN OpenDEX SEED---------------------
1. abandon 2. betray 3. tackle 4. twist
5. response 6. april 7. ball 8. clinic
9. virtual 10. never 11. deny 12. soup
13. sand 14. blind 15. device 16. invite
17. spray 18. bar 19. satoshi 20. copper
21. tiger 22. latin 23. hotel 24. put
-----------------------END OpenDEX SEED----------------------
Please write down your 24 word mnemonic. It will allow you to recover your OpenDEX node key and on-chain funds for the initialized wallets listed above should you forget your password or lose your device. Off-chain funds in channels can NOT be recovered with it and must be backed up and recovered separately. Keep it somewhere safe, it is your ONLY backup in case of data loss.
The following wallets were initialized: BTC, LTC, ETH
.___ __ .__
__| _/____ ___ ___ _____/ |_| |
/ __ |/ __ \\ \/ / _/ ___\ __\ |
/ /_/ \ ___/ > < \ \___| | | |__
\____ |\___ >__/\_ \ \___ >__| |____/
\/ \/ \/ \/
--------------------------------------------------------------
testnet >
Noticed these smaller issues:
exit
the shell, what's the best way to get in again? I ran sh -c "$(curl -sfL https://raw.githubusercontent.com/opendexnetwork/opendex-docker/feat/interactive-setup/opendex.sh)"
again, that the correct way? Anyhow, it brought up the light client sync status again which it shouldn't:
~$ sh -c "$(curl -sfL https://raw.githubusercontent.com/opendexnetwork/opendex-docker/feat/interactive-setup/opendex.sh)"
1) Testnet
2) Mainnet
Please choose the network: 1
đ Launching testnet environment
đ Checking for updates ...
đ Warming up ...
Syncing light clients: âââââââââââŦââââââââââââââââââââââââââââââââââââââââââââââââââââ â SERVICE â STATUS â âââââââââââŧâââââââââââââââââââââââââââââââââââââââââââââââââââ⤠â lndbtc â Ready â âââââââââââŧâââââââââââââââââââââââââââââââââââââââââââââââââââ⤠â lndltc â Ready â âââââââââââ´ââââââââââââââââââââââââââââââââââââââââââââââââââââ
.___ __ .__
__| _/____ ___ ___ _____/ |_| |
/ __ |/ __ \\ \/ / _/ ___\ __\ |
/ /_/ \ ___/ > < \ \___| | | |__
\____ |\___ >__/\_ \ \___ >__| |____/
\/ \/ \/ \/
testnet >
- [ ] `down` missing
testnet > down Not implemented yet!
- [x] the jump from `The following wallets were initialized: BTC, LTC, ETH` to entering the shell took several seconds, if this is expected and can't be changed, we should add sth like `Loading opendex shell`
- [x] let's change the grafiti from `dex ctl` to simply `OpenDEX`
Same when re-entering env, all I did was pressing 1
and Enter
:
~/.opendex-docker$ sh -c "$(curl -sfL https://raw.githubusercontent.com/opendexnetwork/opendex-docker/feat/interactive-setup/opendex.sh)"
1) Testnet
2) Mainnet
Please choose the network: 1
đ Launching testnet environment
đ Checking for updates ...
đ Warming up ...
Syncing light clients:
âââââââââââŦââââââââââââââââââââââââââââââââââââââââââââââââââââ
â SERVICE â STATUS â
âââââââââââŧââââââââââââââââââââââââââââââââââââââââââââââââââââ¤
â lndbtc â Syncing 100.00% (1940583/1940583) â
âââââââââââŧââââââââââââââââââââââââââââââââââââââââââââââââââââ¤
â lndltc â Syncing 100.00% (1843256/1843256) â
âââââââââââ´ââââââââââââââââââââââââââââââââââââââââââââââââââââ
đšī¸ Loading OpenDEX console ...
Do you want to create a new opendexd environment or restore an existing one?
1) Create New
2) Restore Existing
Please choose: 1
ERROR: type not a pointer: string
~/.opendex-docker
Other than that, when I exited and entered the env again, the OpenDEX console loaded, down
worked too đđž
1. Why is this pull request needed and what does it do?
This PR brings old xud-docker CLI interactive setup flow back.
Network selection
Update checking
Syncing indicator
Wallet setup question
Auto-unlock question
Backup setup question
The most familiar console
2. Which issues (if any) are related?
Close #7.
3. Which documentation changes (if any) need to be made?
https://opendex.network/docs/swap-providers#lets-roll
Single line bootstrap command
Remove simnet
4. Does this introduce a backward incompatible change or deprecation?
It may affects the old non-interactive setup flow.
5. How to test?
Todos
status
command missingInteractive update checking