Interview Prep/CI/CD/Jenkins Build and Agent Failures

`Remote call on JNLP4-connect connection from <ip> failed` and agent will not connect.

AdvancedTroubleshootingJenkins Build and Agent Failures
Answer

Likely causes → Wrong secret; TCP agent port blocked; reverse proxy blocking the websocket; Jenkins URL misconfigured.

Diagnose →

curl -I https://jenkins.example.com/tcpSlaveAgentListener/
java -jar agent.jar -url https://jenkins.example.com -name agent-1 -secret &lt;s> -webSocket

Fix → Use -webSocket behind an HTTPS proxy, correct the secret, and set the right Jenkins URL.

Prevent → Prefer websocket connections and test connectivity with a health check.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Jenkins Build and Agent Failures