jenkinsci / jenkinsci/agent-setup-plugin

[JENKINS-16816] slave-agent.jnlp produces wrong url for remoting.jar

Open
#96 3 comments 0 reactions 0 assignees View on GitHub
agent component:slave-setup-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
11
Forks
23
Avg merge
21h 13m
Merged PRs (30d)
1

Description

While trying to set up the Windows machine as a node, the slave-agent.jnlp yields an unable to locate resource error for remoting.jar. The issue seems to be that the url it's trying to look for also contains the root directory it is saved in.

For example, if I'm trying to run the slave-agent.jnlp in C:\jenkins, the FileNotFoundException seems to indicate that it is looking for the file at C:\jenkins\\computer\\jnlpJars\remoting.jar, instead of simply \computer\\jnlpJars\remoting.jar.

Even if I try to run it directly at the url using javaws (javaws http:///computer//slave-agent.jnlp), it appends the url of the to the slave-agent.jnlp before the url of the rest of the files and you get a convoluted mess of an url like http:///computer///computer//jnlpJars/remoting.jar

---
Originally reported by zedzeta, imported from: slave-agent.jnlp produces wrong url for remoting.jar


  • assignee: kohsuke
  • status: Open
  • priority: Major
  • component(s): slave-setup-plugin
  • label(s): slave
  • resolution: Unresolved
  • votes: 0
  • watchers: 3
  • imported: 20251216-225446

Raw content of original issue

While trying to set up the Windows machine as a node, the slave-agent.jnlp yields an unable to locate resource error for remoting.jar. The issue seems to be that the url it's trying to look for also contains the root directory it is saved in.

For example, if I'm trying to run the slave-agent.jnlp in C:\jenkins, the FileNotFoundException seems to indicate that it is looking for the file at C:\jenkins\<jenkinsURL:8080>\computer\<slave>\jnlpJars\remoting.jar, instead of simply <jenkinsURL:8080>\computer\<slave>\jnlpJars\remoting.jar.

Even if I try to run it directly at the url using javaws (javaws http://<jenkinsURL:8080>/computer/<slave>/slave-agent.jnlp), it appends the url of the to the slave-agent.jnlp before the url of the rest of the files and you get a convoluted mess of an url like http://<jenkinsURL:8080>/computer/<slave>/<jenkinsURL:8080>/computer/<slave>/jnlpJars/remoting.jar

  • environment: CentOS 6 x64 Master (running through VMWare) running Jenkins 1.501; Windows 7 x64 for Slave

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.