Influxdb2.0 weird behaver -- dns lookup

I ran influxdb2.0 (influxdb_2.0.0-beta.2) as a service as bellow:
++++++++++++++++++
[Unit]
Description=InfluxDB 2.0 service file.
Documentation=Get started with InfluxDB | InfluxDB OSS 2.0 Documentation
After=network-online.target

[Service]
User=root
Group=root
ExecStart=/usr/local/bin/influxd
Restart=on-failure

[Install]
WantedBy=multi-user.target
++++++++++++++++++++++

Then run it with : systemctl start influxdb2.service
Then I saw a lot of logs like bellow:

Feb 08 15:38:11 alcl influxd[4351]: ts=2020-02-08T07:38:11.296231Z lvl=error msg=“Unable to gather” log_id=0KpvGtel000 error=“Get http://alcl:9999/metrics: dial tcp: lookup alcl on 100.100.2.136:53: no such ho
st”
Feb 08 15:38:21 alcl influxd[4351]: ts=2020-02-08T07:38:21.296663Z lvl=error msg=“Unable to gather” log_id=0KpvGtel000 error=“Get http://alcl:9999/metrics: dial tcp: lookup alcl on 100.100.2.136:53: no such ho
st”

What happen here, it does name resolution on 100.100.2.136 on port 53?
BTW , seems root is a bad user to run influxdb , any suggestion ?

Hi @alex.lu,

Thank you for your question.

It looks like you’ve configured a scraper to fetch alcl:9999 and your DNS server cannot resolve this.

The port number suggests that you’re maybe trying to scrape internal metrics; which should use 127.0.0.1:9999

It could be that this is a bug or it could be that you added alcl:9999.

If you let us know which, we can help to fix :+1:

It works well, thank you!

Hi Rawkode,

Could you please help?
Since I have installed influxdb2 on docker (Synology NAS) I cannot get it talk each other with Grafana.
Both dockers are on the same network in the NAS.

Actually I have 2 error messages.

  1. From Influxdb; error msg=“Unable to gather” log_id=0UdV6EZl000 error="Get

  2. From Grafana (when trying to connect to influxdb); error: {refId: “test”, message: “Post "http://10.0.1.2:8086/api/v2/query?org=8916051b9aab6cef\”: dial tcp 10.0.1.2:8086: i/o timeout"}

Do you know how can i fix it?
Thanks,

Hi Rawkode,

In mean time i manage to fix it, now can connect to influxdb, but bucket not showing up when creating graphs.