Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-73324

ERROR: Checkout failed - NoClassDefFoundError: org/eclipse/jgit/internal/JGitText

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • git-plugin
    • None

      Jenkins agent not able to clone git repo, seems there is and issue with JNLP4-Connect:

      Cloning the remote Git repository
      ERROR: Checkout failed
      Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from 172.xx.3.xx/172.xx.3.xxx:38596
      at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1784)
      at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
      at hudson.remoting.Channel.call(Channel.java:1000)
      at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:153)

      From the agent logs, the slave agent are able to connect with the master, but it's suddenly terminated:

      Jun 18, 2024 10:24:54 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Connected
      Jun 18, 2024 10:24:59 AM org.csanchez.jenkins.plugins.kubernetes.KubernetesSlave$SlaveDisconnector call
      INFO: Disabled agent engine reconnects.
      Jun 18, 2024 10:24:59 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Terminated
      Jun 18, 2024 10:24:59 AM hudson.remoting.Request$2 run
      INFO: Failed to send back a reply to the request UserRequest:hudson.Launcher$RemoteLauncher$KillTask@1915f08c: hudson.remoting.ChannelClosedException: Channel "hudson.remoting.Channel@345786ef:JNLP4-connect connection to jenkins-iac-agent.jenkins-iac.svc.cluster.local/10.xx.71.xxx:50000": channel is already closed
      Exception in thread "Thread-24" java.lang.NoClassDefFoundError: org/eclipse/jgit/internal/JGitText
      at org.eclipse.jgit.internal.util.ShutdownHook.cleanup(ShutdownHook.java:85)
      at java.base/java.lang.Thread.run(Unknown Source)

          [JENKINS-73324] ERROR: Checkout failed - NoClassDefFoundError: org/eclipse/jgit/internal/JGitText

          Dio created issue -
          Dio made changes -
          Description Original: Jenkins agent not able to clone git repo, seems there is and issue with JNLP4-Connect:
          Cloning the remote Git repository
          ERROR: Checkout failed
          Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from 172.xx.3.xx/172.xx.3.xxx:38596
          at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1784)
          at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
          at hudson.remoting.Channel.call(Channel.java:1000)
          at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:153)
          From the agent logs, the slave agent are able to connect with the master, but it's suddenly terminated:


          Jun 18, 2024 10:24:54 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Connected
          Jun 18, 2024 10:24:59 AM org.csanchez.jenkins.plugins.kubernetes.KubernetesSlave$SlaveDisconnector call
          INFO: Disabled agent engine reconnects.
          Jun 18, 2024 10:24:59 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Terminated
          Jun 18, 2024 10:24:59 AM hudson.remoting.Request$2 run
          INFO: Failed to send back a reply to the request UserRequest:hudson.Launcher$RemoteLauncher$KillTask@1915f08c: hudson.remoting.ChannelClosedException: Channel "hudson.remoting.Channel@345786ef:JNLP4-connect connection to jenkins-iac-agent.jenkins-iac.svc.cluster.local/10.xx.71.xxx:50000": channel is already closed
          Exception in thread "Thread-24" java.lang.NoClassDefFoundError: org/eclipse/jgit/internal/JGitText
          at org.eclipse.jgit.internal.util.ShutdownHook.cleanup(ShutdownHook.java:85)
          at java.base/java.lang.Thread.run(Unknown Source)
          New: *Jenkins agent not able to clone git repo, seems there is and issue with JNLP4-Connect:*

          Cloning the remote Git repository
          ERROR: Checkout failed
          Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from 172.xx.3.xx/172.xx.3.xxx:38596
          at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1784)
          at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
          at hudson.remoting.Channel.call(Channel.java:1000)
          at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:153)

          *From the agent logs, the slave agent are able to connect with the master, but it's suddenly terminated:*

          Jun 18, 2024 10:24:54 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Connected
          Jun 18, 2024 10:24:59 AM org.csanchez.jenkins.plugins.kubernetes.KubernetesSlave$SlaveDisconnector call
          INFO: Disabled agent engine reconnects.
          Jun 18, 2024 10:24:59 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Terminated
          Jun 18, 2024 10:24:59 AM hudson.remoting.Request$2 run
          INFO: Failed to send back a reply to the request UserRequest:hudson.Launcher$RemoteLauncher$KillTask@1915f08c: hudson.remoting.ChannelClosedException: Channel "hudson.remoting.Channel@345786ef:JNLP4-connect connection to jenkins-iac-agent.jenkins-iac.svc.cluster.local/10.xx.71.xxx:50000": channel is already closed
          Exception in thread "Thread-24" java.lang.NoClassDefFoundError: org/eclipse/jgit/internal/JGitText
          at org.eclipse.jgit.internal.util.ShutdownHook.cleanup(ShutdownHook.java:85)
          at java.base/java.lang.Thread.run(Unknown Source)
          Mark Waite made changes -
          Assignee Original: Mark Waite [ markewaite ]
          Mark Waite made changes -
          Summary Original: ERROR: Checkout failed New: ERROR: Checkout failed - NoClassDefFoundError: org/eclipse/jgit/internal/JGitText
          Mark Waite made changes -
          Link New: This issue is related to JENKINS-40050 [ JENKINS-40050 ]
          Mark Waite made changes -
          Environment Original: Production
          Mark Waite made changes -
          Priority Original: Blocker [ 1 ] New: Minor [ 4 ]
          Dio made changes -
          Attachment New: image-2024-06-19-05-23-01-646.png [ 62738 ]
          Mark Waite made changes -
          Resolution New: Cannot Reproduce [ 5 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

            Unassigned Unassigned
            ideadio Dio
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: