Skip to content
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

Fail to launch SatStack on Ubuntu 22.4 #84

Open
Rhialto3 opened this issue Oct 14, 2022 · 19 comments
Open

Fail to launch SatStack on Ubuntu 22.4 #84

Rhialto3 opened this issue Oct 14, 2022 · 19 comments

Comments

@Rhialto3
Copy link

I try to connect my raspiblitz node to ledger, but when launching SatStack with ./lss it gives me the following error:

pom@pom:~/Applications$ ./lss
[2022/10/14 - 14:51:52] INFO Ledger SatStack (lss) v0.16.1 arch=linux amd64 build= commit= runtime=go1.17.13
[2022/10/14 - 14:51:52] INFO Config file detected path=/home/pom/.config/Ledger Live/lss.json
[2022/10/14 - 14:51:52] INFO Warming up...
[2022/10/14 - 14:51:52] FATAL Failed to initialize Bus error=failed to load wallet: -4: Wallet file verification failed. SQLiteDatabase: Unable to obtain an exclusive lock on the database, is it being used by another instance of Bitcoin Core?

Any suggestions how to solve this?

@adrienlacombe
Copy link
Contributor

hi @Rhialto3 what else is running on your raspiblitz?

@Rhialto3
Copy link
Author

Rhialto3 commented Oct 14, 2022

I have the raspiblitz with FullBTC node plus two lightning nodes running CLN and LND running. Also connected to Zeus on my mobile. Further RTL, Mempool and BTCPayServer and Electrum Rust server.

@Rhialto3
Copy link
Author

I now uninstalled the LND lightning node. I uninstalled Electrum server, BTC Payserver, RTL lnd WebUI.
Still the same error message...

@adrienlacombe
Copy link
Contributor

thank you @Rhialto3 do you happen to have a bitcoind with a UI running?

@Rhialto3
Copy link
Author

Excuse my ignorance, but I do not know exactly what bitcoind is and how to check whether I have an UI running. i have raspiblitz CLN node running with the web userinterface or SSH terminal menu running for the raspiblitz. Does this tell you anything? I also have a programm Ride the Lightning running with access to my wallet and node channels.

@adrienlacombe
Copy link
Contributor

hi @Rhialto3 can you try to run ./lss --unload-wallet and see what happens?

@Rhialto3
Copy link
Author

Thanks Adrien,
I ran the command but now it is different the response. I updated Ledger Live to the latest version. i have the SatStack on my imac with linux ubuntu 22.4 and the bitcoin full node plus Core Lightning node on a raspberry pi4 8Gb via raspiblitz.

Now I get with ./lss or with ./lss --unload-wallet both below response
Screenshot from 2022-10-31 18-10-27

@adrienlacombe
Copy link
Contributor

it seems to be a network issue, are you running linux in a docker or smth similar?

@Rhialto3
Copy link
Author

No linux is as a stand alone install directly on my old iMac. The raspiblitz on the pi with SSD 1TB and the fullnode and lightning node on the pi. I do have the pi I believe from outside my network on Tor, but I am now on my home network...

@adrienlacombe
Copy link
Contributor

ok, if Tor is enabled on raspi then you need to follow this https://github.com/LedgerHQ/satstack#manual-setup-for-advanced-users

@Rhialto3
Copy link
Author

I will read through and give it a try. If resolved after that I will let you know. Do I understand correctly that the error message that I got now (which is different from the first error message i got when I started this issue) means that the wallet could be loaded (initial error message) and that this step comes after the wallet is loaded?

@Rhialto3
Copy link
Author

Rhialto3 commented Nov 2, 2022

Hi Adrien, I read through the manual setup. I already had a lss.json config file that was created when I tried using the easy way through the ledger interface, so I used that. It already contained my accounts. Is this ok to use or should I start fresh and follow the steps "Retrieve descriptors from device" and "Create configuration file"?

I edited the existing lss.json file at the bottom as indicated in the "create config file" step the following:
],
"torproxy": "socks5://127.0.0.1:9050",
"rpcurl": "ONION ADDRESS",
"rpcuser": "NAME",
"rpcpass": "PASWORD",
"notls": true
}

I have some doubts though:

  1. should I use "torproxy": "socks5://127.0.0.1:9050", or should I use the raspiblitz local network address:portnumber because ledger live and lss are not on the same computer as my node (RaspberryPi)?
  2. with rpcurl: where can I find the onion address of my bitcoin fullnode?

I filled out now some info in the config file but don't know if I did it the correct way. I got the following errors after running ./lss

pom@pom:~/Applications$ ./lss
[2022/11/02 - 17:36:03] INFO Ledger SatStack (lss) v0.16.1 arch=linux amd64 build= commit= runtime=go1.17.13
[2022/11/02 - 17:36:03] INFO Config file detected path=/home/pom/.config/Ledger Live/lss.json
[2022/11/02 - 17:36:03] INFO Warming up...
[2022/11/02 - 17:36:25] FATAL Failed to initialize Bus error=bitcoind unreachable: invalid http POST response (nil), method: getblockchaininfo, id: 1, last error=Post "http://wapb67guufcmt5fimx3rql75gappulzw6zplxfqwaiid.onion/wallet/satstack": proxyconnect tcp: dial tcp 127.0.0.1:9050: connect: connection refused

Thanks again for all your help :)

@adrienlacombe
Copy link
Contributor

adrienlacombe commented Nov 2, 2022

@Rhialto3 I would recommend starting fresh.

  • torproxy value should point to the tor deamon so usually it is running locally on port 9050.
  • for rpcurl, can you please try bitcoin-cli getnetworkinfo? let me know

@Rhialto3
Copy link
Author

Rhialto3 commented Nov 2, 2022

OK I will start fresh.

  • Torproxy is still not clear to me: should I use the 127.0.0.1:9050 or my local address that I also use to ssh into node on my pi?
  • rpcurl: I found an onion address (wapbfcmt5fvh4nj4hql75gappulzw6mkinjbz2vvnp26fdg5jjd7fqwaiid.onion) with "bitcoin-cli getnetworkinfo". But this is without a port specified behind it. Should I add the port after onion? so wapbfcmt5fvh4nj4hql75gappulzw6mkinjbz2vvnp26fdg5jjd7fqwaiid.onion:9050 ?

@Rhialto3
Copy link
Author

After having tried everything, I needed to follow the Raspiblitz guide (at Github joininbox by openoms: "Prepare_remote_node". This gave me the connection after having edited as shown in guide the bitcoind.conf file.
All works fine now.

@adrienlacombe
Copy link
Contributor

@Rhialto3 can you share a link to this guide please? ty ty

@Rhialto3
Copy link
Author

@Rhialto3
Copy link
Author

Last question: How can I check that my ledger Live Desktop app is 100% connecting only through the Satstack connection with my full node and not anymore through the Ledger Servers to check the BTC Blockchain?

@adrienlacombe
Copy link
Contributor

adrienlacombe commented Feb 17, 2023

ty!
The only way to check that I can think of would be to forbid your network to reach our URLs really.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants