You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 23, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 23, 2026. It is now read-only.
asb fails to watch Monero lock transaction properly unless monero-wallet-rpc and asb are restarted #652
I have now run into this twice, and wanted to be sure to open an issue as it seems to be a persistent issue.
For some swaps (2/10 for me, so far) the Monero lock transaction details are not properly gathered/watched by the asb with the following logs:
asb:
DEBUG swap{id=REDACTED}: Failed to retrieve tx from blockchain: JSON-RPC request failed with code -1: Failed to get transaction from daemon: JSON-RPC request failed with code -1: Failed to get transaction from daemon txid=REDACTED
You cannot restart monero-wallet-rpc without also restarting asb, as the asb tool cannot properly load the wallet file when running.
The transaction gets sent despite the bug, just does not get seen and so the swap hangs until you restart the ASB.
Restarting the ASB so far seems to resolve almost all issues, but there may be some work that can be done to recover without restarting the service, but not sure here.
That is an error message from monero-wallet-rpc. Some quick web searching reveals that this just happens occasionally. I don't think there is anything we can do to fix this on our side.
To confirm that: Were you able to fix this issue by just restarting the ASB? Or did you restart monero-wallet-rpc as well?
What we can do is what I suggested above: Make it possible to restart monero-wallet-rpc without having to restart the ASB.
I don't know how exactly you are operating your daemons but as a general approach, I think you will need some kind of monitoring that alerts you of issues like this. In this particular case, you would have to monitor the number of errors being logged in the monero-wallet-rpc daemon's log. As a result of too many errors, you could implemented an automated restart strategy. With the linked PR, the ASB should play nicely with such a behaviour now.
I don't know how exactly you are operating your daemons but as a general approach, I think you will need some kind of monitoring that alerts you of issues like this. In this particular case, you would have to monitor the number of errors being logged in the monero-wallet-rpc daemon's log. As a result of too many errors, you could implemented an automated restart strategy. With the linked PR, the ASB should play nicely with such a behaviour now.
changed the title [-][Bug] asb fails to watch Monero lock transaction properly unless monero-wallet-rpc and asb are restarted[/-][+]asb fails to watch Monero lock transaction properly unless monero-wallet-rpc and asb are restarted[/+]on Aug 21, 2021
Activity
sethforprivacy commentedon Aug 19, 2021
Any logs you have would be great, just be sure to redact any swap ID/TXID as desired before posting here to preserve your own privacy!
thomaseizinger commentedon Aug 20, 2021
Thanks for reporting. This seems to be an issue with
monero-wallet-rpcfrom what I can see.I guess a meaningful thing to address here would be to allow for
monero-wallet-rpcto be restarted without restarting the ASB. I will look into that.thomaseizinger commentedon Aug 20, 2021
That is an error message from
monero-wallet-rpc. Some quick web searching reveals that this just happens occasionally. I don't think there is anything we can do to fix this on our side.To confirm that: Were you able to fix this issue by just restarting the ASB? Or did you restart
monero-wallet-rpcas well?What we can do is what I suggested above: Make it possible to restart
monero-wallet-rpcwithout having to restart the ASB.Load wallet in `monero-wallet-rpc` on demand if necessary
thomaseizinger commentedon Aug 20, 2021
I've opened a PR that should allow this: #657
I don't know how exactly you are operating your daemons but as a general approach, I think you will need some kind of monitoring that alerts you of issues like this. In this particular case, you would have to monitor the number of errors being logged in the
monero-wallet-rpcdaemon's log. As a result of too many errors, you could implemented an automated restart strategy. With the linked PR, the ASB should play nicely with such a behaviour now.We are also logging a particular log message on warn level now for this exact case, so you can also monitor for that if you want.
sethforprivacy commentedon Aug 20, 2021
Glad to hear it! The new ASB log will be helpful as well as the RPC logs are a bit noisy.
I'm working on actionable monitoring as we speak via Zabbix, but the more specific logs I can get, the better 👍
Will test out the new version once it's built!
[-][Bug] asb fails to watch Monero lock transaction properly unless monero-wallet-rpc and asb are restarted[/-][+]asb fails to watch Monero lock transaction properly unless monero-wallet-rpc and asb are restarted[/+]Load wallet in `monero-wallet-rpc` on demand if necessary
Load wallet in `monero-wallet-rpc` on demand if necessary