Agents fail to connect with `Rejected connection: ... is not authorized to connect` or the agent secret error `Incorrect secret`
IntermediateTroubleshootingCredentials, permissions & script approval
Answer
Likely causes → The node was deleted and recreated (new secret), the agent uses a stale secret, or the node name differs from -name.
Diagnose → Compare the node name and secret on the node's page with the agent's start command.
Fix → Update the agent with the current secret and exact name; restart the agent.
Prevent → Store agent secrets in a secret store and automate agent registration.
More on Credentials, permissions & script approval
`ERROR: Could not find credentials entry with ID 'dockerhub'`BeginnerAPI call returns `HTTP ERROR 403 No valid crumb was included in the request`Beginner`Access Denied: alice is missing the Job/Build permission`BeginnerAfter enabling SSO, everyone sees `alice is missing the Overall/Read permission`AdvancedLocked out: SSO is down and nobody can log in to Jenkins to fix the realmAdvancedA pipeline using `withCredentials` prints `****` in places where the secret is not expected, breaking output parsingIntermediate