Skip to content

Instantly share code, notes, and snippets.

@jamescridland
Last active January 23, 2022 09:20
Show Gist options
  • Save jamescridland/2f5cb63021c7c4d9a44b185f95aff21d to your computer and use it in GitHub Desktop.
Save jamescridland/2f5cb63021c7c4d9a44b185f95aff21d to your computer and use it in GitHub Desktop.
Helipad useful debugging tools for Helipad app

Get the local database

On your Mac...

scp umbrel@umbrel.local:~/umbrel/app-data/helipad/data/database.db ~/

... this will download the SQLite database from the Umbrel, and dump it into your home directory. Use DB Browser for SQLite to view it.

scp database.db umbrel@umbrel.local:~/umbrel/app-data/helipad/data/database.db

...will OVERWRITE your Umbrel's database with a local one in your current directory

"Unable to get payments, wallet locked, unlock it to enable full RPC access"

This will also stop your Bitcoin and Lightning wallets from synchronizing. You'll want to...

cd ~/umbrel && docker-compose exec lnd /bin/bash
lncli unlock

The password here is moneyprintergobrrr (even now).

If lncli state still says it's locked, then the nuclear option...

rm ~/umbrel/lnd/lnd.conf
~/umbrel/scripts/configure

...ignore the request to start Umbrel, since it's already started.

To stop Umbrel temporarily: sudo ./umbrel/scripts/stop and sudo ./umbrel/scripts/start

Docker things

ssh -t umbrel@umbrel.local

...to connect. Use your Umbrel password.

docker ps --filter "name=helipad"

...to find out the container ID

docker exec -it 'helipad_web_1' /bin/bash

...to log into a bash for it. To view text files, cat is your friend.

docker attach 40739794b8f2

...(whatever the container ID is) will connect, and (wait a bit) give you some debug log code.

  • You can also see the debug log in the Umbrel troubleshooting logs. Choose "Settings" (bottom left) in the web interface, then choose "Troubleshooting - view logs".
  • Don't CTRL+C out of the docket attach, because that breaks everything
docker logs 40739794b8f2 > log.txt

...grabs the logs from this container ID and save it to a log.txt file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment