# How to restore lnd.conf? after messing with it

**URL:** <https://community.umbrel.com/t/how-to-restore-lnd-conf-after-messing-with-it/9886>\
**Category:** Support and Troubleshooting\
**Created:** [October 18, 2022, 3:48pm UTC](https://community.umbrel.com/t/how-to-restore-lnd-conf-after-messing-with-it/9886 "2022-10-18T15:48:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bobby](https://avatars.discourse-cdn.com/v4/letter/b/df788c/32.png) [@Bobby](https://community.umbrel.com/u/Bobby)\
**Post date:** [October 18, 2022, 3:48pm UTC](https://community.umbrel.com/t/how-to-restore-lnd-conf-after-messing-with-it/9886/1 "2022-10-18T15:48:18Z")

</div>

Hi guys is there a way to restore de file lnd.conf? i mess with it and it just shows a couple of lines, i have been able to recover funds and closing channels, but after checking it out to make it hybrid mode i found with the file just this lines:

```
[Application Options]
maxpendingchannels=3
minchansize=10000
accept-keysend=true
accept-amp=1

[Bitcoin]
bitcoin.defaultchanconfs=2

```

i had, reinstall the app (LND), run the script configure, erase the file and restart the service but file just shows this lines, i just want to make sure everthing its ok befor sending back funds,

---

<div class="post-metadata">

**Author:** ![usernameisJim](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.umbrel.com/usernameisjim/32/3309_2.png) [@usernameisJim](https://community.umbrel.com/u/usernameisJim)\
**Post date:** [October 18, 2022, 5:02pm UTC](https://community.umbrel.com/t/how-to-restore-lnd-conf-after-messing-with-it/9886/2 "2022-10-18T17:02:38Z")

</div>

"If you just want to reset the lnd.conf file with a default one, you can do this:

Make a backup of your current lnd.conf

`cp ~/umbrel/lnd/lnd.conf ~/umbrel/lnd/lnd.bak`

Delete your current lnd.conf, re-configure Umbrel, and restart the node

`rm ~/umbrel/lnd/lnd.conf && ~/umbrel/scripts/configure && sudo reboot`

After this you can go and add one by one the lines you want in your lnd.conf, but be careful to not break it again with wrong info."

These commands also restart lnd:

```
cd ~/umbrel ; docker-compose restart lnd; docker-compose ps`

or

sudo systemctl restart lnd

or

/home/umbrel/umbrel/scripts/app compose lightning restart lnd

```

Let us know if this works, what else you tried, or if you find a solution!

---

<div class="post-metadata">

**Author:** ![Bobby](https://avatars.discourse-cdn.com/v4/letter/b/df788c/32.png) [@Bobby](https://community.umbrel.com/u/Bobby)\
**Post date:** [October 18, 2022, 7:34pm UTC](https://community.umbrel.com/t/how-to-restore-lnd-conf-after-messing-with-it/9886/3 "2022-10-18T19:34:00Z")

</div>

im having some troubles with some folder permisions on the configure, heres a screen shot

 ![Captura de pantalla (29)](https://canada1.discourse-cdn.com/flex030/uploads/getumbrel/original/2X/6/67d38d49105d23092e617a2f2e60da6a1a2fe326.png)

---

<div class="post-metadata">

**Author:** ![Bobby](https://avatars.discourse-cdn.com/v4/letter/b/df788c/32.png) [@Bobby](https://community.umbrel.com/u/Bobby)\
**Post date:** [October 18, 2022, 11:07pm UTC](https://community.umbrel.com/t/how-to-restore-lnd-conf-after-messing-with-it/9886/4 "2022-10-18T23:07:42Z")

</div>

the problems seems a little bit biger

```
umbrel@umbrel:~/umbrel/app-data/lightning/data/lnd $ sudo systemctl restart lnd
Failed to restart lnd.service: Unit lnd.service not found.
```

---

<div class="post-metadata">

**Author:** ![Tr4ck3r](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.umbrel.com/tr4ck3r/32/3600_2.png) [@Tr4ck3r](https://community.umbrel.com/u/Tr4ck3r)\
**Post date:** [February 19, 2023, 8:59pm UTC](https://community.umbrel.com/t/how-to-restore-lnd-conf-after-messing-with-it/9886/5 "2023-02-19T20:59:58Z")

</div>

I’m having the same error message… did anyone find a solution?
