$ lnd --lnddir=$HOME/lndbackup/
Attempting automatic RPC configuration to bitcoind
Automatically obtained bitcoind's RPC credentials
2019-07-13 19:24:56.933 [INF] LTND: Version: 0.7.0-beta commit=v0.7.0-beta-73-g616750184ef9316b849f1ec092176e6814cb2661, build=production, logging=default
2019-07-13 19:24:56.933 [INF] LTND: Active chain: Bitcoin (network=mainnet)
2019-07-13 19:24:56.934 [INF] CHDB: Checking for schema update: latest_version=9, db_version=7
2019-07-13 19:24:56.934 [INF] CHDB: Performing database schema migration
2019-07-13 19:24:56.934 [INF] CHDB: Applying migration #8
2019-07-13 19:24:56.934 [INF] CHDB: Migrating to the gossip message store new key format
| 2019-07-07 13:12:13.123 [INF] LNWL: Opened wallet | |
| 2019-07-07 13:12:13.433 [INF] LTND: Primary chain is set to: bitcoin | |
| 2019-07-07 13:12:13.479 [INF] LTND: Initializing bitcoind backed fee estimator | |
| 2019-07-07 13:12:13.479 [INF] LNWL: Started listening for bitcoind block notifications via ZMQ on tcp://0.0.0.0:28832 | |
| 2019-07-07 13:12:13.479 [INF] LNWL: Started listening for bitcoind transaction notifications via ZMQ on tcp://0.0.0.0:28833 | |
| 2019-07-07 13:12:13.482 [DBG] LNWL: Using minimum fee rate of 253 sat/kw | |
| 2019-07-07 13:12:16.034 [INF] LNWL: The wallet has been unlocked without a time limit | |
| 2019-07-07 13:12:16.189 [INF] LTND: LightningWallet opened | |
| 2019-07-07 13:12:16.191 [DBG] LNWL: Birthday block has already been verified: height=568159, hash=00000000000000000003e6aca881b8eae22684db2033b408f1b6d7881e329776 | |
| 2019-07-07 13:12:16.275 [INF] HSWC: Restoring in-memory circuit state from disk |
| # Depends on python-bitcoinlib only | |
| import socket, time, bitcoin | |
| from bitcoin.messages import msg_version, msg_verack, msg_addr, msg_getaddr, MsgSerializable, msg_pong | |
| from bitcoin.net import CAddress | |
| from statistics import mean | |
| from threading import Thread | |
| from concurrent.futures import ThreadPoolExecutor |
You setup a btcpay server account, forgot to setup SMTP (or set it up wrong) and then forgot your password. Now you can't get back in. Here's how I recovered from this situation:
-
Create a new user according to these instructions. But this isn't enough because (1) Your new user isn't a member of any stores and (2) for me at least this new user couldn't setup SMTP ...
-
There is a postgres table called
UserStorewhich tracks membership of users in stores. When you execute the following command in postgres
select * from "UserStore";
First, update your old BTCPayServer to the newest version. This way there aren't any database schema conflicts with the your server.
SSH to old server you are migrating from. Create a dump of the your database's schema and data
docker exec generated_postgres_1 pg_dumpall -c -U postgres > backup.sql
Try opening that backup.sql file in your text editor of choice. You will see it's just a series of SQL statements which:
| ### Keybase proof | |
| I hereby claim: | |
| * I am justinmoon on github. | |
| * I am justinmoon (https://keybase.io/justinmoon) on keybase. | |
| * I have a public key ASAUUTp8gNM-v2dKHQ5KCp71jDQMyiIDbhWCpcpGTAkSygo | |
| To claim this, I am signing this object: |
| #lang lazy | |
| ; - single argument procedures are the only thing | |
| ; - nothing else | |
| (define (TRUE x) | |
| (lambda (y) x)) | |
| (define (FALSE x) | |
| (lambda (y) y)) |
| """ | |
| BanknetCoin | |
| Usage: | |
| banknetcoin.py serve | |
| banknetcoin.py ping | |
| banknetcoin.py tx <from> <to> <amount> | |
| banknetcoin.py balance <name> | |
| Options: |
| """ | |
| BanknetCoin | |
| Usage: | |
| banknetcoin.py serve | |
| banknetcoin.py ping | |
| banknetcoin.py tx <from> <to> <amount> | |
| banknetcoin.py balance <name> | |
| Options: |