Troubleshooting Network Agent

Nomatron is in early access. Some advanced workflows may not be covered in the public docs.

When the Network Agent is not working, the problem is usually in one of four places:

  • control-plane authentication;
  • gRPC or HTTP connectivity back to Nomatron;
  • private reachability to the Nomad API; or
  • mismatches between the agent config and the Nomatron-side cluster definition.

This page is designed to help you isolate which one it is.

First Checks

Start with these questions first:

  1. is the process still running?
  2. did the config file load successfully?
  3. did the agent ever connect to the server?
  4. can the agent host reach the private Nomad API?

Those four checks usually cut the search space down very quickly.

Process And Config Problems

Symptom: The Process Exits Immediately

Most often caused by:

  • invalid HCL config;
  • missing required fields such as agent_id, or no resolvable agent token (agent_token_file, or NOMATRON_CONNECTIVITY_AGENT_TOKEN);
  • mismatched server_addrs and http_base_urls;
  • missing cluster configuration.

Check:

  • the config file path;
  • required top-level fields;
  • the number of configured server and HTTP base URL entries; and
  • that at least one cluster block exists.

Symptom: The Agent Starts But Never Connects

That usually means the config was valid enough to start the process, but the control-plane connection is failing.

Move next to control-plane troubleshooting.

Control-Plane Connectivity Problems

The agent depends on both:

  • the Nomatron gRPC endpoint, usually on 4650; and
  • the Nomatron HTTP base URL, usually on 4649.

Symptom: Repeated Reconnect Attempts

Check:

  • outbound firewall rules from the private network;
  • DNS resolution for the configured Nomatron endpoints;
  • load balancer listeners;
  • whether the server gRPC listener is actually reachable; and
  • TLS trust if the server uses TLS.

Symptom: gRPC Connect Fails But HTTP Seems Fine

That usually points to:

  • 4650 not being reachable through the load balancer or firewall;
  • a gRPC listener not started on the Nomatron side; or
  • TLS or server-name validation specific to the gRPC path.

Symptom: HTTP Base URL Mismatch Errors

If the agent is configured with multiple server_addrs, it must also have a matching number of http_base_urls.

Do not treat those as optional extras. They are part of the expected runtime pairing.

Token And Identity Problems

Symptom: Authentication Fails During Handshake

The most common cause is an invalid or stale Network Agent token.

Check:

  • which token source the agent is using: agent_token_file (or --agent-token-file) first, then NOMATRON_CONNECTIVITY_AGENT_TOKEN, then the NOMATRON_AGENT_TOKEN fallback;
  • that the token file is readable by the agent user and contains only the token;
  • whether the token was copied correctly;
  • whether the token belongs to the intended agent; and
  • whether the token was rotated after the token file was written.

Symptom: The Agent Connects As The Wrong Identity

Confirm the agent_id and token pair match the intended agent registration in Nomatron.

If the pair does not line up, you may see confusing behavior where the process can connect but the control plane treats it as the wrong agent.

Cluster Validation Problems

The Network Agent does not just connect to the control plane. It also validates the cluster configuration it is responsible for.

Symptom: Control-Plane Connection Succeeds But Startup Still Fails

This often means:

  • cluster_id is wrong;
  • the private Nomad API address is wrong;
  • Nomad ACL or TLS settings are wrong; or
  • the configured cluster does not match the Nomatron-side definition.

Check:

  • cluster IDs carefully;
  • Nomad API address and port;
  • Nomad ACL token;
  • Nomad TLS CA, cert, and key settings where applicable.

Private Nomad Reachability Problems

Symptom: Agent Is Connected But Nomad-Backed Operations Still Fail

This usually means the agent can reach Nomatron, but cannot actually reach the private Nomad API consistently.

Check:

  • routing from the agent host to the Nomad API;
  • firewall or security group rules in the private network;
  • Nomad ACL permissions;
  • Nomad TLS trust and server name settings.

Symptom: Only Some Clusters Work

If one agent is responsible for multiple clusters, treat each cluster path independently.

Do not assume that because one cluster is healthy, the others share identical reachability and trust conditions.

A Simple Triage Sequence

When the Network Agent is failing, use this order:

  1. confirm the process stays running;
  2. confirm the config parses and validates;
  3. confirm the gRPC and HTTP endpoints are reachable;
  4. confirm the token and agent identity are correct;
  5. confirm the private Nomad API is reachable;
  6. confirm the cluster configuration matches what Nomatron expects.

That sequence usually gets you to the actual fault domain quickly.

When The Problem Is Not The Agent

Sometimes the agent is behaving correctly and the real problem is elsewhere.

Common examples:

  • the Nomatron server gRPC listener is unhealthy;
  • the load balancer is only forwarding HTTP and not gRPC correctly;
  • the Nomad API is unhealthy or unreachable from the private network;
  • the cluster registration in Nomatron is wrong; or
  • the current license does not allow the intended Network Agent usage.

If the agent logs show successful connection and steady heartbeat behavior, widen the investigation to those surrounding systems.