Closed zebede22 closed 1 week ago
I think problem is that CURRENT_XMR_HEIGHT=$(curl https://localmonero.co/blocks/api/get_stats | jq .height)
doesn't work.
when I run curl https://localmonero.co/blocks/api/get_stats
it timesout, I can't even access it via a browser
<html>
<head><title>504 Gateway Time-out</title></head>
<body>
if that's the reason maybe need to update the script to check if all is good
Localmonero blocks is down, let me check and update script
edit: the script isnt using localmonero
might be a bug with using localhost.
try entering your local ip (192.168.x.x) instead of 127.0.0.1
or if the the port isnt bound to the lan interface, try localhost
might be a bug with using localhost.
try entering your local ip (192.168.x.x) instead of 127.0.0.1
or if the the port isnt bound to the lan interface, try
localhost
I tried public IP and localhost
but still same errors
it crashes here: https://github.com/basicswap/basicswap/blob/003d7b85abf37aedd6ca46d4e88c2847953e7fee/bin/basicswap_prepare.py#L1684
I tried public IP and
localhost
but still same errorsit crashes here: https://github.com/basicswap/basicswap/blob/003d7b85abf37aedd6ca46d4e88c2847953e7fee/bin/basicswap_prepare.py#L1684
its failing here: https://github.com/nahuhh/basicswap-bash/blob/master/bsx%2Fsetup.sh#L26-L28
(it uses your own node to query the height)
Is your node accessible over the ip youre entering?
<html><head><title>Unauthorized Access</title></head><body><h1>401 Unauthorized</h1></body></html>
My node using user:pass for auth, I guess that's reason. Is there an option to specify one?
Run this:
git clone https://github.com/nahuhh/basicswap-bash
cd basicswap-bash
then add these lines near the top of bsx/setup.sh
XMR_RPC_USER=yourusername
XMR_RPC_PWD=yourpassword
then run
./install
note: there is a bug where, if you enter 127.0.0.1
, it thinks you want basicswap to run a node. To workaround this, use your local ip (192.168.x.x)
I already managed to start it properly via using a public node, how can I delete/uninstall whole thing? is deleting ~/.local/bin/bsx* and ~/.local/bin/basicswap-bash enough?
you don't have to delete, you can edit it to use your own node
edit ~/coinswaps/basicswap.json
go to the monero
section
add 2 lines
"rpcuser": "youruser",
"rpcpassword": "yourpassword",
and change rpchost
to your local ip
if youd like to delete for any reason, just need to delete the coinswaps
folder
delete ~/.local/bin/bsx*
and ~/.local/bin/basicswap-bash
to remove the management/launch scripts
I tried XMR_RPC_USER=yourusername XMR_RPC_PWD=yourpassword
but still getting same error
try setting up with remote node, then editing basicswap.json as above
Worked
OS: Ubuntu Server 22.04 Python 3.10.12 Kernel: Linux 5.15.0-119-generic
Output with errors:
When I try to start it anyway:
basicswap-bash