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

`asb` log spam: "Communication error", "New connection established", "Lost connection to peer"

Open icy-ux opened this issue 3 years ago • 5 comments

Describe the bug The asb log file is full of connection-established / lost-connection entries. This makes it hard to find the entries regarding ongoing swaps. The connection-related entries are not very useful for debugging purposes, anyway.

Lost/trapped Funds No

Debug logs

2021-12-08 01:56:19 ERROR Communication error: /comit/xmr/btc/bid-quote/1.0.0 failed because of an inbound timeout peer=QmTjWs3U3k5Z6DQMynZxtEu1C1anZfrA7wCxJzAq2PpHTq
2021-12-08 01:56:19 ERROR Communication error: /comit/xmr/btc/transfer_proof/1.0.0 failed because of an inbound timeout peer=QmTjWs3U3k5Z6DQMynZxtEu1C1anZfrA7wCxJzAq2PpHTq
2021-12-08 01:56:19 ERROR Communication error: /comit/xmr/btc/encrypted_signature/1.0.0 failed because of an inbound timeout peer=QmTjWs3U3k5Z6DQMynZxtEu1C1anZfrA7wCxJzAq2PpHTq
2021-12-08 01:56:21 DEBUG Lost connection to peer: Connection error: I/O error: unexpected end of file peer=QmTjWs3U3k5Z6DQMynZxtEu1C1anZfrA7wCxJzAq2PpHTq address=/ip4/103.155.92.142/tcp/54490
2021-12-08 01:56:32 DEBUG New connection established peer=QmTjWs3U3k5Z6DQMynZxtEu1C1anZfrA7wCxJzAq2PpHTq address=/ip4/103.155.92.142/tcp/56216
2021-12-08 01:56:41 DEBUG Lost connection to peer: Connection error: I/O error: unexpected end of file peer=QmTjWs3U3k5Z6DQMynZxtEu1C1anZfrA7wCxJzAq2PpHT

Platform (please complete the following information):

  • ASB
  • Software Version 0.9.0
  • Operating System: Debian

icy-ux avatar Dec 08 '21 17:12 icy-ux

Suggested fix: make connection-related logging optional and opt-in, probably enabled by a command line argument or environment variable.

icy-ux avatar Dec 08 '21 17:12 icy-ux

This seems to be resolved by switching to a private (locally hosted) electrs instance. I don't understand why it helped, but it did -- the log is now no longer full of these messages.

icy-ux avatar Dec 10 '21 21:12 icy-ux

Never mind. The messages have resumed, using a local electrum server didn't help.

icy-ux avatar Dec 11 '21 15:12 icy-ux

This is our backend (https://unstoppableswap.net/) retrieving the latest BidQuote from your server.

See: https://github.com/comit-network/xmr-btc-swap/issues/827

binarybaron avatar Dec 12 '21 17:12 binarybaron

Thanks for clarifying. If the unstoppableswap.net backend can't make its queries in a more silent way, I would still love to see a way to turn the notifications off on my end.

On Sun, Dec 12, 2021 at 09:40:54AM -0800, binarybaron wrote:

This is our backend (https://unstoppableswap.net/) retrieving the latest BidQuote from your server.

See: https://github.com/comit-network/xmr-btc-swap/issues/827

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/comit-network/xmr-btc-swap/issues/862#issuecomment-991939822

icy-ux avatar Dec 15 '21 17:12 icy-ux