I am have a Jenkins setup, where Controller (linux) is connected to slave (windows) via ssh using username/password authentication. I am whenever I try to launch the agent I get Error: Unable to access jarfile remoting.jar. I have tried modifying the file and folder permissions, but that didn’t seen to fix the issue. What is causing jenkins to not be able to access or execute the jarfile?
“Remote Root Directory” is set to D:\Jenkins1114, Default Shell is cmd.exe, Java version on slave is 16.0.1, Java version on Controller is 11.0.13
I don’t think java 16 us supported yet, but I don’t think that would cause the problem
My guess is that the jar file isn’t a jar file. Can you open it in an editor to confirm its not html, or rename it to .zip and see if explorer can read the contents?
Sorry for the very late reply. The file can be read by explorer when renamed to .zip. I will try downgrading to java 11 later today, and will update this thread if it works.
So its possible that your %JAVA_HOME% isn’t set right. or The filesystem its trying to run on isn’t happy with java (network mount? tmp? some windows security? etc).
UPDATE: I have figured out that it must have something to do with the cmd.exe shell, because it runs fine on PowerShell. I will try to figure out a workaround for this and will update this thread later today.