Jump to content
dharillo

Teamcity checkout on agent error

Recommended Posts

Greetings!

We are trying to use the Teamcity plugin with the "checkout on agent" configuration. This configuration works fine on Windows, but for a Linux agent the checkout does not work. The build fails event before the first build step:

image.thumb.png.b6fe2c583f4e53044cf7fed3254992e1.png

Looking at the teamcity-agent.log the next exception trace appears:

[2019-10-01 17:54:40,649]  ERROR - pl.patch.ProjectSourcesOnAgent - Problem while checkout on agent
java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.lang.SystemUtils
        at com.codicesoftware.plugins.teamcity.PathUtils.isFileInSymlinkContained(PathUtils.java:34)
        at com.codicesoftware.plugins.teamcity.PathUtils.getCanonicalPath(PathUtils.java:16)
        at com.codicesoftware.plugins.teamcity.WorkspaceManager.ensureWorkspaceExists(WorkspaceManager.java:21)
        at com.codicesoftware.plugins.teamcity.PlasticAgentVcsSupport.updateSources(PlasticAgentVcsSupport.java:67)
        at jetbrains.buildServer.agent.impl.vcs.AgentVcsManagerExImpl$CheckoutSupportImpl.updateSources(AgentVcsManagerExImpl.java:108)
        at jetbrains.buildServer.agent.impl.patch.ProjectSourcesOnAgent$1.run(ProjectSourcesOnAgent.java:186)
        at java.base/java.lang.Thread.run(Thread.java:834)
[2019-10-01 17:54:40,651]   WARN - l.patch.AbstractSourcesUpdater - Error while checkout on agent: Problem while checkout on agent: java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.lang.SystemUtils
jetbrains.buildServer.vcs.VcsException: Problem while checkout on agent: java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.lang.SystemUtils
        at jetbrains.buildServer.agent.impl.patch.ProjectSourcesOnAgent$1.run(ProjectSourcesOnAgent.java:192)
        at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.lang.SystemUtils
        at com.codicesoftware.plugins.teamcity.PathUtils.isFileInSymlinkContained(PathUtils.java:34)
        at com.codicesoftware.plugins.teamcity.PathUtils.getCanonicalPath(PathUtils.java:16)
        at com.codicesoftware.plugins.teamcity.WorkspaceManager.ensureWorkspaceExists(WorkspaceManager.java:21)
        at com.codicesoftware.plugins.teamcity.PlasticAgentVcsSupport.updateSources(PlasticAgentVcsSupport.java:67)
        at jetbrains.buildServer.agent.impl.vcs.AgentVcsManagerExImpl$CheckoutSupportImpl.updateSources(AgentVcsManagerExImpl.java:108)
        at jetbrains.buildServer.agent.impl.patch.ProjectSourcesOnAgent$1.run(ProjectSourcesOnAgent.java:186)
        ... 1 more

Plugin version:

image.thumb.png.4678d7748beaa124e0743b18f144d6d5.png

Do you know why may this be happening? I have looked at the plugin folder in the agent and the commons-lang.jar is there.

Regards!

Share this post


Link to post
Share on other sites

Hi,

I had Java 11. I just tried downgrading to Java 8 and it works fine.

Will you deliver a new plugin version compatible with Java 11?

Regards!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...