URL error detected

Hi All, I am new to New Relic. I am trying to install new relic agent on my kubernetes environment with helm chart, but it fails. There are 6 kinds of containers were trying to launch: newrelice-bundle-kube-state-metrics, newrelic-bundle-newrelic-infrastructure, newrelic-bundle-newrelic-logging, newrelic-bundle-nri-kube-events, newrelic-bundle-nri-metadata, newrelic-bundle-nri-prometheus.
These containers were all failed.

Among those, the error message from newrelice-bundle-kube-state-metrics, is below. I just fallowed the description on manual. Could you please let me know what’s wrong?

[root@master ~]# kubectl logs newrelic-bundle-kube-state-metrics-654d6cc7bc-9scfl
I0109 13:33:00.539228 1 main.go:89] Using collectors certificatesigningrequests,configmaps,cronjobs,daemonsets,deployments,endpoints,horizontalpodautoscalers,ingresses,jobs,limitranges,mutatingwebhookconfigurations,namespaces,networkpolicies,nodes,persistentvolumeclaims,persistentvolumes,poddisruptionbudgets,pods,replicasets,replicationcontrollers,resourcequotas,secrets,services,statefulsets,storageclasses,validatingwebhookconfigurations,volumeattachments
I0109 13:33:00.539538 1 main.go:98] Using all namespace
I0109 13:33:00.539572 1 main.go:139] metric white-blacklisting: blacklisting the following items:
W0109 13:33:00.539616 1 client_config.go:543] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.
I0109 13:33:00.560984 1 main.go:184] Testing communication with server
[root@master ~]# kubectl logs newrelic-bundle-newrelic-infrastructure-fbdzz
time=“2021-01-09T13:33:37Z” level=info msg=“runtime configuration” agentUser=root component=“New Relic Infrastructure Agent” executablePath= maxProcs=1 pluginDir="[/etc/newrelic-infra/integrations.d /var/db/newrelic-infra/integrations.d]"
time=“2021-01-09T13:33:37Z” level=info msg=“Checking network connectivity…” component=AgentService service=newrelic-infra
time=“2021-01-09T13:33:45Z” level=warning msg=“URL error detected. May be a configuration problem or a network connectivity issue.” component=AgentService error=“Head “https://infra-api.newrelic.com”: dial tcp: lookup infra-api.newrelic.com on 10.96.0.10:53: server misbehaving” service=newrelic-infra
time=“2021-01-09T13:33:45Z” level=warning msg=“Collector endpoint not reachable, retrying…” collector_url=“https://infra-api.newrelic.com” component=AgentService error=“Head “https://infra-api.newrelic.com”: dial tcp: lookup infra-api.newrelic.com on 10.96.0.10:53: server misbehaving” service=newrelic-infra
time=“2021-01-09T13:33:54Z” level=warning msg=“URL error detected. May be a configuration problem or a network connectivity issue.” component=AgentService error=“Head “https://infra-api.newrelic.com”: dial tcp: lookup infra-api.newrelic.com on 10.96.0.10:53: server misbehaving” service=newrelic-infra
time=“2021-01-09T13:33:54Z” level=warning msg=“Collector endpoint not reachable, retrying…” collector_url=“https://infra-api.newrelic.com” component=AgentService error=“Head “https://infra-api.newrelic.com”: dial tcp: lookup infra-api.newrelic.com on 10.96.0.10:53: server misbehaving” service=newrelic-infra
time=“2021-01-09T13:34:04Z” level=warning msg=“URL error detected. May be a configuration problem or a network connectivity issue.” component=AgentService error=“Head “https://infra-api.newrelic.com”: dial tcp: lookup infra-api.newrelic.com on 10.96.0.10:53: server misbehaving” service=newrelic-infra
time=“2021-01-09T13:34:04Z” level=warning msg=“Collector endpoint not reachable, retrying…” collector_url=“https://infra-api.newrelic.com” component=AgentService error=“Head “https://infra-api.newrelic.com”: dial tcp: lookup infra-api.newrelic.com on 10.96.0.10:53: server misbehaving” service=newrelic-infra
time=“2021-01-09T13:34:15Z” level=warning msg=“URL error detected. May be a configuration problem or a network connectivity issue.” component=AgentService error=“Head “https://infra-api.newrelic.com”: dial tcp: lookup infra-api.newrelic.com on 10.96.0.10:53: server misbehaving” service=newrelic-infra
time=“2021-01-09T13:34:15Z” level=warning msg=“Collector endpoint not reachable, retrying…” collector_url=“https://infra-api.newrelic.com” component=AgentService error=“Head “https://infra-api.newrelic.com”: dial tcp: lookup infra-api.newrelic.com on 10.96.0.10:53: server misbehaving” service=newrelic-infra
time=“2021-01-09T13:34:26Z” level=warning msg=“URL error detected. May be a configuration problem or a network connectivity issue.” component=AgentService error=“Head “https://infra-api.newrelic.com”: dial tcp: lookup infra-api.newrelic.com on 10.96.0.10:53: server misbehaving” service=newrelic-infra
time=“2021-01-09T13:34:26Z” level=warning msg=“Collector endpoint not reachable, retrying…” collector_url=“https://infra-api.newrelic.com” component=AgentService error=“Head “https://infra-api.newrelic.com”: dial tcp: lookup infra-api.newrelic.com on 10.96.0.10:53: server misbehaving” service=newrelic-infra
time=“2021-01-09T13:34:40Z” level=warning msg=“URL error detected. May be a configuration problem or a network connectivity issue.” component=AgentService error=“Head “https://infra-api.newrelic.com”: dial tcp: lookup infra-api.newrelic.com on 10.96.0.10:53: server misbehaving” service=newrelic-infra
time=“2021-01-09T13:34:40Z” level=error msg=“Can’t reach the New Relic collector.” component=AgentService error=“Head “https://infra-api.newrelic.com”: dial tcp: lookup infra-api.newrelic.com on 10.96.0.10:53: server misbehaving” service=newrelic-infra

Hi @puremjlee this looks like an issue connecting to our infra-api.newrelic.com endpoint. I’m wondering if you use a proxy or anything like that to connect to public domains?

You can try connecting to that endpoint from the host using a cURL command to check if it has network access :slight_smile:

@rdouglas we tried connecting with it and curl is working fine But we are still getting the warning message and cant make the agent report to Newrelic.

Hi @Avneesh.Jain ,

Thank you for your patience. Following up to see if you are still experiencing this issue? I’m happy to help if so :slightly_smiling_face: