On Freitag, 28. Januar 2022 03:41:26 CET Senthil Nathan wrote: Moin,
> Why is it copying into /var/lib/Jenkins. Is that your agent workspace root. yes, jenkins home is /var/lib/jenkins, so I choose use the same directory and UID for the executor on remote hosts. > /Var/libs/Jenkins looks like a restricted space. you can try users home > directory as agent root to be sure you have access I created a fresh new jenkins account. A normal user account with normal UID and GID in /home (but copied the .ssh/authorized_keys and reconfigured the executor for the new home directory) . But the result is the same. The first launch works fine (login, copy remoting.jar), but after disableling and restarting the node agent I get the same error: Java(TM) SE Runtime Environment (build 1.8.0_161-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode) [01/29/22 14:40:57] [SSH] Checking java version of /home/jenkins/jdk/bin/java Couldn't figure out the Java version of /home/jenkins/jdk/bin/java bash: line 1: /home/jenkins/jdk/bin/java: No such file or directory [01/29/22 14:40:57] [SSH] Checking java version of java [01/29/22 14:40:57] [SSH] java -version returned 1.8.0_161. [01/29/22 14:40:57] [SSH] Starting sftp client. [01/29/22 14:40:57] [SSH] Copying latest remoting.jar... java.io.IOException: Could not copy remoting.jar into '/home/jenkins' on agent I even created a symlink from /usr/bin/java to /home/jenkins/jdk/bin/java. Same result. I'm running out of options. -- |Michael Renner E-mail: [email protected] | |81541 Munich Twitter: @dd0ul | |Germany Don't drink as root! ESC:wq -- 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/2229954.ElGaqSPkdT%40solaris.
