I have upgraded java on both the controller and agent machines to OpenJdk 17 and tried to launch again via ssh but still i am getting the same error
java -jar agent.jar -url
http://mo1csgw2321:8080/ -secret <secret> -name "TAF-child" -workDir "/var/lib/jenkins"
Apr 18, 2024 4:11:50 PM org.jenkinsci.remoting.engine.WorkDirManager initializeWorkDir
INFO: Using /var/lib/jenkins/remoting as a remoting work directory
Apr 18, 2024 4:11:51 PM org.jenkinsci.remoting.engine.WorkDirManager setupLogging
INFO: Both error and output logs will be printed to /var/lib/jenkins/remoting
Apr 18, 2024 4:11:51 PM hudson.remoting.Launcher createEngine
INFO: Setting up agent: TAF-child
Apr 18, 2024 4:11:51 PM hudson.remoting.Engine startEngine
INFO: Using Remoting version: 3206.vb_15dcf73f6a_9
Apr 18, 2024 4:11:51 PM org.jenkinsci.remoting.engine.WorkDirManager initializeWorkDir
INFO: Using /var/lib/jenkins/remoting as a remoting work directory
Apr 18, 2024 4:11:51 PM hudson.remoting.Launcher$CuiListener status
INFO: Locating server among [http://
mo1csgw2321:8080/]
Apr 18, 2024 4:11:51 PM hudson.remoting.Launcher$CuiListener status
INFO: Could not locate server among [
http:// mo1csgw2321:8080/ ]; waiting 10 seconds before retryjava.io.IOException: http:// mo1csgw2321:8080/tcpSlaveAgentListener/ is invalid: 404 Not Found at org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver.resolve(JnlpAgentEndpointResolver.java:222)
at hudson.remoting.Engine.innerRun(Engine.java:809)
at hudson.remoting.Engine.run(Engine.java:563)