Skip to content

High-availability pair ​

Symptoms of a high-availability pair: joining nodes, peer links, replication, takeover and the virtual address.

waap ha join is refused ​

  • Symptom: the join command stops with one of the messages in the table.
  • Cause and fix: see the table.
MessageCauseFix
invalid or expired join tokenthe token is older than 1 hour, already used, or was issued before the first node restarted (tokens are kept in memory)run waap ha token on the first node, and use the new token at once
the joining node needs its own valid node ID-node-id equals the first node's, or has invalid characterschoose another ID (letters, digits, ., _, -)
the pair already has node X; only a replacement with the same node ID can jointhe pair already has a second node with another IDjoin with -node-id X to replace it, or run waap ha leave on the first node and pair again
waap.db exists ... pass -replacethe joining node has its own database, and its data would be replacedpass -replace (it moves the database to waap.db.replaced-<time>), or use an empty data directory
waap is running on this nodethe join needs the node stoppedstop waap, join, then start it
the node's CA does not match the join tokenthe token belongs to another pair, or something else answers on that addresscheck that the address in the token reaches the right node
too many failed joinsmore than 10 failed joins in a minutewait a minute; each failure is in the first node's audit log
this node joined the pair as "X" but runs as "Y" (at start)the node was started with another -node-idstart it with -node-id X

Peer shown as LOST ​

  • Symptom: waap ha status shows the peer LOST; the audit record is ha.peer_lost.
  • Cause: the peer is down, the peer link port is blocked by a firewall, or the addresses given with -address are not reachable from the other node (NAT, the wrong interface, or a loopback address on separate machines).
  • Check: each link's error in waap ha status; from the other node, nc -vz <address> <port>; and that -listen binds an address on the expected interface.
  • Fix: open the peer port between the two nodes only, and correct the addresses (leave and pair again with the right -address). Use two independent paths, so that one failed path does not lose the peer.

"peer listener on <address>: ... address already in use" ​

  • Cause: another process holds the HA peer port given with -listen. Often this is a second waap started by hand, or an old one still exiting. Older builds could also hit this when a pair was left and paired again within a moment, because the old listener closed in the background.
  • Check: ss -ltnp 'sport = :<port>' shows which process owns the port.
  • Fix: stop the other process, or pick a free -listen port, then start waap or pair again.

Changes refused on a node: "this node is the standby ... make changes on the active node" ​

  • Cause: by design, the standby of a pair is read-only. Its data comes from the active node, and local changes would be overwritten.
  • Check: waap ha status (the role). The 409 answer names the active node's management address.
  • Fix: make the change on the active node.

Standby does not start: "waiting for the active node's data" ​

  • Symptom: after waap ha join, the standby logs this every 10 seconds, and its management API and Envoy do not start.
  • Cause: a freshly joined node has no configuration until it has copied the active node's data. It cannot reach the active node (peer link), or the active node refuses (it is not active, or it runs newer software).
  • Check: the status field of the log line; waap ha status on the active node.
  • Fix: as for "Peer shown as LOST". Check that the first node is running and active.

"not in sync" (audit record ha.drift) ​

  • Symptom: the drift audit record reports one of the differences in the table.
  • Cause and fix: see the table.
Difference shownCauseFix
configuration: A has version N, B has version Mthe standby could not apply a version (see its stderr, audit record ha.apply), or replication is stuckfix the reported error (often a file or listener problem on that node), then apply again on the active node
the files the configuration refers to differthe nodes compiled the same version with different files (an older version from before files were stored)apply the configuration again on the active node
country database: ...the GeoIP file is per node, and it differs or is missing on onecopy the same file to both nodes (waap geoip update on each)
B has not copied A's data yet (snapshot pending)the standby is taking, or failing to take, its copycheck the standby's stderr and the peer link
B is N changes behind Areplication is slow or failingcheck the standby's stderr for "replication from the active node failed"
both nodes are active or both nodes are standbymomentary during a takeover or after a split heals; if it lasts, neither node is eligible (both standby)waap ha status shows each node's failed health checks

"the peer runs newer software; this node cannot follow it" ​

  • Cause: an older node does not follow a newer one, because its database lacks what the newer node sends. The audit record is ha.replication.
  • Fix: upgrade this node. In a rolling upgrade, upgrade the standby first.

No node takes over, or the standby stays standby after the active node died ​

  • Check: waap ha status on the standby shows its health checks (envoy, inspection, configuration, interface, reachability) and any alarms in waap audit list -action ha..
  • Causes and fixes:
    • A failed health check makes the node ineligible. Fix what it names: Envoy not running or rejecting the configuration, no inspection service, a replicated version that failed to apply, an interface that is down, or no reachability target answering.
    • ha.peer_link_down: the virtual address still answers on probe_port, so the standby believes the active node is alive and only the peer link failed. If the active node is really gone, something else answers on that address, so check for an address conflict.
    • The node is in maintenance.

Both nodes hold the virtual address ​

  • Cause: only the peer link failed, and the takeover probe could not see the active node (probe_port is not served on the virtual address, or it is filtered), so the standby took over.
  • Fix: make sure probe_port is a port that Envoy serves on the virtual address (the default is the first listener's) and that it is not filtered between the nodes. Configure reachability. When the peer link returns, the election picks one node, and the other releases the address at once.

"could not add the virtual addresses" (audit record ha.address) ​

  • Cause: waap lacks CAP_NET_ADMIN or CAP_NET_RAW, the interface name is wrong, or address_mode: linux is set on a system that is not Linux.
  • Fix: run waap as root, or grant the capabilities (systemd: AmbientCapabilities=CAP_NET_ADMIN CAP_NET_RAW). Correct ha.interface. On other systems, use address_mode: external.

"releasing <address> from <interface>" in the ha.address error ​

  • Cause: an address was removed from ha.addresses, but the active node could not delete it from the interface (missing CAP_NET_ADMIN, or the interface was renamed or removed). The remaining addresses are still held and announced.
  • Check: ip -br addr show <interface> on the active node still lists the old address.
  • Fix: grant the capability or restore the interface, then apply the configuration again. Or delete the address by hand with ip addr del <address> dev <interface>.

Clients keep reaching the old node after a failover ​

  • Cause: a switch or router ignored the gratuitous ARP or neighbour advertisement, or filters it.
  • Fix: raise ha.announce.count; allow gratuitous ARP on the switch (some security features drop it); check with arping -D and ip neigh on a client.

waap ha switchover refused ​

  • Symptom: the switchover stops with one of the messages in the table.
  • Cause and fix: see the table.
MessageFix
this node is not the active noderun it on the active node (waap ha status shows which one)
the standby cannot be reachedsee "Peer shown as LOST"
the standby is not healthy (...)fix the failed check on the standby
the standby is in maintenancerun waap ha maintenance off on the standby first
the nodes are not in sync: ...the configuration or files differ, or the standby is still copying data (just after a switchover or join). Wait, or fix what differs
did not catch up in timethe standby could not apply the change log within 5 seconds (replication is failing or very slow); check its stderr
did not take over in timethe standby did not become active within a few seconds; check its stderr. This node keeps the role

SIEM collector received some records twice after a failover ​

  • Cause: by design, delivery is at least once. The new active node continues a few seconds before the old one's last saved position, because those records may not have been sent.
  • Fix: de-duplicate in the SIEM by transaction_id (security events), or by node and seq (audit records).