Jenkins issue: FATAL: command execution failed

I’m trying this to stop automatic JDK updates. Thanks!

$ sudo apt-mark hold openjdk-17-*
(Output ommitted)

$ sudo apt-mark showhold
openjdk-17-dbg
openjdk-17-demo
openjdk-17-doc
openjdk-17-jdk
openjdk-17-jdk-headless
openjdk-17-jre
openjdk-17-jre-headless
openjdk-17-jre-zero
openjdk-17-source

I have done that but not working for me! any other suggestion

I am trying to add a new node and am getting this error of spawn helper

Are you sure that the agent computer is not upgrading Java upgrade after the Jenkins agent has started? If the agent computer has an older Java installed initially and is configured in the operating system to upgrade Java, then once that upgrade is complete, the “spawn helper” message is likely to appear.

The most general solution is to assure that the Java version on the agent is already the most recent release before the agent starts.

Another solution is to restart the agent after the Java upgrade is complete. The previous comments said:

The Label Verifier plugin can be used to check that a Jenkins agent has the expected version of Java installed when the agent is first connected. You might use that as a safety check that a Java upgrade is not needed on the agent when it starts.

thank you ~ , your advice worked !!! My problem is git command can’t execute, log likes Cannot run program “git” …… then i add ‘-Djdk.lang.Process.launchMechanism=vfork’ this in jenkins.service file . and then i restart the jenkins program. it is useful .finally i sercher why it worked: vfork is a mode that can reduce memory usage when jenkins try to execute git command.