Skip to content

Not working on IPv6 host #2151

@nicolabeghin

Description

@nicolabeghin

Description

On an IPv6-only host, infrastructure agent is unable to communicate with Newrelic, even if in https://docs.newrelic.com/docs/new-relic-solutions/get-started/networks/ it's reported

These endpoints support both IPv4 and IPv6, and have HTTP/2 and HTTP/3 enabled

Expected Behavior

Newrelic agent to work - it should be enough to be able to define the used endpoint in the agent? cannot find how!

Troubleshooting or NR Diag results

docker-compose.yml used

services:
agent:
container_name: newrelic
image: newrelic/infrastructure:latest
cap_add:
- SYS_PTRACE
network_mode: host
pid: host
privileged: true
volumes:
- "/:/host:ro"
- "/var/run/docker.sock:/var/run/docker.sock"
- "./newrelic-infra.yml:/etc/newrelic-infra.yml"
restart: unless-stopped

Steps to Reproduce

Deploy docker-compose.yml as above the monitor docker logs

Your Environment

Rocky Linux on Hetzner, IPv6 only

Logs

time=2025-11-17T22:04:32Z
level=warning
msg=URL error detected. May be a configuration problem or a network connectivity issue.
component=AgentService
error=Head \"https://infra-api.eu.newrelic.com\": context deadline exceeded
service=newrelic-infra
time=2025-11-17T22:04:32Z
level=warning
msg=Collector endpoint not reachable, retrying...
collector_url=https://infra-api.eu.newrelic.com
component=AgentService
error=Head \"https://infra-api.eu.newrelic.com\": context deadline exceeded
service=newrelic-infra
time=2025-11-17T22:04:43Z
level=warning
msg=URL error detected. May be a configuration problem or a network connectivity issue.
component=AgentService
error=Head \"https://infra-api.eu.newrelic.com\": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
service=newrelic-infra

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions