Issue while downloading agent.jar in jenkins v2.448

Hi, I have installed Jenkins v2.448 in Linux server. I am trying to configure Nodes in the Jenkins.
But when I try to download the agent.jar in the agent machine I am getting ERROR : 403 FORBIDDEN. Can someone please help on this problem.
→ wget http://localhost:8080/dpdc/jnlpJars/agent.jar
–2024-03-20 17:04:53-- http://localhost:8080/dpdc/jnlpJars/agent.jar
Connecting to localhost:8080… connected.
HTTP request sent, awaiting response… 403 Forbidden
2024-03-20 17:04:53 ERROR 403: Forbidden.

Hello @sk980, and welcome to this community. :wave:

What is between the machine you will use as a node and your Jenkins controller?
For my machine, I have this command suggested by the controller once I have created a new node:

curl -sO http://127.0.0.1:8080/jnlpJars/agent.jar
java -jar agent.jar -url http://127.0.0.1:8080/ -secret 721cd8f2124a66afb2db79d6d0356ce1ed9a6b35d2ef9b9df5e472520040bbf6 -name newNode -workDir "/home/jenkins"

There is no extra path in the URL used. Do you have an HTTP server in front of Jenkins?

1 Like

I’m pretty new myself but when I set up my agent nodes, I didn’t use localhost from the node. I used the url to the controller. You could test it in just a regular browser on the same vnet to check.