Hi,
make sure Jenkins remote user does have access to your e:\jenkins  and clean 
that folder content of any previous data there. If this is not working, check 
the master remote file for any right or corruption.

Jerome



[cid:[email protected]]
une compagnie  [cid:[email protected]]
RAPPROCHEZ LA DISTANCE
Jérôme Godbout
Software / Firmware Lead
p: +1 (418) 800-1073 ext.:109
amotus.ca<http://www.amotus-solutions.com/>
statum-iot.com<http://statum-iot.com/>
[cid:[email protected]]<https://www.facebook.com/LesSolutionsAmotus/>
 [cid:[email protected]] 
<https://www.linkedin.com/company/amotus-solutions/>  
[cid:[email protected]] <https://twitter.com/AmotusSolutions>  
[cid:[email protected]] 
<https://www.youtube.com/channel/UCoYpQgsmj1iJZyDjTQ3x8Ig>
COVID-19 : we are glad to inform you that 
Amotus<https://www.amotus-solutions.com/> are up and running with limited 
impact on our performance. We will keep you informed of any changes as they 
occur.
COVID-19 : nous sommes fiers d’informer nos collaborateurs que 
Amotus<COVID-19%20mesures%20:%20nous%20sommes%20fier%20d’informer%20nos%20collaborateurs%20que%20Dimonoff/Amotus%20opère%20et%20que%20l’impact%20des%20nouvelles%20facçon%20de%20faire%20mise%20en%20place%20tend%20à%20minister%20l’impact%20sur%20notre%20productivité.>
 opèrent adéquatement et que l’impact sur notre productivité est minimisé. Nous 
vous tiendrons au courant de tout changement.

From: [email protected] <[email protected]> On 
Behalf Of David Aldrich
Sent: November 27, 2020 4:17 AM
To: [email protected]
Subject: Re: Java install for Windows agent?


Still trying to connect to Jenkins Windows agent using ssh. I have configured 
JAVA_HOME on the agent and set the agent's configuration to:

JavaPath    %JAVA_HOME%\java.exe

but I get:

[11/27/20 09:15:15] [SSH] Copying latest remoting.jar...

Source agent hash is D866F0B482DB94F38E49B26B465D5DB5. Installed agent hash is 
D866F0B482DB94F38E49B26B465D5DB5

Verified agent jar. No update is necessary.

Expanded the channel window size to 4MB

[11/27/20 09:15:16] [SSH] Starting agent process: cd "E:\jenkins" && 
%JAVA_HOME%\java.exe  -jar remoting.jar -workDir E:\jenkins -jar-cache 
E:\jenkins/remoting/jarCache

Error: Unable to access jarfile remoting.jar

Agent JVM has terminated. Exit code=1

[11/27/20 09:15:16] Launch failed - cleaning up connection

[11/27/20 09:15:16] [SSH] Connection closed.

Any idea why it can't access remoting.jar?

Best regards
David


On Thu, Nov 26, 2020 at 9:26 PM Jérôme Godbout 
<[email protected]<mailto:[email protected]>> wrote:
You can inject the wanted java folder into the Node configuration into Jenkins 
master configuration panels:

Add environments variable into your node and set:

Name: JAVA_HOME
value: C:\Java\jdk1.8.0_261\

[cid:[email protected]]

Take Care the Windows version doesn’t like Java path with a space in it, a 
patch have been made put you might end up into a version that doesn’t support 
it, for ease, just install java into a path without space.
This prevent having to define the JAVA_HOME for the whole machine and ease the 
multiple java version on that machine. Jenkins will change it and can will use 
it to load the slave properly.



[cid:[email protected]]
une compagnie  [cid:[email protected]]
RAPPROCHEZ LA DISTANCE
Jérôme Godbout
Software / Firmware Lead
p: +1 (418) 800-1073 ext.:109
amotus.ca<http://www.amotus-solutions.com/>
statum-iot.com<http://statum-iot.com/>
[cid:[email protected]]<https://www.facebook.com/LesSolutionsAmotus/>
 [cid:[email protected]] 
<https://www.linkedin.com/company/amotus-solutions/>  
[cid:[email protected]] <https://twitter.com/AmotusSolutions>  
[cid:[email protected]] 
<https://www.youtube.com/channel/UCoYpQgsmj1iJZyDjTQ3x8Ig>
COVID-19 : we are glad to inform you that 
Amotus<https://www.amotus-solutions.com/> are up and running with limited 
impact on our performance. We will keep you informed of any changes as they 
occur.
COVID-19 : nous sommes fiers d’informer nos collaborateurs que Amotus opèrent 
adéquatement et que l’impact sur notre productivité est minimisé. Nous vous 
tiendrons au courant de tout changement.

From: [email protected]<mailto:[email protected]> 
<[email protected]<mailto:[email protected]>> On 
Behalf Of David Aldrich
Sent: November 26, 2020 2:03 PM
To: [email protected]<mailto:[email protected]>
Subject: Java install for Windows agent?

Hi

I have now partially succeeded in connecting to a Windows 10 agent from Jenkins 
via ssh.  The ssh part succeeds but the connection then fails with:

"Couldn't figure out the Java version of E:\jenkins/jdk/bin/java"

I don't know why it's choosing that path as I have not specified a Java path.

I know this is basic, but please suggest which JRE/JDK I should use and where I 
should install it.

Thanks
David
--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAJK_iehj-zYoqEKTFPH58CHT_dvwcDagxU6s3ERd4HnpcQKdgA%40mail.gmail.com<https://groups.google.com/d/msgid/jenkinsci-users/CAJK_iehj-zYoqEKTFPH58CHT_dvwcDagxU6s3ERd4HnpcQKdgA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/QB1PR01MB38449876E713D2B6766892DACDF90%40QB1PR01MB3844.CANPRD01.PROD.OUTLOOK.COM<https://groups.google.com/d/msgid/jenkinsci-users/QB1PR01MB38449876E713D2B6766892DACDF90%40QB1PR01MB3844.CANPRD01.PROD.OUTLOOK.COM?utm_medium=email&utm_source=footer>.
--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAJK_iej0V2wwMKmew2QadXfmM-%2B1Lzq16qjRPv35ER%3DZZp%2B%2BRA%40mail.gmail.com<https://groups.google.com/d/msgid/jenkinsci-users/CAJK_iej0V2wwMKmew2QadXfmM-%2B1Lzq16qjRPv35ER%3DZZp%2B%2BRA%40mail.gmail.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/QB1PR01MB3844096416B890E2EDD60A5BCDF80%40QB1PR01MB3844.CANPRD01.PROD.OUTLOOK.COM.

Reply via email to