Skip to content

AdGuard Home fails to migrate config: "unexpected type of dns: map[string]interface {}" #4846

@FabioEight

Description

@FabioEight

Prerequisites

  • I have checked the Wiki and Discussions and found no answer

  • I have searched other issues and found no duplicates

  • I want to report a bug and not ask a question

Operating system type

Linux, Other (please mention the version in the description)

CPU architecture

AMD64

Installation

GitHub releases or script from README

Setup

On a router, DHCP is handled by the router

AdGuard Home version

0.107.10

Description

What did you do?

I tried to install AdGuard using the script:

curl -s -S -L https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh | sh -s -- -v

Expected result

I got:


root@FakePi3:~# curl -s -S -L https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh | sh -s -- -v
starting AdGuard Home installation script
channel: release
operating system: linux
cpu type: amd64
AdGuard Home will be installed into /opt/AdGuardHome
checking tar
script is executed with root privileges
no need to uninstall
downloading package from https://static.adtidy.org/adguardhome/release/AdGuardHome_linux_amd64.tar.gz -> AdGuardHome_linux_amd64.tar.gz
successfully downloaded AdGuardHome_linux_amd64.tar.gz
unpacking package from AdGuardHome_linux_amd64.tar.gz into /opt
successfully unpacked, contents: 
total 35388
-rwxrwxrwx 1 root root 36122624 Aug 17 17:44 AdGuardHome
-rw-rw-rw- 1 root root      587 Aug 17 17:44 AdGuardHome.sig
-rw-r--r-- 1 root root    47183 Aug 17 17:44 CHANGELOG.md
-rw-r--r-- 1 root root    35149 Aug 17 17:44 LICENSE.txt
-rw-r--r-- 1 root root    22788 Aug 17 17:44 README.md
2022/08/18 15:04:58 [info] service: control action: install
2022/08/18 15:04:58 [info] service: started
2022/08/18 15:04:58 [info] Almost ready!
AdGuard Home is successfully installed and will automatically start on boot.
There are a few more things that must be configured before you can use it.
Click on the link below and follow the Installation Wizard steps to finish setup.
AdGuard Home is now available at the following addresses:
2022/08/18 15:04:58 [info] Go to http://127.0.0.1:3000
2022/08/18 15:04:58 [info] Go to http://192.168.1.32:3000
2022/08/18 15:04:58 [info] service: action install has been done successfully on linux-systemd
AdGuard Home is now installed and running
you can control the service status with the following commands:
sudo /opt/AdGuardHome/AdGuardHome -s start|stop|restart|status|install|uninstall
root@FakePi3:~# systemctl status adguardhome.service 
● adguardhome.service
     Loaded: not-found (Reason: Unit adguardhome.service not found.)
     Active: failed (Result: exit-code) since Thu 2022-08-18 15:04:10 CEST; 53s ago
   Main PID: 4293 (code=exited, status=1/FAILURE)
        CPU: 8ms

Aug 18 15:04:10 FakePi3 systemd[1]: adguardhome.service: Scheduled restart job, restart counter is at 7.
Aug 18 15:04:10 FakePi3 systemd[1]: Stopped AdGuard Home (DietPi).
Aug 18 15:04:10 FakePi3 systemd[1]: adguardhome.service: Start request repeated too quickly.
Aug 18 15:04:10 FakePi3 systemd[1]: adguardhome.service: Failed with result 'exit-code'.
Aug 18 15:04:10 FakePi3 systemd[1]: Failed to start AdGuard Home (DietPi).

Actual result

AdGuard not installed and service not runnable.

Additional information


Aug 18 15:03:54 FakePi3 systemd[1]: adguardhome.service: Scheduled restart job, restart counter is at 4.
Aug 18 15:03:54 FakePi3 systemd[1]: Stopped AdGuard Home (DietPi).
Aug 18 15:03:54 FakePi3 systemd[1]: Started AdGuard Home (DietPi).
Aug 18 15:03:54 FakePi3 AdGuardHome[4261]: 2022/08/18 15:03:54.911523 [info] AdGuard Home, version v0.107.10
Aug 18 15:03:54 FakePi3 AdGuardHome[4261]: 2022/08/18 15:03:54.911897 [info] Upgrade yaml: 10 to 11
Aug 18 15:03:54 FakePi3 AdGuardHome[4261]: 2022/08/18 15:03:54.911905 [info] Upgrade yaml: 11 to 12
Aug 18 15:03:54 FakePi3 AdGuardHome[4261]: 2022/08/18 15:03:54.911926 [fatal] unexpected type of dns: map[string]interface {}
Aug 18 15:03:54 FakePi3 systemd[1]: adguardhome.service: Main process exited, code=exited, status=1/FAILURE
Aug 18 15:03:54 FakePi3 systemd[1]: adguardhome.service: Failed with result 'exit-code'.
Aug 18 15:04:00 FakePi3 systemd[1]: adguardhome.service: Scheduled restart job, restart counter is at 5.
Aug 18 15:04:00 FakePi3 systemd[1]: Stopped AdGuard Home (DietPi).
Aug 18 15:04:00 FakePi3 systemd[1]: Started AdGuard Home (DietPi).
Aug 18 15:04:00 FakePi3 AdGuardHome[4283]: 2022/08/18 15:04:00.161034 [info] AdGuard Home, version v0.107.10
Aug 18 15:04:00 FakePi3 AdGuardHome[4283]: 2022/08/18 15:04:00.161693 [info] Upgrade yaml: 10 to 11
Aug 18 15:04:00 FakePi3 AdGuardHome[4283]: 2022/08/18 15:04:00.161707 [info] Upgrade yaml: 11 to 12
Aug 18 15:04:00 FakePi3 AdGuardHome[4283]: 2022/08/18 15:04:00.161724 [fatal] unexpected type of dns: map[string]interface {}
Aug 18 15:04:00 FakePi3 systemd[1]: adguardhome.service: Main process exited, code=exited, status=1/FAILURE
Aug 18 15:04:00 FakePi3 systemd[1]: adguardhome.service: Failed with result 'exit-code'.
Aug 18 15:04:05 FakePi3 systemd[1]: adguardhome.service: Scheduled restart job, restart counter is at 6.
Aug 18 15:04:05 FakePi3 systemd[1]: Stopped AdGuard Home (DietPi).
Aug 18 15:04:05 FakePi3 systemd[1]: Started AdGuard Home (DietPi).
Aug 18 15:04:05 FakePi3 AdGuardHome[4293]: 2022/08/18 15:04:05.410209 [info] AdGuard Home, version v0.107.10
Aug 18 15:04:05 FakePi3 AdGuardHome[4293]: 2022/08/18 15:04:05.410605 [info] Upgrade yaml: 10 to 11
Aug 18 15:04:05 FakePi3 AdGuardHome[4293]: 2022/08/18 15:04:05.410614 [info] Upgrade yaml: 11 to 12
Aug 18 15:04:05 FakePi3 AdGuardHome[4293]: 2022/08/18 15:04:05.410634 [fatal] unexpected type of dns: map[string]interface {}
Aug 18 15:04:05 FakePi3 systemd[1]: adguardhome.service: Main process exited, code=exited, status=1/FAILURE
Aug 18 15:04:05 FakePi3 systemd[1]: adguardhome.service: Failed with result 'exit-code'.
Aug 18 15:04:10 FakePi3 systemd[1]: adguardhome.service: Scheduled restart job, restart counter is at 7.
Aug 18 15:04:10 FakePi3 systemd[1]: Stopped AdGuard Home (DietPi).
Aug 18 15:04:10 FakePi3 systemd[1]: adguardhome.service: Start request repeated too quickly.
Aug 18 15:04:10 FakePi3 systemd[1]: adguardhome.service: Failed with result 'exit-code'.
Aug 18 15:04:10 FakePi3 systemd[1]: Failed to start AdGuard Home (DietPi).

I'm using DietPi distro on a HP laptop (amd64).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions