# PiHole causes complete lockdown of system when adding/deleting whitelist/blacklist

**URL:** <https://discourse.pi-hole.net/t/pihole-causes-complete-lockdown-of-system-when-adding-deleting-whitelist-blacklist/29689>\
**Category:** Beta 5.0\
**Created:** [March 23, 2020, 8:13am UTC](https://discourse.pi-hole.net/t/pihole-causes-complete-lockdown-of-system-when-adding-deleting-whitelist-blacklist/29689 "2020-03-23T08:13:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gniting](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/gniting/32/11796_2.png) [@gniting](https://discourse.pi-hole.net/u/gniting)\
**Post date:** [March 23, 2020, 8:13am UTC](https://discourse.pi-hole.net/t/pihole-causes-complete-lockdown-of-system-when-adding-deleting-whitelist-blacklist/29689/1 "2020-03-23T08:13:23Z")

</div>

**Problem with Beta 5.0:**  
Using the WebUI, when I add/delete an entry to the white or black lists, the system locks up. Networking dies, can't ssh into the box. After a few minutes, SSH recovers and Pihole needs to be manually restarted.

**Debug Token:**  
[https://tricorder.pi-hole.net/ylxoxjx9cp](https://tricorder.pi-hole.net/ylxoxjx9cp)

---

<div class="post-metadata">

**Author:** ![ugsd](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/ugsd/32/13764_2.png) [@ugsd](https://discourse.pi-hole.net/u/ugsd)\
**Post date:** [March 31, 2020, 2:30pm UTC](https://discourse.pi-hole.net/t/pihole-causes-complete-lockdown-of-system-when-adding-deleting-whitelist-blacklist/29689/2 "2020-03-31T14:30:16Z")

</div>

Noticed the same thing the other day when troubleshooting 5.0 crashing non-stop. Something is up with the `gravity.db`.

---

<div class="post-metadata">

**Author:** ![yubiuser](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/yubiuser/32/12100_2.png) [@yubiuser](https://discourse.pi-hole.net/u/yubiuser)\
**Post date:** [March 31, 2020, 3:47pm UTC](https://discourse.pi-hole.net/t/pihole-causes-complete-lockdown-of-system-when-adding-deleting-whitelist-blacklist/29689/3 "2020-03-31T15:47:50Z")

</div>

There is a branch that optimized database handling. Might be worth trying, even without knowing what caused your issues...

```auto
pihole checkout ftl tweak/sqlite_debugging

```

In addition you can enable `DEBUG_DATABASE=true` in `/etc/pihole/pihole-FTL.conf` which should give additional logging to `/var/log/pihole-FTL.log`

---

<div class="post-metadata">

**Author:** ![DL6ER](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dl6er/32/281_2.png) [@DL6ER](https://discourse.pi-hole.net/u/DL6ER)\
**Post date:** [March 31, 2020, 4:34pm UTC](https://discourse.pi-hole.net/t/pihole-causes-complete-lockdown-of-system-when-adding-deleting-whitelist-blacklist/29689/4 "2020-03-31T16:34:59Z")

</div>

> [@yubiuser](#):
>
> There is a branch that optimized database handling.

It has been merged into the regular beta by now.
