EGR005 - Local Account Lookup Failed
Uploading...Agent error code #EGR005 indicates that the agent could not finish looking up the local account for a grant. The agent looks the account up by name through the system's account database: on Linux and OpenBSD it runs id to find the uid, and on Windows it asks Windows for the account's SID. This code means the lookup did not answer in time or failed for a reason other than the account not existing.
An account that does not exist is #EGR050.
Common causes include:
/etc/nsswitch.conf lists a source that is not available
On Windows, the bastion cannot reach a domain controller in time to look up a domain account
The host is under heavy load
Steps to Resolve
Time a Lookup
time id <account>
A lookup that takes seconds points at the directory service.
On Windows, time the lookup from the Windows egress guide's Checking an Account section in PowerShell:
Measure-Command { (New-Object System.Security.Principal.NTAccount('CORP\alice')).Translate([System.Security.Principal.SecurityIdentifier]) }
A lookup that takes seconds points at the bastion's connection to its domain controllers.
Check the Directory Service on Linux
systemctl status sssd and sudo sssctl domain-status <domain>
Look for errors in the SSSD logs under /var/log/sssd/
Check which sources /etc/nsswitch.conf lists for passwd
Retry
The next grant or resync repeats the lookup. Once lookups are quick again, ask the user to request access again.