[Bug]: Removed host agent re-enrolls under a derived agent ID; Agent Doctor "Allow re-enroll" does not recover
Describe the bug
The unified agent derives its agent ID deterministically from /etc/machine-id.
Removing a host agent creates a re-enrollment block keyed on that ID. Because the ID
cannot change on reinstall, the agent hits its own block — and instead of being
rejected or reusing the record, the server admits it under a derived suffixed
identity. Removing that one creates another block, and the cycle repeats.
Agent Doctor's "Allow re-enroll" repair action does not break the cycle. I used it repeatedly across many remove/reinstall attempts and never reached a clean single record; each attempt left another derived identity and another blocked row.
Identity derivation, verified on the host:
# /etc/machine-id
bf3f9ff3273346d9944c49160dc57288
# /var/lib/pulse-agent/agent-id
bf3f9ff3-2733-46d9-944c-49160dc57288Same 32 hex digits, UUID dashes inserted. Purging /var/lib/pulse-agent and
installing with a fresh token produces the identical ID, so reinstalling can never
satisfy a block on it.
Impact: one machine ended up with 2 live and 5 removed records, flagged
duplicate_host_agent_installation (critical) and agent_identity_split, with the
host showing as offline/duplicated in every view. There is only one
pulse-agent.service and one /var/lib/pulse-agent on the host — the duplication
exists purely server-side. No UI or API path recovered it; it took hand-editing JSON
in the data directory.
pulse-diagnostics-sanitized-2026-09-16.json
To reproduce
- Install the unified agent on a Linux host (
--enable-host --enable-docker). - Remove the host from Pulse (UI, or
DELETE /api/agents/host/{id}). - Reinstall the agent on that host with a freshly generated token.
- Observe it appears under
<base-uuid>-<8hex>rather than the base UUID. - Open Agent Doctor (
/settings/infrastructure?agentDoctor=1) and use "Allow re-enroll" on the removed row; reinstall again. - Observe a further derived ID rather than a clean re-enrollment under the base UUID.
Each remove/reinstall cycle adds one blocked row and one derived identity.
summary.removed only ever grows.
Expected behavior
Either removal purges the identity so a reinstall enrolls cleanly, or the block is honoured and the agent is rejected with a clear message that "Allow re-enroll" actually clears. Silently admitting the same machine under a derived identity produces duplicates that the documented repair action cannot resolve.
Additional actionable topics
What actually cleared it
Stopping Pulse and removing all keys prefixed with the base UUID from:
/etc/pulse/host_continuity.json/etc/pulse/docker_report_order.json/etc/pulse/host_metadata.json
resources/unified_resources.db contained zero rows for this host across
resource_identities, resource_hostnames, resource_ips,
resource_operator_state, canonical_id_successions, resource_links and
resource_exclusions — identity state appears to live entirely in those JSON files.
After the edit and a reinstall: one clean record, types: [host, docker], healthy,
back on the base UUID with no suffix.
Incidental observations
- In
host_continuity.jsonthemachineIdfield holds the dashed agent UUID, not the raw/etc/machine-idvalue. Given the derivation these are the same bytes, but the conflation may be where the suffixing logic loses the distinction between "this machine" and "this enrollment". docker_report_order.jsonheld two::token-<uuid>bindings, one of which never appeared in/api/agents/diagnostics— some enrollment history is invisible to the diagnostics endpoint.docs/API.mdexposesallow-reenrollfor/api/agents/docker/hosts/{id}and/api/agents/kubernetes/clusters/{id}only; there is no host-agent equivalent, so the Agent Doctor button is the only route for host rows.
Possibly related
- #1331 introduced removal tracking with a 24h cooldown and manual re-enroll (v5.1.23).
- Discussion #1495 reports the adjacent symptom: removing a duplicate offline host also bans the working one, with no clean way out.
- v6.1.0-rc.2 notes state deleted hosts can re-enroll with fresh credentials; that does not hold on 6.4.5-beta.1, since fresh credentials don't change the derived ID.
Pulse version
v6.4.5-beta.1
Agent version
v6.4.5-beta.1
Image tag or digest
No response
Installation type
ProxmoxVE LXC
Relevant logs or diagnostics
`/api/agents/diagnostics` before manual recovery. UUID replaced with `<BASE>`
throughout; token IDs as `<T1>`/`<T2>`. Suffixes left intact — they are the point.
{
"serverVersion": "6.4.5-beta.1",
"summary": {"total": 9, "healthy": 5, "warning": 0, "critical": 2, "removed": 2},
"agents": [
{
"rowKey": "agent-<BASE>",
"agentId": "<BASE>",
"hostname": "docker",
"types": ["host", "docker"],
"status": "critical",
"rawStatus": "offline",
"version": "v6.4.5-beta.1",
"machineIdFingerprint": "sha256:<FP>",
"reasons": [
{"code": "agent_disconnected", "severity": "critical"},
{"code": "agent_status_not_online", "severity": "warning"},
{"code": "duplicate_host_agent_installation", "severity": "critical",
"message": "Multiple host-installed Pulse Agents are reporting from the same machine.",
"evidence": ["Peer agent ID: <BASE>-67e22c82", "Peer hostname: docker"]}
]
},
{
"rowKey": "agent-<BASE>-67e22c82",
"agentId": "<BASE>-67e22c82",
"hostname": "docker",
"types": ["host"],
"status": "critical",
"rawStatus": "offline",
"version": "v6.4.5-beta.1",
"machineIdFingerprint": "sha256:<FP>",
"reasons": [
{"code": "agent_disconnected", "severity": "critical"},
{"code": "duplicate_host_agent_installation", "severity": "critical",
"evidence": ["Peer agent ID: <BASE>", "Peer hostname: docker"]},
{"code": "agent_identity_split", "severity": "warning",
"message": "Host and workload telemetry appear to belong to the same machine but are reporting as separate agent identities.",
"evidence": ["Peer type: Docker", "Peer ID: <BASE>", "Peer shares the reporting token binding"]}
]
},
{
"rowKey": "removed-docker-<BASE>::token-<T1>",
"hostname": "docker",
"types": ["docker"],
"status": "removed",
"reasons": [{"code": "agent_removed_blocked", "severity": "warning",
"evidence": ["Removed at 2026-09-16T10:00:59Z"]}],
"repairActions": [{"code": "allow_reenroll", "supported": true, "mode": "handoff"}]
},
{
"rowKey": "removed-host-<BASE>-d0498360",
"hostname": "docker",
"types": ["host"],
"status": "removed",
"reasons": [{"code": "agent_removed_blocked", "severity": "warning",
"evidence": ["Removed at 2026-09-16T10:34:11Z"]}],
"repairActions": [{"code": "allow_reenroll", "supported": true, "mode": "handoff"}]
}
]
}
Both `machineIdFingerprint` values are identical — one physical machine, four records.
Note the two `removed` rows still offer `allow_reenroll`; using it did not produce a
clean re-enrollment, only further derived identities.
After deleting the three live rows, `summary.total` went 9 → 10 and
`summary.removed` 2 → 5: each delete tombstoned rather than purged, and the Docker
side spawned an additional `removed-docker-<BASE>` row.
On the host, one service and one state directory throughout:
# systemctl list-units --all 'pulse*'
pulse-agent.service loaded inactive dead Pulse Unified Agent
1 loaded units listed.
# cat /etc/machine-id
<BASE with dashes removed>
# cat /var/lib/pulse-agent/agent-id
<BASE>Confirmations
- I verified the exact Pulse version and image reference from the running instance.
- I searched existing issues for duplicates.
Source: rcourtman/Pulse