xmr-btc-swap icon indicating copy to clipboard operation
xmr-btc-swap copied to clipboard

list-sellers hangs, no debug information available

Open martinoshub opened this issue 2 years ago • 4 comments

Describe the bug Unable to list sellers at any rendezvous point: the software either hangs or returns an empty list.

  • It hangs when I provide it something it can start out on. Example: /dnsaddr/rendezvous.coblox.tech/p2p/12D3KooWQUt9DkNZxEn2R5ymJzWj15MpG6mTW84kyd8vDaRZi46o

  • It displays an empty list if I provide it an incorrect rendezvous point on purpose.

  • It displays an empty list if I provide it a bad ID in the rendezvous point, no errors or warnings (this could be by design, but it doesn't help debug issues)

  • The only outputs I could get out of it were: 1) an empty list 2) no output at all, just the software hanging until I ctrl+c.

Example of commands tried and their outputs

./swap --debug --testnet list-sellers --rendezvous-point /dnsaddr/rendezvous.coblox.tech/p2p/12D3KooWQUt9DkNZxEn2R5ymJzWj15MpG6mTW84kyd8vDaRZi46o

-> Result: hangs, doesn't display anything, doesn't create any logfiles - if TOR is used and I watch the socks5 traffic, I can see it communicating for a while, but then stopping

./swap --debug list-sellers --rendezvous-point /dnsaddr/rendezvous.coblox.tech/p2p/12D3KooWQUt9DkNZxEn2R5ymJzWj15MpG6mTW84kyd8vDaRZi46o

-> Result: hangs, doesn't display anything, doesn't create any logfiles - if TOR is used and I watch the socks5 traffic, I can see it communicating for a while, but then stopping

./swap --debug list-sellers --rendezvous-point /ip4/1.2.3.4/tcp/9939 /p2p/12D3KooWAPci3x4GuWDi9P86efnR1q9a7phKnPwnwQcRNMW2HDUy (incorrect IP on purpose)

-> Result: waits around for ~10 seconds, then displays this: +-------+--------------+--------------+--------+---------+ | PRICE | MIN_QUANTITY | MAX_QUANTITY | STATUS | ADDRESS | +========================================================+ +-------+--------------+--------------+--------+---------+

./swap --debug list-sellers --rendezvous-point /dnsaddr/battery.commitcri.me/p2p/A_BAD_ID

-> Result: returns instantly this empty list again: +-------+--------------+--------------+--------+---------+ | PRICE | MIN_QUANTITY | MAX_QUANTITY | STATUS | ADDRESS | +========================================================+ +-------+--------------+--------------+--------+---------+

./swap list-sellers --rendezvous-point /dns4/rendezvous.xmr.radio/tcp/8888/p2p/12D3KooWN3n2MioS515ek6LoUBNwFKxtG2ribRpFkVwJufSr7ro7

+-------+--------------+--------------+--------+---------+ | PRICE | MIN_QUANTITY | MAX_QUANTITY | STATUS | ADDRESS | +========================================================+ +-------+--------------+--------------+--------+---------+

./swap list-sellers --rendezvous-point /dns4/eratosthen.es/tcp/7798/p2p/12D3KooWAh7EXXa2ZyegzLGdjvj1W4G3EXrTGrf6trraoT1MEobs

+-------+--------------+--------------+--------+---------+ | PRICE | MIN_QUANTITY | MAX_QUANTITY | STATUS | ADDRESS | +========================================================+ +-------+--------------+--------------+--------+---------+

./swap list-sellers --rendezvous-point /dnsaddr/discover.unstoppableswap.net/p2p/12D3KooWA6cnqJpVnreBVnoro8midDL9Lpzmg8oJPoAGi7YYaamE

+-------+--------------+--------------+--------+---------+ | PRICE | MIN_QUANTITY | MAX_QUANTITY | STATUS | ADDRESS | +========================================================+ +-------+--------------+--------------+--------+---------+

It looks like when it can't do the first basic steps, it returns an empty list (rather than displaying a more specific error, which would be nice). When it is able to proceed, it gets stuck in the process somewhere.

This happens with or without TOR. Tried it without TOR, giving it full internet access and DNS. --debug doesn't offer any debug information. No debug files found in ~/.local/share/xmr-btc-swap/logs (only cli directory, contains mainnet/testneet, seed.pem).

Lost/trapped Funds No

Debug logs Unfortunately, none were created, despite using --debug. $ ls -a .local/share/xmr-btc-swap/ .local/share/xmr-btc-swap/cli .local/share/xmr-btc-swap/cli/mainnet .local/share/xmr-btc-swap/cli/testnet .local/share/xmr-btc-swap/: . .. cli .local/share/xmr-btc-swap/cli: . .. mainnet testnet .local/share/xmr-btc-swap/cli/mainnet: . .. seed.pem .local/share/xmr-btc-swap/cli/testnet: . .. seed.pem

Platform (please complete the following information):

  • CLI, release binary
  • 0.10.2
  • Debian

I've also tried 3 different DNS servers, including 1.1.1.1.

Apologies in advance if I missed something basic in the docs. I would just love to get this working.

martinoshub avatar Apr 09 '22 11:04 martinoshub

Thanks for the report, will look into it

delta1 avatar Apr 09 '22 13:04 delta1

Seeing the same issue. ./swap list-sellers --rendezvous-point /ip4/45.138.50.29/tcp/9939/p2p/12D3KooWMgGjeW7ErQxCQzaeHiXxJn42wegCPFepixEXfBJT1PNS

hangs and shows no output

outhud avatar Jun 14 '22 10:06 outhud

Hi please try the latest release 0.11.0 it has numerous fixes

delta1 avatar Aug 12 '22 06:08 delta1

I have the same issue. I tried both on 0.11.1 and master Happens on both testnet and mainnet, from local asb or the ones listed in https://unstoppableswap.net/. The only debug log I get is this:

2022-11-23T19:50:02.659136362Z  INFO Connected to rendezvous point, discovering nodes in 'xmr-btc-swap-testnet' namespace ...
2022-11-23T19:50:13.15609379Z DEBUG Inbound failure when communicating with rendezvous node: Timeout while receiving request or sending response peer=12D3KooWBxK5c2V5c5LPvxENoHatpwc2RD4o3w31b9EoJkubL6s3

yamabiiko avatar Nov 23 '22 19:11 yamabiiko