Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DNS unreachable when using AG #1918

Closed
atkrv opened this issue Sep 7, 2017 · 29 comments
Closed

DNS unreachable when using AG #1918

atkrv opened this issue Sep 7, 2017 · 29 comments
Assignees
Milestone

Comments

@atkrv
Copy link

atkrv commented Sep 7, 2017

DNS becomes unresolvable within 15 seconds of starting Chrome, if AG and Google Home are on.

User runs about 140 tabs on Chrome (yes, yes, he knows) and have never had any troubles with Chrome or AG until he started using his new Google Home - literally 30 seconds after he started using it.

Steps to reproduce

  1. Turn AdGuard and Google Home ON
  2. Open a Chrome with a few tabs

Expected behavior

DNS shouldn't be broken using AdGuard + Google Home + Chrome.

Actual behavior

If he opens Chrome (even a few tabs) when AG and GHome are on, the DNS issue appears without fail. This 'breaks' the DNS for the entire PC (including other apps) until reboot. Logging out doesn't resolve it, nor does the 'ipconfig /flushdns,' etc.
Using Firefox (only 20 tabs) + AG + GHome causes no issues at all.
From a clean boot, if he turns off AG, leave GHome on, and open chrome (140 tabs) and load AG 1 min afterwards.... everything is fine.

Related report

https://forum.adguard.com/index.php?threads/dns-unreachable-when-using-ag-chrome-browser-google-home.24776/

Your environment

NETGEAR R7000 (running DD-WRT) router shows a peak of 1200 connections when Chrome is first loading up. This settles to about 200 after everything has loaded (~ 60 seconds later).

Hardware:

  • Win 10 Pro - 64 Bit (v 1703)
  • Chrome Version 60.0.3112.113 (Official Build) (64-bit)
  • Adguard (Beta) 6.2.390.2018 + 3 extensions

Extensions:

  • Adguard assistant Beta (v 4.0.11)
  • Adguard Popup Blocker Beta (v 1.0.21)
  • Mouseover Popup Image Viewer (v 2017.4.24.1)

Logs

  • I'll provide the logs on demand
@atkrv
Copy link
Author

atkrv commented Sep 7, 2017

jasonzerozero:

To add, when closing AG, if I allow the background service to keep running (before loading Chrome), Chrome and GHome will work.

@BooBerry
Copy link

BooBerry commented Sep 8, 2017

I don't think Google Home is a factor, as I encountered a similar issue 20 minutes ago (DNS probe errors in Chrome) and I don't even use Google Home. Of course, rebooting fixed it. First time in several weeks I encountered the DNS thing but I can't reproduce it again or make it happen.

Sadly, I didn't have debug mode enabled at the time. =\

@ameshkov ameshkov added this to the 6.2 milestone Sep 12, 2017
@ameshkov ameshkov changed the title DNS unreachable when using AG + Chrome browser + Google Home DNS unreachable when using AG Sep 12, 2017
@ameshkov
Copy link
Member

What I know for sure about this is that it was not happening with the previous beta. We should analyze the changes between the last two beta versions in order to figure out what's wrong.

@voarsh
Copy link

voarsh commented Sep 13, 2017

I am having something similar!

I am occasionally having my internet not working and found it was related to Adguard.
If I kill the Adguard process my internet works. I also note that Adguard is also using a much higher percentage of CPU usage! From 20/30%!

@ameshkov
Copy link
Member

@voarsh the latest beta, right?

We've narrowed it down to the specific module, working on resolving the issue.

@voarsh
Copy link

voarsh commented Sep 13, 2017

@ameshkov That's good to hear.

Yes, V6.2.390.2018.

Do you need to know any of my preferences/extensions/settings?

Thanks.

@ameshkov
Copy link
Member

@voarsh I hope it's enough, we'll post a test build once it's ready

@ameshkov
Copy link
Member

It seems that we need some help after all.

Could you please check the new build?

Here is a link to the new build installation file:
https://uploads.adguard.com/up04_m03ws.exe

What to do:

  1. Install
  2. Enable "debug" log via tray menu -> advanced -> logging level
  3. Check if the issue is still present
  4. If it does, please create a dump of "AdguardSvc.exe" process. It can be done from the Task manager:
    https://uploads.adguard.com/up04_twc8k.png

We'll need the dump and the log files from %programdata%\Adguard\Logs

Please don't attach them to this issue, send it directly to devteam at adguard.com

@ameshkov
Copy link
Member

One of the users reported that this test build helped.

@ameshkov
Copy link
Member

One more test build with partly disabled UDP filtering:
https://uploads.adguard.com/up04_65uvi.exe

We've just tested it with @Steve1209 and the issue is gone with it.

It means that we narrowed it down to the changes in UDP filtering (there were some important changes in the latest beta).

@ameshkov
Copy link
Member

And one more build:
https://uploads.adguard.com/up04_vcac9.exe

Changes:

  1. UDP filtering is back on.
  2. Made sure UDP filtering is single-threaded (was multi-threaded before, could be problematic in theory)

@Steve1209
Copy link

Steve1209 commented Sep 18, 2017 via email

@ameshkov
Copy link
Member

And one more again:
https://uploads.adguard.com/up04_ngjok.exe

Completely reverted it to the single-threaded mode.

@ameshkov
Copy link
Member

Resolved with this build: https://uploads.adguard.com/up04_65uvi.exe

@anderdeath
Copy link

Unfortunately, it didn't help. I used this latest build but in 5-10 minutes after installing it (on 6.1) I got AdGuard hanging without possibility to use any browser anymore.

@JoshuaNCL
Copy link

JoshuaNCL commented Sep 21, 2017

And one more again:
https://uploads.adguard.com/up04_ngjok.exe

Completely reverted it to the single-threaded mode.

I've tried this and unfortunately the issue is still present.

Steps taken to trigger the issue:

  1. Restart computer
  2. Log in and wait for Adguard to initialise
  3. Open Google Chrome

Once Google Chrome has initialised, web connectivity will be unavailable until the Adguard processes are killed.

Additional Information:

The issue appears to manifest around the time Chrome makes HTTP HEAD requests to non-existent domains in order to check for DNS redirection.

Looking at the service logs, (service_21-09-2017-10_51_33-2017-09-21.log) there are stack traces relating to these domain names. (Example below:)

VERBOSE, AdguardSvc, 24, 21.09.2017 10:52:40.285, Cannot resolve host czuhrnsrriz: System.Net.Sockets.SocketException: No such host is known
Source: System
Stack trace:    at System.Net.Dns.GetAddrInfo(String name)
at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6)
at System.Net.Dns.GetHostAddresses(String hostNameOrAddress)
at Adguard.Commons.Network.DnsUtils.ResolveHost(String hostNameOrAddress)
at Adguard.Commons.Network.DnsUtils.ResolveHostQuietly(String hostNameOrAddress)

The non-existent domains Chrome called out to on this occasion are:

http://czuhrnsrriz/
http://akeujsnsnfkcfc/
http://undyhltf/

Thanks.

@ameshkov
Copy link
Member

Ok, guys, let me please upload the proper build with a proper name (with version in it).

I am no more sure which one is what:)

@ameshkov
Copy link
Member

ameshkov commented Sep 21, 2017

Here you are, version 6.2.400:
https://uploads.adguard.com/up04_ji7em_setup_6.2.400_dev.exe

It's confirmed by 5 testers that this build resolves the issue.

@vozersky vozersky added the beta label Sep 25, 2017
@ameshkov
Copy link
Member

ameshkov commented Sep 25, 2017

Guys, we have a problem.

The build .400 has a serious issue -- one of AdGuard's libs is built with debug flag enabled. It writes debug log to the file in AdGuard's program directory -- look for AdguardNetApiLog.txt. It may take dozens of gigabytes easily.

Please use this newer build instead (until the next beta is out):
https://uploads.adguard.com/Setup_6.2.403_beta.exe

Also, I'd advise you to remove AdguardNetApiLog.txt after the update.

@Bluscream
Copy link

Thats a huge one o.O

@FadeMind
Copy link

@Bluscream I had 20 GB size of AdguardNetApiLog.txt during using build 400 ☣️ SSD drive like this 💃

@vozersky vozersky removed the beta label Sep 26, 2017
@voarsh
Copy link

voarsh commented Sep 26, 2017

No problems with CPU/no internet with 6.2.403 so far...

@JoshuaNCL
Copy link

JoshuaNCL commented Sep 29, 2017

Hi, I'm still having issues using 6.2.403. I lose internet connectivity on startup, and I need to kill the Adguard processes, disconnect from the network and reconnect for it to work again.

Logs removed

Thanks!

@ameshkov
Copy link
Member

@JoshuaNCL I see a couple of outgoing DNS requests, but nothing really serious.

Does it happen on startup only?

@ameshkov ameshkov reopened this Sep 29, 2017
@JoshuaNCL
Copy link

Hi, I haven't not actually been regularly restarting Adguard when this happens, but I've just launched it again and I haven't lost connectivity again.

@ameshkov
Copy link
Member

Maybe it's a compatibility issue? What AV do you have installed?

@ameshkov
Copy link
Member

Also, it'd be better to use the latest build:
https://uploads.adguard.com/Setup_6.2.419_beta.exe

@JoshuaNCL
Copy link

I'm using Windows defender, I can't see anything it it regarding AdGuard but I did only take a quick look. Oh sorry I am actually using 6.2.419 currently.

@Steve1209
Copy link

Andrey,

I installed 6.2.419 as well, I haven't been having any problems, don't really expect to have a problem now either.

@adbuker adbuker modified the milestones: 6.2, 6.3 Nov 10, 2017
@adbuker adbuker closed this as completed Nov 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests