Skip to content

Swap fails at "Redeeming your XMR" #312

@murcem47

Description

@murcem47

Describe the bug
My swap was stuck at the "Redeeming your XMR" section for 3 hours.

I tried solving it with the ./swap command:

".\swap.exe --data-base-dir C:\Users\adam\AppData\Roaming\xmr-btc-swap\cli\mainnet monero-recovery --swap-id 684d2adb-df1a-42e3-8e34-f32e984db78c
←[2m2025-05-10T19:57:03.3423888Z←[0m ←[32m INFO←[0m Initialized tracing. General logs will be written to swap-all.log, and verbose logs to tracing*.log ←[3mlevel_filter←[0m←[2m=←[0minfo ←[3mlogs_dir←[0m←[2m=←[0mC:\Users\adam\AppData\Roaming\xmr-btc-swap\cli\mainnet\mainnet\logs
Error: No state in database for swap: 684d2adb-df1a-42e3-8e34-f32e984db78c"

But it didn't help. I tried to manually open the monero wallet .keys filed linked to the transaction in monero-wallet-gui, but the wallet was empty.

Whenever I try to resume the swap I get this message:

"The swap was stopped but it has not been completed yet. Check the logs below for more information. The current GUI state is BtcRedeemed. The current databbase state is btc is redeemed."

Lost/trapped Funds
Yes

Debug logs
{"timestamp":"2025-05-10T20:05:51.7878525Z","level":"DEBUG","fields":{"message":"Network layer initialized","peer_id":"12D3KooWRNhyCBmPG5xLucRAsmL57yzr1LodLV9GXbq71TonJjJV"},"target":"swap::cli::api::request","span":{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"},"spans":[{"swap_id":"684d2adb-df1a-42e3-8e34-f32e984db78c","name":"swap"},{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"}]}
{"timestamp":"2025-05-10T20:05:51.7889133Z","level":"DEBUG","fields":{"message":"Acquiring swap lock","swap_id":"684d2adb-df1a-42e3-8e34-f32e984db78c"},"target":"swap::cli::api","span":{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"},"spans":[{"swap_id":"684d2adb-df1a-42e3-8e34-f32e984db78c","name":"swap"},{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"}]}
{"timestamp":"2025-05-10T20:05:51.7894422Z","level":"DEBUG","fields":{"message":"Advancing state","state":"btc is redeemed"},"target":"swap::protocol::bob::swap","span":{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"},"spans":[{"swap_id":"684d2adb-df1a-42e3-8e34-f32e984db78c","name":"swap"},{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"}]}
{"timestamp":"2025-05-10T20:05:51.7897965Z","level":"INFO","fields":{"message":"Generating and opening Monero wallet from the extracted keys to redeem the Monero","wallet_file_name":"684d2adb-df1a-42e3-8e34-f32e984db78c"},"target":"swap::protocol::bob::state","span":{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"},"spans":[{"swap_id":"684d2adb-df1a-42e3-8e34-f32e984db78c","name":"swap"},{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"}]}
{"timestamp":"2025-05-10T20:05:52.2016489Z","level":"INFO","fields":{"message":"Connected to Alice","peer_id":"/dnsaddr/swapanarchy.cfd/p2p/12D3KooWMgGjeW7ErQxCQzaeHiXxJn42wegCPFepixEXfBJT1PNS"},"target":"swap::cli::event_loop","span":{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"},"spans":[{"swap_id":"684d2adb-df1a-42e3-8e34-f32e984db78c","name":"swap"},{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"}]}
{"timestamp":"2025-05-10T20:06:10.7370107Z","level":"DEBUG","fields":{"message":"Cannot create wallet because it already exists, loading instead","monero_wallet_name":"684d2adb-df1a-42e3-8e34-f32e984db78c"},"target":"swap::monero::wallet","span":{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"},"spans":[{"swap_id":"684d2adb-df1a-42e3-8e34-f32e984db78c","name":"swap"},{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"}]}
{"timestamp":"2025-05-10T20:06:12.0028469Z","level":"INFO","fields":{"message":"Syncing Monero wallet","name":"swap-tool-blockchain-monitoring-wallet","attempt":1},"target":"swap::monero::wallet","span":{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"},"spans":[{"swap_id":"684d2adb-df1a-42e3-8e34-f32e984db78c","name":"swap"},{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"}]}
{"timestamp":"2025-05-10T20:06:25.4965878Z","level":"INFO","fields":{"message":"Monero wallet synced","name":"swap-tool-blockchain-monitoring-wallet"},"target":"swap::monero::wallet","span":{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"},"spans":[{"swap_id":"684d2adb-df1a-42e3-8e34-f32e984db78c","name":"swap"},{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"}]}
{"timestamp":"2025-05-10T20:06:26.4157626Z","level":"ERROR","fields":{"message":"Failed to resume swap: Failed to redeem Monero: Failed to transfer Monero to destination address: JSON-RPC request failed with code -4: No unlocked balance in the specified account: JSON-RPC request failed with code -4: No unlocked balance in the specified account","swap_id":"684d2adb-df1a-42e3-8e34-f32e984db78c"},"target":"swap::cli::api::request","span":{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"},"spans":[{"swap_id":"684d2adb-df1a-42e3-8e34-f32e984db78c","name":"swap"},{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"}]}
{"timestamp":"2025-05-10T20:06:26.4158436Z","level":"DEBUG","fields":{"message":"Releasing swap lock","swap_id":"684d2adb-df1a-42e3-8e34-f32e984db78c"},"target":"swap::cli::api","span":{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"},"spans":[{"swap_id":"684d2adb-df1a-42e3-8e34-f32e984db78c","name":"swap"},{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"}]}
{"timestamp":"2025-05-10T20:08:38.6648544Z","level":"DEBUG","fields":{"message":"Network layer initialized","peer_id":"12D3KooWRNhyCBmPG5xLucRAsmL57yzr1LodLV9GXbq71TonJjJV"},"target":"swap::cli::api::request","span":{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"},"spans":[{"swap_id":"684d2adb-df1a-42e3-8e34-f32e984db78c","name":"swap"},{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"}]}
{"timestamp":"2025-05-10T20:08:38.6661678Z","level":"DEBUG","fields":{"message":"Acquiring swap lock","swap_id":"684d2adb-df1a-42e3-8e34-f32e984db78c"},"target":"swap::cli::api","span":{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"},"spans":[{"swap_id":"684d2adb-df1a-42e3-8e34-f32e984db78c","name":"swap"},{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"}]}
{"timestamp":"2025-05-10T20:08:38.6666909Z","level":"DEBUG","fields":{"message":"Advancing state","state":"btc is redeemed"},"target":"swap::protocol::bob::swap","span":{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"},"spans":[{"swap_id":"684d2adb-df1a-42e3-8e34-f32e984db78c","name":"swap"},{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"}]}
{"timestamp":"2025-05-10T20:08:38.6668762Z","level":"INFO","fields":{"message":"Generating and opening Monero wallet from the extracted keys to redeem the Monero","wallet_file_name":"684d2adb-df1a-42e3-8e34-f32e984db78c"},"target":"swap::protocol::bob::state","span":{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"},"spans":[{"swap_id":"684d2adb-df1a-42e3-8e34-f32e984db78c","name":"swap"},{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"}]}
{"timestamp":"2025-05-10T20:08:38.8065071Z","level":"DEBUG","fields":{"message":"Cannot create wallet because it already exists, loading instead","monero_wallet_name":"684d2adb-df1a-42e3-8e34-f32e984db78c"},"target":"swap::monero::wallet","span":{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"},"spans":[{"swap_id":"684d2adb-df1a-42e3-8e34-f32e984db78c","name":"swap"},{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"}]}
{"timestamp":"2025-05-10T20:08:39.1124412Z","level":"INFO","fields":{"message":"Connected to Alice","peer_id":"/dnsaddr/swapanarchy.cfd/p2p/12D3KooWMgGjeW7ErQxCQzaeHiXxJn42wegCPFepixEXfBJT1PNS"},"target":"swap::cli::event_loop","span":{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"},"spans":[{"swap_id":"684d2adb-df1a-42e3-8e34-f32e984db78c","name":"swap"},{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"}]}
{"timestamp":"2025-05-10T20:08:39.3350935Z","level":"INFO","fields":{"message":"Syncing Monero wallet","name":"swap-tool-blockchain-monitoring-wallet","attempt":1},"target":"swap::monero::wallet","span":{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"},"spans":[{"swap_id":"684d2adb-df1a-42e3-8e34-f32e984db78c","name":"swap"},{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"}]}
{"timestamp":"2025-05-10T20:09:05.1923759Z","level":"INFO","fields":{"message":"Monero wallet synced","name":"swap-tool-blockchain-monitoring-wallet"},"target":"swap::monero::wallet","span":{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"},"spans":[{"swap_id":"684d2adb-df1a-42e3-8e34-f32e984db78c","name":"swap"},{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"}]}
{"timestamp":"2025-05-10T20:09:08.1019878Z","level":"ERROR","fields":{"message":"Failed to resume swap: Failed to redeem Monero: Failed to transfer Monero to destination address: JSON-RPC request failed with code -4: No unlocked balance in the specified account: JSON-RPC request failed with code -4: No unlocked balance in the specified account","swap_id":"684d2adb-df1a-42e3-8e34-f32e984db78c"},"target":"swap::cli::api::request","span":{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"},"spans":[{"swap_id":"684d2adb-df1a-42e3-8e34-f32e984db78c","name":"swap"},{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"}]}
{"timestamp":"2025-05-10T20:09:08.1020655Z","level":"DEBUG","fields":{"message":"Releasing swap lock","swap_id":"684d2adb-df1a-42e3-8e34-f32e984db78c"},"target":"swap::cli::api","span":{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"},"spans":[{"swap_id":"684d2adb-df1a-42e3-8e34-f32e984db78c","name":"swap"},{"method":"resume_swap","resume":"ResumeSwapArgs { swap_id: 684d2adb-df1a-42e3-8e34-f32e984db78c }","name":"resume_swap"}]}

Platform (please complete the following information):

Windows 11
v1.0.0-rc.19

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions