-
Notifications
You must be signed in to change notification settings - Fork 82
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
[0.3 XMR] monero-wallet-rpc
failed to fetch transaction while doing a transaction
#1061
Comments
Did you try restarting |
Same issue here. How do I restart monero-wallet-rpc? Please help, I got my funds locked. |
swap cli spawns its own monero-wallet-rpc, so I think you'll have to copy your swap-id, cancel your swap process with ctrl+c, and then run |
After running |
Which version of swap cli are you running? Please also try adding the |
Add the jsonrpc error message and data to tracing calls to try debug comit-network#1061 "monero-wallet-rpc failed to fetch transaction"
I'm adding some debug info in #1088 so once that is merged you can try the preview build and we can hopefully figure out what's happening in the wallet rpc call |
Add the jsonrpc error message and data to tracing calls to try debug comit-network#1061 "monero-wallet-rpc failed to fetch transaction"
swap version: 0.10.2
...and so on. |
@jxadl please try the new preview build which should provide an error message from the wallet rpc https://github.com/comit-network/xmr-btc-swap/releases/tag/preview |
Had the same issue. Updating swap.exe to the preview release mentioned by @delta1 fixed this issue. |
Thanks @allconnected so you didn’t see the same error message at all? Will be doing a new release soon 👌 |
@delta1 I did see the same error message. If you mean this one: |
just got the monero-wallet-rpc message for the first time |
... and then what happened? |
Spotted this too, with error message |
Basically it just keeps sending the message about the error and it doesn't progress on sending messages about locks in ALICE. This also happened to me with @binarybaron asb IMPORTANT NOTE: the btc got punished, even before the 72 confirmations |
The error message above Will confirm this once #1081 is complete |
The cause is the swap cli using an older version of the wallet-rpc. Manual fix: replace with latest monero-wallet-rpc executable (at least v0.18.0) in the swap/monero folder (on linux this is Upcoming fix in new release after #1100: remove the above folder and swap will download the newer binary |
@delta1 This issue still seems to persist on the asb side in some cases. See the logs below for an example. Restarting the asb seems to fix the issue. Maybe we need to wait for some time for the daemon to properly register the newly submitted transaction? mainnet_asb | 2022-12-28T15:51:17.320455736Z DEBUG ask_price=0.0095689 BTC xmr=2.000000000000 XMR max_bitcoin_for_monero=0.01913764 BTC
mainnet_asb | 2022-12-28T15:51:17.593121474Z DEBUG Estimated fee for transaction weight=548 fee_rate=23.154 sats_per_vbyte=3172.0980
mainnet_asb | 2022-12-28T15:51:17.629852128Z DEBUG Estimated fee for transaction weight=548 fee_rate=23.154 sats_per_vbyte=3172.0980
mainnet_asb | 2022-12-28T15:51:18.626422959Z INFO swap{id=a1dcde29-7b57-46d0-9b4f-c37d48279c74}: Advancing state state=started rate=0.0095689
BTC
mainnet_asb | 2022-12-28T15:52:24.094491185Z DEBUG Got notification for new block block_height=769278
mainnet_asb | 2022-12-28T15:52:25.364037503Z DEBUG Bitcoin transaction status changed txid=d3495246e5c4c7a76b1f1c9f05f24c1a1b0f1e6f5c70b7e7a5fb1288ef951bb6
new_status=in mempool old_status=unseen
mainnet_asb | 2022-12-28T15:52:25.463475796Z INFO swap{id=a1dcde29-7b57-46d0-9b4f-c37d48279c74}: Advancing state state=bitcoin lock
transaction in mempool rate=0.0095667 BTC
mainnet_asb | 2022-12-28T15:52:25.508002233Z INFO swap{id=a1dcde29-7b57-46d0-9b4f-c37d48279c74}: Waiting for Bitcoin transaction finality txid=d3495246e5c4c7a76b1f1c9f05f24c1a1b0f1e6f5c70b7e7a5fb1288ef951bb6 required_confirmation=1
mainnet_asb | 2022-12-28T15:59:25.880809931Z DEBUG Got notification for new block block_height=769279
mainnet_asb | 2022-12-28T15:59:26.340546788Z DEBUG Bitcoin transaction status changed txid=d3495246e5c4c7a76b1f1c9f05f24c1a1b0f1e6f5c70b7e7a5fb1288ef951bb6
new_status=confirmed with 1 blocks old_status=in mempool
mainnet_asb | 2022-12-28T15:59:26.34094725Z INFO swap{id=a1dcde29-7b57-46d0-9b4f-c37d48279c74}: Waiting for Bitcoin transaction finality txid=d3495246e5c4c7a76b1f1c9f05f24c1a1b0f1e6f5c70b7e7a5fb1288ef951bb6 seen_confirmations=1 needed_confirmations=1
mainnet_asb | 2022-12-28T15:59:26.405621859Z INFO swap{id=a1dcde29-7b57-46d0-9b4f-c37d48279c74}: Advancing state state=btc
is locked rate=0.0095744 BTC
mainnet_asb | 2022-12-28T16:01:23.424243788Z DEBUG New connection established peer=12D3KooWAXG7aigLEQPWg3x8gTNxco3i6Czb8q5Dk274GeYSwcTb address=/ip4/*****/tcp/7271
mainnet_asb | 2022-12-28T16:02:26.028763082Z DEBUG swap{id=a1dcde29-7b57-46d0-9b4f-c37d48279c74}: Successfully initiated Monero transfer amount=0.156768280575 XMR to=6c0a200ce9a7b22626f1ad31fd65d2be308a69020373ae19b3f6ec6f3df3b107 tx_id=e2f39fddc9ddd48eec0186596ab5da37619cc2db2436e35d0b0135793dfc2cdc
mainnet_asb | 2022-12-28T16:02:26.179117594Z INFO swap{id=a1dcde29-7b57-46d0-9b4f-c37d48279c74}: Advancing state state=xmr
lock transaction sent rate=0.0095744 BTC
mainnet_asb | 2022-12-28T16:02:26.190760252Z INFO swap{id=a1dcde29-7b57-46d0-9b4f-c37d48279c74}: Waiting for Monero transaction finality txid=e2f39fddc9ddd48eec0186596ab5da37619cc2db2436e35d0b0135793dfc2cdc target_confirmations=1
mainnet_asb | 2022-12-28T16:02:27.279412818Z DEBUG Got notification for new block block_height=769280
mainnet_asb | 2022-12-28T16:02:29.280340479Z DEBUG Bitcoin transaction status changed txid=d3495246e5c4c7a76b1f1c9f05f24c1a1b0f1e6f5c70b7e7a5fb1288ef951bb6
new_status=confirmed with 2 blocks old_status=confirmed with 1 blocks
mainnet_asb | 2022-12-28T16:02:29.289945671Z DEBUG swap{id=a1dcde29-7b57-46d0-9b4f-c37d48279c74}: Failed to get transaction
from daemon data=None
mainnet_asb | 2022-12-28T16:02:29.300652822Z WARN swap{id=a1dcde29-7b57-46d0-9b4f-c37d48279c74}: `monero-wallet-rpc` failed
to fetch transaction, may need to be restarted txid=e2f39fddc9ddd48eec0186596ab5da37619cc2db2436e35d0b0135793dfc2cdc Failed
to get transaction from daemon
mainnet_asb | 2022-12-28T16:05:58.173500067Z DEBUG New connection established peer=12D3KooWAXG7aigLEQPWg3x8gTNxco3i6Czb8q5Dk274GeYSwcTb address=/ip4/*****/tcp/7317
mainnet_asb | 2022-12-28T16:06:26.205792789Z INFO swap{id=a1dcde29-7b57-46d0-9b4f-c37d48279c74}: Received new confirmation
for Monero lock tx txid=e2f39fddc9ddd48eec0186596ab5da37619cc2db2436e35d0b0135793dfc2cdc seen_confirmations=1 needed_confirmations=1
mainnet_asb | 2022-12-28T16:06:26.258378323Z INFO swap{id=a1dcde29-7b57-46d0-9b4f-c37d48279c74}: Advancing state state=xmr
is locked rate=0.0095744 BTC
mainnet_asb | 2022-12-28T16:06:26.330679741Z DEBUG Bob acknowledged transfer proof peer=12D3KooWAXG7aigLEQPWg3x8gTNxco3i6Czb8q5Dk274GeYSwcTb
mainnet_asb | 2022-12-28T16:06:26.34248353Z INFO swap{id=a1dcde29-7b57-46d0-9b4f-c37d48279c74}: Advancing state state=xmr lock transfer proof
sent rate=0.0095744 BTC
mainnet_asb | 2022-12-28T16:06:44.163944231Z DEBUG New connection established peer=QmSu99WA5QWjQfG2k83mLXSkb8tpSxDN3k4dQD61TKtVLT address=/ip4/*****/tcp/59878
mainnet_asb | 2022-12-28T16:06:44.248948607Z DEBUG ask_price=0.0095744 BTC xmr=1.843201079425 XMR max_bitcoin_for_monero=0.01764739 BTC
mainnet_asb | 2022-12-28T16:06:53.944871949Z DEBUG Lost connection to peer: Connection error: I/O error: unexpected end of file peer=QmSu99WA5QWjQfG2k83mLXSkb8tpSxDN3k4dQD61TKtVLT address=/ip4/*****/tcp/59878
mainnet_asb | 2022-12-28T16:06:58.018123572Z INFO Initialized tracing level=debug
mainnet_asb | 2022-12-28T16:06:58.018289806Z INFO Reading config file path=/asb-data/config_mainnet.toml
mainnet_asb | 2022-12-28T16:06:58.031460118Z DEBUG Using existing sqlite database.
mainnet_asb | 2022-12-28T16:06:58.058622574Z DEBUG Reading in seed from /asb-data/seed.pem
mainnet_asb | 2022-12-28T16:06:58.058875891Z DEBUG Opening Bitcoin wallet
mainnet_asb | 2022-12-28T16:07:11.123615943Z DEBUG Opening Monero wallet
mainnet_asb | 2022-12-28T16:07:13.920431258Z DEBUG Opened Monero wallet monero_wallet_name=asb-wallet
mainnet_asb | 2022-12-28T16:07:13.922669647Z INFO Initialized Bitcoin wallet bitcoin_balance=0 BTC
mainnet_asb | 2022-12-28T16:07:13.923280102Z INFO Initialized Monero wallet monero_balance=***** XMR
mainnet_asb | 2022-12-28T16:07:13.924969327Z WARN Tor not found. Running on clear net
mainnet_asb | 2022-12-28T16:07:13.935728896Z INFO Network layer initialized peer_id=12D3KooWMiriru5viqde3BMFLTqPur8Yrjpp4ULFc76ubQLfuYYX
mainnet_asb | 2022-12-28T16:07:13.937918033Z DEBUG Connected to Kraken websocket API
mainnet_asb | 2022-12-28T16:07:13.937955724Z DEBUG Subscribed to updates for ticker
mainnet_asb | 2022-12-28T16:07:13.952175023Z INFO Resuming swap swap_id=a1dcde29-7b57-46d0-9b4f-c37d48279c74
mainnet_asb | 2022-12-28T16:07:13.953045696Z INFO New listen address reported address=/ip4/127.0.0.1/tcp/9940/ws
mainnet_asb | 2022-12-28T16:07:13.953074066Z INFO swap{id=a1dcde29-7b57-46d0-9b4f-c37d48279c74}: Advancing state state=xmr
lock transfer proof sent rate=0.0095744 BTC |
monero-wallet-rpc
failed to fetch transaction while doing a transactionmonero-wallet-rpc
failed to fetch transaction while doing a transaction
We use bounties to incentivize development and reward contributors. All issues available for a bounty have the To receive the bounty of this issue, you agree to these conditions:
|
Seeing this issue with There is already a workaround for a related issue when this crops up from the taker/swap tool side. For I am currently waiting on |
Refreshing the wallet with |
Resolved this problem after considerable troubleshooting in #1273 . Summary of the solution
This does not appear to be an issue which can be directly fixed by code changes to |
@binarybaron Not sure if this qualifies for the bounty, I'll let you decide. |
Hey, thanks for the write up. I'm 100% sure I'm not on an old version of monero-wallet-rpc (v0.18.1.2). My daemon is fully synced and the RPC is functional. I don't think this issue is related to an incompatible version (or at least not entirely). I'm experiencing this issue for (almost) all swaps but it's not preventing them from being successful. I think the asb fails to fetch the transaction immediately after publishing it but when it retries some time later, it is able to proceed with the swap. |
@binarybaron Checking twice may do the trick. As I observed while getting this fixed:
In the logs, this manifested as follows. I will present entries from the
What we see is:
This is perfectly consistent with what you report: the first time The obvious solution would be to find the code path which is producing the error, and then insert a retry (after 1000ms?) before entering an error condition. |
@binarybaron try #1277 and see if that fixes it for you |
related: monero-project/monero#2875 (comment) |
I don't think the |
Not sure quite what's going on here, but when doing a normal transaction, I'm seeing
And the monero wallet rpc message keeps repeating.
The text was updated successfully, but these errors were encountered: