Rotate the LND macaroons like this:
```
sudo su -
docker exec btcpayserver_lnd_bitcoin rm -f /data/*.macaroon
docker exec btcpayserver_lnd_bitcoin rm -f /data/data/macaroons.db
docker exec btcpayserver_lnd_bitcoin rm -f /data/data/chain/bitcoin/mainnet/macaroons.db
docker exec btcpayserver_lnd_bitcoin rm -f /data/data/chain/bitcoin/mainnet/*.macaroon
docker restart btcpayserver_lnd_bitcoin
```
🚨PSA for LND + BTCPay Server users🚨
Don’t assume you’re safe after upgrading.
You’re going to want to explicitly destroy your macaroons and macaroons.db and recreate them fresh.This also applies to auth mechanisms for other LN backends.
Also, if you generated a hot on-chain wallet in BTCPay you want to move those funds.
View quoted note →
View quoted note →