# Error saving Pihole config after installing Unbound

**URL:** <https://discourse.pi-hole.net/t/error-saving-pihole-config-after-installing-unbound/51451>\
**Category:** Help\
**Created:** [December 5, 2021, 12:37pm UTC](https://discourse.pi-hole.net/t/error-saving-pihole-config-after-installing-unbound/51451 "2021-12-05T12:37:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![LenBasic](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/l/6bbea6/32.png) [@LenBasic](https://discourse.pi-hole.net/u/LenBasic)\
**Post date:** [December 5, 2021, 12:37pm UTC](https://discourse.pi-hole.net/t/error-saving-pihole-config-after-installing-unbound/51451/1 "2021-12-05T12:37:47Z")

</div>

Hi all,

## Expected Behaviour:

Pihole was running Ok, but after installing Unbound the (install was Ok) next step was to change the upstream DNS server from external source to unbound using the custom upstream server section . (127.0.0.1#5335).

## Actual Behaviour:

After clicking save I'm running into error: Failed CORS: null vs 192.168.0.214, , 192.168.0.214, pi.hole, localhost. Every action I do like trying to restart the pihole gives the same error.

## Debug Token:

[https://tricorder.pi-hole.net/qixxpwz3/](https://tricorder.pi-hole.net/qixxpwz3/)

---

<div class="post-metadata">

**Author:** ![Bucking\_Horn](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/bucking_horn/32/18719_2.png) [@Bucking\_Horn](https://discourse.pi-hole.net/u/Bucking_Horn)\
**Post date:** [December 6, 2021, 9:25am UTC](https://discourse.pi-hole.net/t/error-saving-pihole-config-after-installing-unbound/51451/2 "2021-12-06T09:25:09Z")

</div>

As you are running Bullseye, you are likely affected by [WARNING: Raspbian October 2021 release bullseye + unbound](https://discourse.pi-hole.net/t/warning-raspbian-october-2021-release-bullseye-unbound/51027).

Try the following:

1. Edit file `/etc/resolvconf.conf` and comment out the last line which should read:

`unbound_conf=/etc/unbound/unbound.conf.d/resolvconf_resolvers.conf`

1. Delete the unwanted unbound configuration file:

`sudo rm /etc/unbound/unbound.conf.d/resolvconf_resolvers.conf`

1. Restart unbound:

`sudo service unbound restart`

---

<div class="post-metadata">

**Author:** ![LenBasic](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/l/6bbea6/32.png) [@LenBasic](https://discourse.pi-hole.net/u/LenBasic)\
**Post date:** [December 6, 2021, 4:34pm UTC](https://discourse.pi-hole.net/t/error-saving-pihole-config-after-installing-unbound/51451/4 "2021-12-06T16:34:02Z")

</div>

Hi Bucking\_Horn,

Thanks for your reply. I followed the instructions: comment out the line  
_#unbound\_conf=/etc/unbound/unbound.conf.d/resolvconf\_resolvers.conf_  
Deleted the file and restart the unbound service.

Unfortunately still the same error : Failed CORS: null vs 192.168.0.214, , 192.168.0.214, pi.hole, localhost

Any thoughts?

Thanks and regards, LenBasic

---

<div class="post-metadata">

**Author:** ![LenBasic](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/l/6bbea6/32.png) [@LenBasic](https://discourse.pi-hole.net/u/LenBasic)\
**Post date:** [December 6, 2021, 9:36pm UTC](https://discourse.pi-hole.net/t/error-saving-pihole-config-after-installing-unbound/51451/5 "2021-12-06T21:36:58Z")

</div>

Hi Bucking\_Horn

Yessss, after rebooting te Raspberry and give it another try its working ; 😀  
Thanks again!  
Regards LenBasic

---

<div class="post-metadata">

**Author:** ![system](https://discourse.pi-hole.net/uploads/default/original/3X/7/c/7c8792f649eeb921c5d2b4c41564ffa873d9a2b8.png) [@system](https://discourse.pi-hole.net/u/system)\
**Post date:** [December 27, 2021, 9:37pm UTC](https://discourse.pi-hole.net/t/error-saving-pihole-config-after-installing-unbound/51451/6 "2021-12-27T21:37:49Z")

</div>

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
