ExchangeUnion / market-maker-bot

MM Bot for OpenDEX. Make profits via arbitrage between OpenDEX and a connected CEX account like Binance 🤖
GNU Affero General Public License v3.0
104 stars 20 forks source link

Could not establish connection to xud. Retrying in 5 seconds. #15

Closed kilrau closed 4 years ago

kilrau commented 4 years ago

I brought up a new simnet environment (containers running), but waited for several hours before I created the environment. Once everything was created and I received coins, arby couldn't connect to xud:

2020-06-15 08:38:41.4141 [OpenDEX] warn: Could not establish connection to xud. Retrying in 5 seconds.
2020-06-15 08:38:41.4141 [Centralized] trace: ETHBTC stream closed
2020-06-15 08:38:46.4646 [OpenDEX] warn: Could not establish connection to xud. Retrying in 5 seconds.
2020-06-15 08:38:46.4646 [Centralized] trace: ETHBTC stream closed
simnet > status
┌─────────┬──────────────────────────────────────────────────┐
│ SERVICE │ STATUS                                           │
├─────────┼──────────────────────────────────────────────────┤
│ lndbtc  │ Ready                                            │
├─────────┼──────────────────────────────────────────────────┤
│ lndltc  │ Ready                                            │
├─────────┼──────────────────────────────────────────────────┤
│ connext │ Ready                                            │
├─────────┼──────────────────────────────────────────────────┤
│ arby    │ Ready                                            │
├─────────┼──────────────────────────────────────────────────┤
│ xud     │ Ready                                            │
└─────────┴──────────────────────────────────────────────────┘

Then I restarted the whole environment and arby connected fine.

kilrau commented 4 years ago

Same happened when I started xud -b feat/arby on an existing testnet environment:

2020-06-15 12:12:58.5858 [OpenDEX] warn: Could not establish connection to xud. Retrying in 5 seconds.
2020-06-15 12:12:58.5858 [Centralized] trace: ETHBTC stream closed
kilrau commented 4 years ago

I think this one should be re-tested @raladev

raladev commented 4 years ago

got it today with 2816c11e87e732a833ab73452f3bbdeee49f9f4a commit. Same case, arby restart fixed the situation. Screenshot from 2020-06-19 18-07-05

Logs: utils_noarby_conn.log arby_noarby_conn.log xud_noarby_conn.log

erkarl commented 4 years ago

At this point I'm still not sure what's causing it. It seems to reproduce only in xud-docker environment. If you see it with the newer/latest version please attach full logs for arby container.

You should be able to get full logs for a docker container using: sudo vim $(docker inspect --format='{{.LogPath}}' simnet_arby_1)

raladev commented 4 years ago

got it with last commit. xud_log_stuck_1.log arbylog_no_conn.log

erkarl commented 4 years ago

Duplicate of https://github.com/ExchangeUnion/market-maker-tools/issues/57