-
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
asb
wallet inaccessible after refreshing it with monero-wallet-cli
#1273
Comments
Thanks for the report. When you open the wallet with the monero-wallet-cli did it make you set a password? |
On Tue, Jan 10, 2023 at 02:50:19AM -0800, Byron Hambly wrote:
Thanks for the report. When you open the wallet with the monero-wallet-cli did it make you set a password?
No it did not, at least not as far as I can recall. Since I restarted the server I don't have terminal logs anymore. I do know it asked for a password and I successfully used a blank password ("just press enter").
|
Thanks yeah confirmed that it's an empty password. Busy investigating further, trying to reproduce. Any logs from |
Nothing in |
Found a
Basically One potential clue:
This is happening even after restart, I guess because something somewhere has cached the (blank) password?
This is happening regardless of whether |
Ah, I had |
Stopped the Appears Here
And here
@delta1 Can it be that |
I'm not reproducing this on the latest master.
I've added a debug log in PR #1274, once that's merged you can use the ASB preview build to get a log message for why that wallet isn't opening. Hopefully it helps us debug this. |
Thanks. Yes, having a binary will help, I tried building it (on Debian 11.3, Rust 1.62.1) but build failed:
Using
|
#1274 is merged, please try the binary from the preview build when it's ready https://github.com/comit-network/xmr-btc-swap/releases/tag/preview build action run https://github.com/comit-network/xmr-btc-swap/actions/runs/3883255410 |
Hmm this slipped in: stephaneyfx/enum-iterator#20 You'll need 1.63 or newer |
Well,
But even with +nightly, the custom build script at swap/build.rs fails, giving the 2nd error message above. I downloaded the preview release with
Here's the corresponding
As we can see, |
(see edits above) |
@icy-ux please try the binary here to get a more detailed error message: https://github.com/comit-network/xmr-btc-swap/releases/tag/preview |
@delta1 I did, the more detailed error message is this line in the above quoted logs:
This is the preview binary before you updated the build stuff. I don't see any code changes in the more recent commit which would affect the error message. If I'm wrong, please let me know and I will update the binary. |
That’s what we were looking for but not very helpful 😕 I suspect it’s a permissions issue. Can you check that the asb-wallet is owned and rwx for your systemd service/root user? You mentioned that your asb is run as a systemd service, is it possible when you used the monero-wallet-cli you changed the owner or perms? |
My
For all these tests, I naturally have been runing the
For the sake of completeness, here's the relevant section of the
Here's what happens when I run
|
Able to duplicate the error using a bare JSON-RPC call:
I took a look at what monero-wallet-rpc was doing using The results were singularly underwhelming. Nothing related to accessing the wallet seems to appear in the strace log. Even the write calls for the logging messages relating to there being no wallet do not appear in the strace log. That leaves the few error messages we do have. Renamimg So renamed the asb-wallet to asb-wallet-old, and created a new wallet. Now we have a new address, which is printed by running
Used
Now DB won't load:
Since we don't have any open swaps we can trash the old DB and start afresh. So rename the database to Now open the new New incoming Tx is shown as locked balance. Close monero-wallet-cli. Run Wait until incoming Tx confirms. Check status using monero-wallet-cli:
Summary of the original problem and its solution
Current problem
|
Looking at the
Since
A ha, looks like I got stuck with 2 copies of
Then after running Summary of the problem and its solution
|
Thank you for your write-up @icy-ux it is appreciated. Sorry I couldn't reproduce your issue but glad you found a way around it, definitely seems related to the different wallet rpc versions especially since those coincided with before/after the most recent hard fork. Closing for now, thanks again for your debugging and just reopen this issue if necessary. |
Describe the bug
After accessing the
asb
wallet (asb-wallet
) usingmonero-wallet-cli
,asb
is no longer able to access the wallet. This persists even aftermonero-wallet-rpc
has been restarted, and after the entire machine has been restarted.As part of troubleshooting #1061 I refreshed the wallet with
monero-wallet-cli
. This worked, but now I can't runasb
anymore.Lost/trapped Funds
No
Debug logs
Platform:
asb 0.12.0
The text was updated successfully, but these errors were encountered: