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

`bash xud.sh` just returns without printing anything when no internet #564

Open kilrau opened 4 years ago

kilrau commented 4 years ago

Describe the bug bash xud.sh just returns without printing anything in case of temporary internet/connection troubles:

kilrau@K-Yoga:~/.xud-docker/testnet/data/boltz$ xud
kilrau@K-Yoga:~/.xud-docker/testnet/data/boltz$ xud
kilrau@K-Yoga:~/.xud-docker/testnet/data/boltz$ xud
1) Simnet
2) Testnet
3) Mainnet
Please choose the network: 

To Reproduce

  1. switch off internet
  2. bash xud.sh

Expected behavior It should enter one of these paths and print according error message https://github.com/ExchangeUnion/xud-docker/blob/master/xud.sh#L34

kilrau commented 4 years ago

The update check itself returns an appropriate error message:

kilrau@K-Yoga:~/.xud-docker/testnet/data/boltz$ xud
1) Simnet
2) Testnet
3) Mainnet
Please choose the network: 2
🚀 Launching testnet environment
🌍 Checking for updates...
❌ Error: Timeout error: Couldn't connect to Docker to check for updates. Please check your internet connection and https://status.docker.com/.. For more details, see /home/kilrau/.xud-docker/testnet/logs/testnet.log