[JIRA] (JENKINS-46386) Agent sometimes fails to launch in custom cloud provider
Title: Message Title Jesse Glick commented on JENKINS-46386 Re: Agent sometimes fails to launch in custom cloud provider No, that may have fixed things at one point, but it regressed again with JENKINS-47324 I think. This is reproducible in trunk as follows: Build core master. Create an empty plugin from archetype. Update its parent to 3.6, and the jenkins.version to 2.112-SNAPSHOT. hpi:run it. Install command-launcher. Create an agent running: docker run -i --rm --init --name agent jenkinsci/slave java -jar /usr/share/jenkins/slave.jar Create a freestyle project tied to that node, but with no other configuration. Build it ⇒ boom: Started by user unknown or anonymous Building remotely on docker in workspace /…/workspace/… java.lang.ClassNotFoundException: javax.servlet.ServletContextListener at hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch(RemoteClassLoader.java:808) at … Caused: java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:763) at java.lang.ClassLoader.defineClass(ClassLoader.java:642) at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:373) Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to docker at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1740) at hudson.remoting.UserResponse.retrieve(UserRequest.java:314) at hudson.remoting.Channel.call(Channel.java:955) at hudson.FilePath.act(FilePath.java:997) at hudson.FilePath.act(FilePath.java:986) at hudson.FilePath.mkdirs(FilePath.java:1174) at hudson.model.AbstractProject.checkout(AbstractProject.java:1202) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) at hudson.model.Run.execute(Run.java:1727) at … Caused: java.lang.LinkageError: Failed to load jenkins.util.SystemProperties at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:377) at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:285) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at hudson.Util.(Util.java:1674) at hudson.FilePath.mkdirs(FilePath.java:3058) at hudson.FilePath.access$900(FilePath.java:207) at hudson.FilePath$Mkdirs.invoke(FilePath.java:1182) at hudson.FilePath$Mkdirs.invoke(FilePath.java:1178) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2873) at hudson.remoting.UserRequest.perform(UserRequest.java:153) at …Caused: java.io.IOException: Remote call on docker failed at hudson.remoting.Channel.call(Channel.java:961) at hudson.FilePath.act(FilePath.java:997) Caused: java.io.IOException
[JIRA] (JENKINS-46386) Agent sometimes fails to launch in custom cloud provider
Title: Message Title Jesse Glick commented on JENKINS-46386 Re: Agent sometimes fails to launch in custom cloud provider Filed alternate hotfix as PR 3362. Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-46386) Agent sometimes fails to launch in custom cloud provider
Title: Message Title Daniel Beck updated an issue Jenkins / JENKINS-46386 Agent sometimes fails to launch in custom cloud provider Change By: Daniel Beck Labels: lts-candidate Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-46386) Agent sometimes fails to launch in custom cloud provider
Title: Message Title SCM/JIRA link daemon commented on JENKINS-46386 Re: Agent sometimes fails to launch in custom cloud provider Code changed in jenkins User: Jesse Glick Path: core/src/main/java/jenkins/util/SystemProperties.java test/src/test/java/jenkins/util/SystemPropertiesTest.java war/src/main/webapp/WEB-INF/web.xml http://jenkins-ci.org/commit/jenkins/7948315142cd8ac82ee69ab42416ea8af574860b Log: JENKINS-46386 Make SystemProperties safe to call from agent JVMs. Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-46386) Agent sometimes fails to launch in custom cloud provider
Title: Message Title SCM/JIRA link daemon commented on JENKINS-46386 Re: Agent sometimes fails to launch in custom cloud provider Code changed in jenkins User: Oleg Nenashev Path: core/src/main/java/jenkins/util/SystemProperties.java test/src/test/java/jenkins/util/SystemPropertiesTest.java war/src/main/webapp/WEB-INF/web.xml http://jenkins-ci.org/commit/jenkins/63a58031624f196b18d93aef00c76a10543ec95f Log: Merge pull request #3362 from jglick/SystemProperties-JENKINS-46386 JENKINS-46386 Make SystemProperties safe to call from agent JVMs Compare: https://github.com/jenkinsci/jenkins/compare/9e667a2f4fcd...63a58031624f Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-46386) Agent sometimes fails to launch in custom cloud provider
Title: Message Title Oleg Nenashev updated JENKINS-46386 The patch from Jesse Glick has been released in 2.113. I am closing this issue, because now the general use-case is addressed Jenkins / JENKINS-46386 Agent sometimes fails to launch in custom cloud provider Change By: Oleg Nenashev Status: In Review Resolved Resolution: Fixed Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-is
[JIRA] (JENKINS-46386) Agent sometimes fails to launch in custom cloud provider
Title: Message Title Oliver Gondža updated an issue Jenkins / JENKINS-46386 Agent sometimes fails to launch in custom cloud provider Change By: Oliver Gondža Labels: lts 2.107.3 - candidate fixed Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-46386) Agent sometimes fails to launch in custom cloud provider
Title: Message Title SCM/JIRA link daemon commented on JENKINS-46386 Re: Agent sometimes fails to launch in custom cloud provider Code changed in jenkins User: Jesse Glick Path: core/src/main/java/jenkins/util/SystemProperties.java test/src/test/java/jenkins/util/SystemPropertiesTest.java war/src/main/webapp/WEB-INF/web.xml http://jenkins-ci.org/commit/jenkins/615c3b1f616b9ba4aa5dd2c348b61b3546edf882 Log: JENKINS-46386 Make SystemProperties safe to call from agent JVMs. (cherry picked from commit 7948315142cd8ac82ee69ab42416ea8af574860b) Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.