• /
  • EnglishEspañolFrançais日本語한국어Português
  • Log inStart now

Troubleshoot common issues

|View as Markdown

Important

Agent Control and New Relic Control are now generally available for Kubernetes! Support for Linux hosts and Windows hosts is also in public preview program, pursuant to our pre-release policies.

This document covers the steps to troubleshoot common issues when installing or operating Agent Control. It is organized by environment.

Kubernetes troubleshooting

Linux hosts troubleshooting

Windows hosts troubleshooting

If Agent Control is not running or healthy, follow these diagnostic steps in order:

1. Verify service status:

Get-Service -Name newrelic-agent-control

Expected: Status : Running. If stopped or missing, proceed to step 2.

2. Check service logs:

View the most recent log file (log files are named with a date prefix, like 2026-02-09.newrelic-agent-control.log):

Get-ChildItem "C:\ProgramData\New Relic\newrelic-agent-control\log\agent-control\" -Filter "*.newrelic-agent-control.log" | Sort-Object LastWriteTime -Descending | Select-Object -First 1 | Get-Content -Tail 50

Tip

File logging configuration: Agent Control requires explicit configuration to enable file logging. If no log files exist, add this to your local_config.yaml:

log:
file:
enabled: true

Then restart the service for logs to appear.

3. Test manual execution:

Run Agent Control from command line to bypass service-specific issues. It reads its configuration from the default local config path (local-data\agent-control\local_config.yaml) automatically, so no flag is needed:

cd "C:\Program Files\New Relic\newrelic-agent-control"
.\newrelic-agent-control.exe

If it runs successfully from command line but not as a service, this indicates antivirus or permission issues.

4. Verify fleet type:

Ensure the fleet is type "Host - Windows". Using "Host - Linux" will cause failures. Check in Fleet Control UI under fleet details.

5. Check for port conflicts:

Agent Control uses port 51200 for its health endpoint:

netstat -ano | findstr :51200

If another process is using this port, identify it:

Get-Process -Id (Get-NetTCPConnection -LocalPort 51200).OwningProcess

6. Verify network connectivity:

Test connection to Fleet Control:

Test-NetConnection -ComputerName fleet-control.newrelic.com -Port 443
Test-NetConnection -ComputerName download.newrelic.com -Port 443

Both should show TcpTestSucceeded : True.

7. Review configuration syntax:

Check for YAML syntax errors:

Get-Content "C:\Program Files\New Relic\newrelic-agent-control\local-data\agent-control\local_config.yaml"

Look for common issues: incorrect indentation, missing colons, unquoted special characters.

8. Check for conflicting agents:

Verify existing New Relic agents are uninstalled:

Get-Service -Name newrelic-infra -ErrorAction SilentlyContinue
Get-Process -Name newrelic-infra -ErrorAction SilentlyContinue

If either command returns results, uninstall the Infrastructure Agent before proceeding.

9. Verify Administrator privileges:

Confirm PowerShell is running as Administrator:

([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)

Should return True.

10. Restart the service:

After addressing issues, restart the service:

Restart-Service -Name newrelic-agent-control
Start-Sleep -Seconds 30
Get-Service -Name newrelic-agent-control
Invoke-WebRequest -Uri "http://localhost:51200/status" -UseBasicParsing

Common error messages

Error/SymptomLikely CauseSolution
Error 1067: The process terminated unexpectedlyAntivirus blocking, configuration error, or missing dependenciesAdd antivirus exclusions, verify config syntax, check service logs for details
Service starts then stops immediatelyConfiguration file error or invalid credentialsReview local_config.yaml, verify license key and fleet credentials
Port 51200 already in usePort conflict with another applicationIdentify process using port with netstat, stop conflicting service
Failed to connect to Fleet ControlNetwork/firewall blocking, or incorrect fleet configurationTest connectivity with Test-NetConnection, verify fleet ID and type
Invalid fleet type error in logsFleet type is not "Host - Windows"Recreate fleet with correct type in Fleet Control UI
Service won't start, runs fine from command lineAntivirus or Windows security policy blocking serviceAdd exclusions for executables and directories, check with security team
License key validation failedIncorrect, expired, or missing license keyVerify license key in config file, ensure it's valid for your account
No data appearing in UI after 10+ minutesAgent not deployed or configuration not syncedCheck Fleet Control UI for deployment status, verify fleet configuration

Getting Additional Help

If troubleshooting doesn't resolve your issue:

  1. Enable debug logging by editing local_config.yaml:

    log:
    level: debug
  2. Restart the service and reproduce the issue

  3. Collect logs for support:

    Get-ChildItem "C:\ProgramData\New Relic\newrelic-agent-control\log\agent-control\" -Filter "*.newrelic-agent-control.log" | Sort-Object LastWriteTime -Descending | ForEach-Object { Get-Content $_.FullName } | Out-File -FilePath "$env:USERPROFILE\Desktop\agent-control-debug.log"
  4. Contact New Relic Support with the collected logs

Troubleshoot Agent Control on host with NRDiag

New Relic diagnostics tool NRDiag is a utility that gathers resources and logs related to Agent Control on the host for debugging. This applies to both Linux and Windows hosts; the corresponding suite automatically detects your OS and runs the relevant checks.

Follow these steps to gather all the data:

  1. On your host, install the NRDiag tool using the getting started guide.

  2. Run the on-host Agent Control suite:

    bash
    $
    ./nrdiag -suites onhost-agent-control
  3. The expected output should look like the following report:

    bash
    Check Results
    -------------------------------------------------
    Success AgentControl/Config/Agent [AgentControl agent identified from binary: /usr/bin/newrelic-agent-control]
    Success AgentControl/Config/DirTree [Collected agent-control directory tree.]
    Success AgentControl/Agent/Connect [All agent-control endpoints reachable and identity key valid...]
    Success AgentControl/Agent/Logs [Collected agent-control logs from journalctl.]
    Success AgentControl/Agent/StatusServer [agent-control status server response: ...]
    See nrdiag-output.json for full results.

    tip

    On Windows, the AgentControl/Agent/Logs task collects the log files directly from C:\ProgramData\New Relic\newrelic-agent-control\log\agent-control\ instead of journalctl.

  4. All the logs and resources related to Agent Control are saved in the nrdiag_output.zip file in the current directory. You can analyze the contents of the zip file or open a support ticket with New Relic support for further assistance.

Copyright © 2026 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.