No internet connection after each power loss #1997

Closed
opened 2026-03-04 01:41:51 -05:00 by deekerman · 8 comments
Owner

Originally created by @adizag on GitHub (Oct 3, 2020).

  • I am running the latest version
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed

Issue Details

  • Version of AdGuard Home server:
    0.103.3

  • How did you setup DNS configuration:
    router

  • If it's a router or IoT, please write device model:
    Router - Orbi, Adguard is running on RPI3b+

  • Operating system and version:
    Raspbian GNU/Linux 10 (buster), Kernel:Linux 5.4.51-v7+

Expected Behavior

After power loss, the modem, router, and adguardhome (on RPI) are rebooted. The internet is working.

Actual Behavior

Adguardhome is loaded and accessible, but there is no internet connection, only internal network.
I have to reboot the RPI running AGH in order to have the router get access to the internet.

Screenshots

N/A

Additional Information

Internet setup - only AGH is defined as DNS server.
AGH is the DHCP server as well.

Originally created by @adizag on GitHub (Oct 3, 2020). - [x] I am running the latest version - [X] I checked the documentation and found no answer - [X] I checked to make sure that this issue has not already been filed ### Issue Details * **Version of AdGuard Home server:** 0.103.3 * **How did you setup DNS configuration:** router * **If it's a router or IoT, please write device model:** Router - Orbi, Adguard is running on RPI3b+ * **Operating system and version:** Raspbian GNU/Linux 10 (buster), Kernel:Linux 5.4.51-v7+ ### Expected Behavior After power loss, the modem, router, and adguardhome (on RPI) are rebooted. The internet is working. ### Actual Behavior Adguardhome is loaded and accessible, but there is no internet connection, only internal network. I have to reboot the RPI running AGH in order to have the router get access to the internet. ### Screenshots N/A ### Additional Information Internet setup - only AGH is defined as DNS server. AGH is the DHCP server as well.
deekerman 2026-03-04 01:41:51 -05:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@ameshkov commented on GitHub (Oct 5, 2020):

I am not sure what could be the issue here, not enough details.

but there is no internet connection

What do you mean? There are many reasons why there could be no internet connection, it would help to know what exactly is the reason in your case.

Also, try enabling verbose log in AdGuard Home and check for errors there:

  1. Configure AdGuard Home to collect logs:
    • Specify log_file
    • Set verbose to True
  2. Restart AdGuard Home and reproduce the issue
@ameshkov commented on GitHub (Oct 5, 2020): I am not sure what could be the issue here, not enough details. > but there is no internet connection What do you mean? There are many reasons why there could be no internet connection, it would help to know what exactly is the reason in your case. Also, try enabling verbose log in AdGuard Home and check for errors there: 1. [Configure](https://github.com/AdguardTeam/AdGuardHome/wiki/Configuration#configuration-file) AdGuard Home to collect logs: * Specify `log_file` * Set `verbose` to `True` 2. Restart AdGuard Home and reproduce the issue
Author
Owner

@adizag commented on GitHub (Oct 9, 2020):

It happens every power loss.
internal network is working but not external. I have to reboot the RPI of ADH in order to have internet connection.

did the log file- It is 75 MB.
How can I send it to you?

@adizag commented on GitHub (Oct 9, 2020): It happens every power loss. internal network is working but not external. I have to reboot the RPI of ADH in order to have internet connection. did the log file- It is 75 MB. How can I send it to you?
Author
Owner

@ameshkov commented on GitHub (Oct 13, 2020):

First of all, archive it (use zip or something like this).

You can send it to devteam at adguard.com - mention this issue in the email please.

@ameshkov commented on GitHub (Oct 13, 2020): First of all, archive it (use zip or something like this). You can send it to `devteam at adguard.com` - mention this issue in the email please.
Author
Owner

@adizag commented on GitHub (Oct 13, 2020):

Sent by mail.
TNX!


"יש המטביעים את צרותיהם - ויש המלמדים אותן לשחות..."
"אין מקום שהוא רחוק מדי"

On Tue, 13 Oct 2020 at 13:14, Andrey Meshkov notifications@github.com
wrote:

First of all, archive it (use zip or something like this).

You can send it to devteam at adguard.com - mention this issue in the
email please.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/AdguardTeam/AdGuardHome/issues/2149#issuecomment-707640392,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEEVTQFDWM7MKXVB45X6CX3SKQR77ANCNFSM4SDJACAQ
.

@adizag commented on GitHub (Oct 13, 2020): Sent by mail. TNX! ____________________________________________ "יש המטביעים את צרותיהם - ויש המלמדים אותן לשחות..." "אין מקום שהוא רחוק מדי" On Tue, 13 Oct 2020 at 13:14, Andrey Meshkov <notifications@github.com> wrote: > First of all, archive it (use zip or something like this). > > You can send it to devteam at adguard.com - mention this issue in the > email please. > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/AdguardTeam/AdGuardHome/issues/2149#issuecomment-707640392>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AEEVTQFDWM7MKXVB45X6CX3SKQR77ANCNFSM4SDJACAQ> > . >
Author
Owner

@ameshkov commented on GitHub (Oct 14, 2020):

Hm, I don't see it. Plz try my personal email (am at adguard.com)

@ameshkov commented on GitHub (Oct 14, 2020): Hm, I don't see it. Plz try my personal email (am at adguard.com)
Author
Owner

@adizag commented on GitHub (Oct 14, 2020):

Just did.
Tell me if you got it?

בתאריך יום ד׳, 14 באוק׳ 2020, 14:38, מאת Andrey Meshkov ‏<
notifications@github.com>:

Hm, I don't see it. Plz try my personal email (am at adguard.com)


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/AdguardTeam/AdGuardHome/issues/2149#issuecomment-708345126,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEEVTQAVDNI4HONO3TJ6ZODSKWETVANCNFSM4SDJACAQ
.

@adizag commented on GitHub (Oct 14, 2020): Just did. Tell me if you got it? בתאריך יום ד׳, 14 באוק׳ 2020, 14:38, מאת Andrey Meshkov ‏< notifications@github.com>: > Hm, I don't see it. Plz try my personal email (am at adguard.com) > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/AdguardTeam/AdGuardHome/issues/2149#issuecomment-708345126>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AEEVTQAVDNI4HONO3TJ6ZODSKWETVANCNFSM4SDJACAQ> > . >
Author
Owner

@ameshkov commented on GitHub (Oct 18, 2020):

@adizag I did, thank you.

I suppose the issue is caused by this:

2020/10/09 11:19:28 376#9 [info] Couldn't find IPv4 address of interface eth0 &{Index:2 MTU:1500 Name:eth0 HardwareAddr:b8:27:eb:07:74:4a Flags:up|broadcast|multicast}
2020/10/09 11:19:28 376#9 [error] DHCP: Couldn't find IPv4 address of interface eth0 &{Index:2 MTU:1500 Name:eth0 HardwareAddr:b8:27:eb:07:74:4a Flags:up|broadcast|multicast}
2020/10/09 11:19:28 376#9 [error] Failed to initialize DHCP server, exiting

For some reason, AdGuard Home service is initialized too early, before your network is initialized.

I am not sure why, it is specified in AdGuard Home service that it needs to be initialized after network:
After=syslog.target network-online.target

Try inspecting your systemd services configuration, something is wrong with it.

@ameshkov commented on GitHub (Oct 18, 2020): @adizag I did, thank you. I suppose the issue is caused by this: ``` 2020/10/09 11:19:28 376#9 [info] Couldn't find IPv4 address of interface eth0 &{Index:2 MTU:1500 Name:eth0 HardwareAddr:b8:27:eb:07:74:4a Flags:up|broadcast|multicast} 2020/10/09 11:19:28 376#9 [error] DHCP: Couldn't find IPv4 address of interface eth0 &{Index:2 MTU:1500 Name:eth0 HardwareAddr:b8:27:eb:07:74:4a Flags:up|broadcast|multicast} 2020/10/09 11:19:28 376#9 [error] Failed to initialize DHCP server, exiting ``` For some reason, AdGuard Home service is initialized too early, before your network is initialized. I am not sure why, it is specified in AdGuard Home service that it needs to be initialized after network: `After=syslog.target network-online.target` Try inspecting your systemd services configuration, something is wrong with it.
Author
Owner

@adizag commented on GitHub (Nov 7, 2020):

@ameshkov
it is already defined as you mentioned, so it didn't solve my problem...

`[Unit]
Description=AdGuard Home: Network-level blocker
ConditionFileIsExecutable=/home/pi/AdGuardHome/AdGuardHome
After=syslog.target network-online.target

[Service]
StartLimitInterval=5
StartLimitBurst=10
ExecStart=/home/pi/AdGuardHome/AdGuardHome "-s" "run"

WorkingDirectory=/home/pi/AdGuardHome

StandardOutput=file:/var/log/AdGuardHome.out
StandardError=file:/var/log/AdGuardHome.err
Restart=always
RestartSec=10
EnvironmentFile=-/etc/sysconfig/AdGuardHome

[Install]
WantedBy=multi-user.target`

@adizag commented on GitHub (Nov 7, 2020): @ameshkov it is already defined as you mentioned, so it didn't solve my problem... `[Unit] Description=AdGuard Home: Network-level blocker ConditionFileIsExecutable=/home/pi/AdGuardHome/AdGuardHome After=syslog.target network-online.target [Service] StartLimitInterval=5 StartLimitBurst=10 ExecStart=/home/pi/AdGuardHome/AdGuardHome "-s" "run" WorkingDirectory=/home/pi/AdGuardHome StandardOutput=file:/var/log/AdGuardHome.out StandardError=file:/var/log/AdGuardHome.err Restart=always RestartSec=10 EnvironmentFile=-/etc/sysconfig/AdGuardHome [Install] WantedBy=multi-user.target`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/AdGuardHome#1997
No description provided.