xmr-btc-swap icon indicating copy to clipboard operation
xmr-btc-swap copied to clipboard

ASB Balance Command broken?

Open xhwmerhfity opened this issue 3 years ago • 8 comments

When I try to check the balance using "asb balance" a prompt appears "Enter data directory for asb or hit return to use default" as if a new instance of the asb is being initiated.

This appears to be an error?

The asb instance is stopped at the time of trying to check the balance and otherwise runs correctly.

(This also happens when using "asb withdraw-btc" to withdraw bitcoin)

At the moment I am unable to use the ASB as I cannot access any BTC received.

xhwmerhfity avatar Feb 24 '22 18:02 xhwmerhfity

The asb instance is stopped at the time of trying to check the balance and otherwise runs correctly.

What command are you using to run asb ? Is it testnet or mainnet?

Is it possible when you are calling asb balance you're running a different copy of the binary?

delta1 avatar Feb 24 '22 18:02 delta1

Running on mainnet.

Launched using: sudo systemctl start asb Trying to check balance using: asb balance

Is this a syntax error on my part?

I've used the guide at sethforprivacy.com Everything else works great (shows up on rendezvous, can start swaps etc.)

asb_0.10.2_Linux_x86_64.tar

Thanks for replying.

xhwmerhfity avatar Feb 24 '22 18:02 xhwmerhfity

Right so when you run as sudo you are running the binary as root. Without sudo you are running as your own current user.

Try ‘sudo asb balance’

delta1 avatar Feb 24 '22 18:02 delta1

Thanks. Yeah I've tried that with the same result.

Is there a way I can check the Bitcoin wallet has been created correctly (I don't see anything in the asb.log file saying that there's been a problem).

In the meantime I'll reinstall/configure and try again.

xhwmerhfity avatar Feb 24 '22 19:02 xhwmerhfity

You may need to try read the systemd logs since you’re running it as a service.

What does “asb config” give you? The same prompt? Where is it installed? You can try “which asb”

delta1 avatar Feb 24 '22 19:02 delta1

From Seth’s guide [1] it looks like systemd is running asb as the user “asb” so I think you’ll need to run the command as that user

1: https://sethforprivacy.com/guides/run-an-atomic-swap-provider-advanced/

delta1 avatar Feb 24 '22 19:02 delta1

Thanks for your help. Will reinstall and test on Monday - if it works I won't be so hasty posting issues in the future :)

xhwmerhfity avatar Feb 26 '22 10:02 xhwmerhfity

@xhwmerhfity did you manage to getting it working withthe asb user?

lescuer97 avatar Mar 01 '22 11:03 lescuer97