Open elibroftw opened 2 years ago
Probably related to https://github.com/comit-network/xmr-btc-swap/issues/835
I don't think so
Can you do a ps | grep monero-wallet-rpc
before starting the asb a second time?
I can barely do anything useful if https://github.com/comit-network/xmr-btc-swap/issues/970 is stopping me from entering an RPC port. 🤦♂️
The monero-wallet-rpc will run because it is manually run by me. The ASB does not spawn a monero-wallet-rpc. The bug is that the asb thinks the wallet does not exist even though it does so it tries to create a wallet and that fails!
Please watch your language. All active contributors are unpaid volunteers. No one owes you anything.
I digress. I'll leave this here https://github.com/comit-network/xmr-btc-swap/blob/master/swap/src/monero/wallet.rs#L31 if someone wants to read my mind (i.e. put a print statement here to see if the software can't open the wallet). Is it possible the ASB forgets to close the wallet when it exits? Therefore the running instance of the wallet-rpc still has the wallet opened? If so, then why doesn't the ASB account for that scenario. Or why doesn't it just spawn the RPC itself rather than requiring the user to do it for them?
Yeah, you're right. This is probably what's happening here. Is it fixed by restarting the rpc?
Yes it works if I restart the RPC
Describe the bug
First, there's no easy way to rerun the interactive configuration. I deleted the config file to trigger it. Therefore, I'm not sure if this error is because I ran
asb start
a second time or because I deleted the config file. Someone else can figure out the race condition.Lost/trapped Funds Yes or No
Debug logs Please post your debug logs. You find them in: Linux: /home//.local/share/xmr-btc-swap/logs
OSX: /Users//Library/ApplicationSupport/xmr-btc-swap/logs
Platform (please complete the following information):