Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swap failed with an error and couldn't be resumed #1267

Closed
elimohl opened this issue Jan 8, 2023 · 6 comments
Closed

Swap failed with an error and couldn't be resumed #1267

elimohl opened this issue Jan 8, 2023 · 6 comments

Comments

@elimohl
Copy link

elimohl commented Jan 8, 2023

Describe the bug
I tried to buy some xmr. After I had sent bitcoins I got an error

Error: Failed to complete swap

Caused by:
    0: Failed to deserialize bytes into message using CBOR
    1: EOF while parsing a value

I tried to resume the swap with target/debug/swap resume --swap-id <swap-id> but got Error: No state in database for swap: <swap-id>. The history option doesn't show this swap either.

Lost/trapped Funds
No

Debug logs

{"timestamp":"2023-01-08T12:37:33.285504Z","level":"INFO","fields":{"message":"Logging initialized to /home/user/.local/share/xmr-btc-swap/cli/mainnet/logs"}}
{"timestamp":"2023-01-08T12:37:33.285804Z","level":"DEBUG","fields":{"message":"Using existing sqlite database."}}
{"timestamp":"2023-01-08T12:37:33.289256Z","level":"DEBUG","fields":{"message":"Reading in seed from /home/user/.local/share/xmr-btc-swap/cli/mainnet/seed.pem"}}
{"timestamp":"2023-01-08T12:37:39.632875Z","level":"DEBUG","fields":{"message":"RPC exec path: /home/user/.local/share/xmr-btc-swap/cli/mainnet/monero/monero-wallet-rpc"}}
{"timestamp":"2023-01-08T12:37:40.647169Z","level":"DEBUG","fields":{"message":"RPC version output: Monero 'Fluorine Fermi' (v0.18.1.2-release)\n"}}
{"timestamp":"2023-01-08T12:37:40.647798Z","level":"DEBUG","fields":{"message":"Starting monero-wallet-rpc","port":"46005"}}
{"timestamp":"2023-01-08T12:37:45.039926Z","level":"DEBUG","fields":{"message":"Opened Monero wallet","monero_wallet_name":"swap-tool-blockchain-monitoring-wallet"}}
{"timestamp":"2023-01-08T12:42:50.837456Z","level":"DEBUG","fields":{"message":"Network layer initialized","peer_id":"<peer_id>"}}
{"timestamp":"2023-01-08T12:42:50.837989Z","level":"DEBUG","fields":{"message":"Requesting quote"}}
{"timestamp":"2023-01-08T12:42:58.764093Z","level":"INFO","fields":{"message":"Connected to Alice at /dnsaddr/xmrswap.me/p2p/12D3KooWEKJYMDstzF4i8V4LqH8xfUYRQv4p6uyA3uisKp4HaQtP"}}
{"timestamp":"2023-01-08T12:42:59.063556Z","level":"INFO","fields":{"message":"Received quote","price":"0.00970178 BTC","minimum_amount":"0.0002 BTC","maximum_amount":"0.004 BTC"}}
{"timestamp":"2023-01-08T12:43:02.358615Z","level":"DEBUG","fields":{"message":"Estimated fee for transaction","weight":"485","fee_rate":"1.5969999","sats_per_vbyte":"193.636237875"}}
{"timestamp":"2023-01-08T12:43:02.358866Z","level":"WARN","fields":{"message":"Estimated fee of 193.636237875 is smaller than the min relay fee, defaulting to min relay fee 1000"}}
{"timestamp":"2023-01-08T12:43:02.359130Z","level":"INFO","fields":{"message":"Deposit at least 0.00021 BTC to cover the min quantity with fee!"}}
{"timestamp":"2023-01-08T12:43:02.359291Z","level":"INFO","fields":{"message":"Waiting for Bitcoin deposit","deposit_address":"<address>","min_deposit":"0.00021 BTC","max_giveable":"0 BTC","minimum_amount":"0.0002 BTC","maximum_amount":"0.004 BTC"}}
{"timestamp":"2023-01-08T12:44:35.160120Z","level":"INFO","fields":{"message":"Received Bitcoin","new_balance":"0.004 BTC","max_giveable":"0.00399804 BTC"}}
{"timestamp":"2023-01-08T12:44:35.161152Z","level":"INFO","fields":{"message":"Determined swap amount","amount":"0.00399804 BTC","fees":"0.00000196 BTC"}}
{"timestamp":"2023-01-08T12:44:35.180119Z","level":"DEBUG","fields":{"message":"Advancing state","state":"quote has been requested"}}
{"timestamp":"2023-01-08T12:44:36.079071Z","level":"DEBUG","fields":{"message":"Estimated fee for transaction","weight":"548","fee_rate":"1.5969999","sats_per_vbyte":"218.78898630"}}
{"timestamp":"2023-01-08T12:44:36.079326Z","level":"WARN","fields":{"message":"Estimated fee of 218.78898630 is smaller than the min relay fee, defaulting to min relay fee 1000"}}
{"timestamp":"2023-01-08T12:44:36.288371Z","level":"DEBUG","fields":{"message":"Estimated fee for transaction","weight":"596","fee_rate":"1.5969999","sats_per_vbyte":"237.95298510"}}
{"timestamp":"2023-01-08T12:44:36.288773Z","level":"WARN","fields":{"message":"Estimated fee of 237.95298510 is smaller than the min relay fee, defaulting to min relay fee 1000"}}
{"timestamp":"2023-01-08T13:17:36.330597Z","level":"INFO","fields":{"message":"Logging initialized to /home/user/.local/share/xmr-btc-swap/cli/mainnet/logs"}}
{"timestamp":"2023-01-08T13:17:36.330896Z","level":"DEBUG","fields":{"message":"Using existing sqlite database."}}
{"timestamp":"2023-01-08T13:17:36.334787Z","level":"DEBUG","fields":{"message":"Reading in seed from /home/user/.local/share/xmr-btc-swap/cli/mainnet/seed.pem"}}
{"timestamp":"2023-01-08T13:17:40.896552Z","level":"DEBUG","fields":{"message":"RPC exec path: /home/user/.local/share/xmr-btc-swap/cli/mainnet/monero/monero-wallet-rpc"}}
{"timestamp":"2023-01-08T13:17:41.911542Z","level":"DEBUG","fields":{"message":"RPC version output: Monero 'Fluorine Fermi' (v0.18.1.2-release)\n"}}
{"timestamp":"2023-01-08T13:17:41.911995Z","level":"DEBUG","fields":{"message":"Starting monero-wallet-rpc","port":"44749"}}
{"timestamp":"2023-01-08T13:17:47.604862Z","level":"DEBUG","fields":{"message":"Opened Monero wallet","monero_wallet_name":"swap-tool-blockchain-monitoring-wallet"}}
{"timestamp":"2023-01-08T13:23:11.194909Z","level":"DEBUG","fields":{"message":"Network layer initialized","peer_id":"<peer_id>"}}

Platform (please complete the following information):

  • CLI
  • Software Version 19f3d32
  • Operating System: Debian
@delta1
Copy link
Collaborator

delta1 commented Jan 8, 2023

Possibly related to #1184

Is that commit you linked from before 0.12.0 ?

Which provider are you swapping against?

@elimohl
Copy link
Author

elimohl commented Jan 8, 2023

@delta1 yes, it one commit before 0.12.0. Provider is /dnsaddr/xmrswap.me/p2p/12D3KooWEKJYMDstzF4i8V4LqH8xfUYRQv4p6uyA3uisKp4HaQtP

@delta1
Copy link
Collaborator

delta1 commented Jan 9, 2023

Please try with 0.12 or the latest preview @elimohl

@elimohl
Copy link
Author

elimohl commented Jan 10, 2023

@delta1 same problem with 0.12.1

@delta1
Copy link
Collaborator

delta1 commented Jan 11, 2023

@elimohl if there is no swap to resume then it was never initiated, please try running swap balance and swap withdraw-btc

@binarybaron
Copy link
Collaborator

xmrswap.me has not updated to the latest version (they are running 0.11.1). Please swap with another provider.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@delta1 @elimohl @binarybaron and others