nw.js icon indicating copy to clipboard operation
nw.js copied to clipboard

Failed to read DnsConfig

Open alexandrethsilva opened this issue 10 years ago • 21 comments

On OS X I have an alert that's triggered on every node-webkit project that I run (including the sample apps), where the terminal throws the following:

[38459:0409/121155:WARNING:dns_config_service_posix.cc(289)] Failed to read DnsConfig.

The apps seem to run normally despite the issue and while investigating the warning all I could find was the part of Chromium's source code that contains this trigger, but nothing else.

My question is if that's an actual error of node-webkit and how it could be solved.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

alexandrethsilva avatar Apr 09 '14 10:04 alexandrethsilva

I also experience this. Same behavior. I'm guessing it has something to do with network connectivity issues.

sholladay avatar Feb 15 '15 16:02 sholladay

Yeah, what's this about? I get this error all the time. It doesn't seem to cause any fatal problems with the app, but it pollutes the console.

I also get now:

[37399:0427/092538:FATAL:child_shared_bitmap_manager.cc(112)] Check failed: false. 

matthew-dean avatar Apr 27 '15 16:04 matthew-dean

Hi, I have the same issue on OS X

[26837:0430/214650:WARNING:dns_config_service_posix.cc(293)] Failed to read DnsConfig.

Nedudi avatar Apr 30 '15 18:04 Nedudi

Backdoor to Chromium? This happens when I'm offline.

xixixao avatar Jun 09 '15 18:06 xixixao

any word on this? Does anyone know how this affects the apps built?

angelxmoreno avatar Jul 06 '15 01:07 angelxmoreno

Any ETA on when this will be fixed?

screen shot 2015-09-01 at 11 27 36 am

matthew-dean avatar Sep 01 '15 18:09 matthew-dean

Same thing on OS X [15576:0306/162600:WARNING:dns_config_service_posix.cc(293)] Failed to read DnsConfig.

mayeaux avatar Mar 06 '16 22:03 mayeaux

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 09 '17 03:11 stale[bot]

Nice. I have the same issue, but it was resolved by bot :)

miry avatar Jan 02 '18 15:01 miry

When bugs go unfixed for a long time, they fix themselves!

sholladay avatar Jan 02 '18 15:01 sholladay

CC @Christywl please follow up.

rogerwang avatar Jan 03 '18 02:01 rogerwang

@miry @sholladay In 0.13 and later versions we changed to an optimized architecture so more features can be supported, see http://nwjs.io/blog/whats-new-in-0.13/ and it's good for keeping up with Chromium upstream -- we released with new Chromium versions within 1 day after upstream release. The new version would fixed many issues reported here and we're scrubbing them. We'll see if this issue still reproduce.

rogerwang avatar Jan 03 '18 02:01 rogerwang

I try some simple tests on Mac with nwjs v0.27.3 and don't see this error . @miry , could you please provide a sample to reproduce this issue?

Christywl avatar Jan 03 '18 02:01 Christywl

@Christywl the issue/warning related with Alpine docker image and Chromium in my case:

Sample Dockerfile:

FROM gradle:jdk8-alpine

USER root
RUN apk -U --no-cache --allow-untrusted add \
   zlib-dev \
   chromium \
   wait4ports \
   dbus \
   ttf-freefont \
   chromium-chromedriver \
   grep

After built you can run:

$ docker run -it imagename  /usr/bin/chromium-browser --disable-web-security --headless --disable-gpu --no-sandbox --dump-dom  https://www.chromestatus.com | head -n 1

miry avatar Jan 03 '18 15:01 miry

If it reproduces with the latest Chromium browser, please report it to the Chromium upstream: https://crbug.com/new

rogerwang avatar Jan 03 '18 15:01 rogerwang

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 31 '18 03:12 stale[bot]

I still need help with this.

etheaven avatar Sep 26 '19 11:09 etheaven

Still happening.

DerZyklop avatar Mar 15 '22 07:03 DerZyklop

This is still happening till this point in time. I still experience it even after using https://github.com/Zenika/alpine-chrome/blob/master/Dockerfile as recommended by https://stackoverflow.com/a/56829128/2787992

I do not know if this is the reason why Chrome will not use a working VPN inside the docker container I set up, but Firefox is able to use same VPN!

Here is a sample snapshot: Screenshot 2022-09-04 at 08 31 39

On further investigation, WARNING:dns_config_service_linux.cc(428)] Failed to read DnsConfig appears at the source code location https://source.chromium.org/chromium/chromium/src/+/master:net/dns/dns_config_service_win.cc;l=512

ichux avatar Sep 04 '22 07:09 ichux

Have got this issue with updating Chrome 110.0.0 version. WARNING:dns_config_service_win.cc(583)] Failed to read DnsConfig.

Any workaround of the issue?

YuliyaFilippova avatar Mar 02 '23 10:03 YuliyaFilippova

any workaround ?

dberardo-com avatar Sep 21 '23 14:09 dberardo-com