Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-13835

Git LFS repositories don't work with LFS 2.0.0 using SSH

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: 3 - High
    • Resolution: Done
    • Affects Version/s: 4.14.1, 5.1.0, 5.4.1
    • Fix Version/s: 5.3.0
    • Component/s: Git LFS
    • Labels:
      None
    • Severity:
      High

      Description

      Hello,

      I have a Git LFS repository set up with SSH authentication. Until I used Git LFS client 1.5.6 it was working perfectly. Recently I updated to Git LFS 2.0.0 with which I was unable to clone and push and got an exception in artifactory.log (see below). I reproduced this behavior both with Artifactory versions 4.14.1 and 5.1.0.

      According to the Git LFS changelog, legacy API support was removed in 2.0.0. Maybe Artifactory was using that legacy API?

      2017-03-03 11:29:13,360 [sshd-SshServer[9ac9a4d]-nio2-thread-3] [WARN ] (o.a.s.s.c.ChannelSession:102) - Error processing channel request exec
      java.lang.IllegalStateException: No match found
      	at java.util.regex.Matcher.group(Matcher.java:536) ~[na:1.8.0_91]
      	at org.artifactory.addon.gitlfs.GitLfsAuthenticateCommand.parseCommandDetails(GitLfsAuthenticateCommand.java:44) ~[artifactory-addon-git-lfs-4.14.1.jar:na]
      	at org.artifactory.security.ssh.command.AbstractAuthenticateCommand.<init>(AbstractAuthenticateCommand.java:73) ~[artifactory-core-4.14.1.jar:na]
      	at org.artifactory.addon.gitlfs.GitLfsAuthenticateCommand.<init>(GitLfsAuthenticateCommand.java:37) ~[artifactory-addon-git-lfs-4.14.1.jar:na]
      	at org.artifactory.addon.gitlfs.GitLfsAddonImpl.createGitLfsCommand(GitLfsAddonImpl.java:44) ~[artifactory-addon-git-lfs-4.14.1.jar:na]
      	at org.artifactory.security.ssh.ArtifactoryCommandFactory.createCommand(ArtifactoryCommandFactory.java:56) ~[artifactory-core-4.14.1.jar:na]
      	at org.apache.sshd.server.channel.ChannelSession.handleExec(ChannelSession.java:441) ~[sshd-core-0.14.0.jar:0.14.0]
      	at org.apache.sshd.server.channel.ChannelSession.handleRequest(ChannelSession.java:311) ~[sshd-core-0.14.0.jar:0.14.0]
      	at org.apache.sshd.server.channel.ChannelSession$ChannelSessionRequestHandler.process(ChannelSession.java:602) ~[sshd-core-0.14.0.jar:0.14.0]
      	at org.apache.sshd.server.channel.ChannelSession$ChannelSessionRequestHandler.process(ChannelSession.java:600) ~[sshd-core-0.14.0.jar:0.14.0]
      	at org.apache.sshd.common.channel.AbstractChannel.handleRequest(AbstractChannel.java:100) ~[sshd-core-0.14.0.jar:0.14.0]
      	at org.apache.sshd.common.session.AbstractConnectionService.channelRequest(AbstractConnectionService.java:274) [sshd-core-0.14.0.jar:0.14.0]
      	at org.apache.sshd.common.session.AbstractConnectionService.process(AbstractConnectionService.java:153) [sshd-core-0.14.0.jar:0.14.0]
      	at org.apache.sshd.common.session.AbstractSession.doHandleMessage(AbstractSession.java:431) [sshd-core-0.14.0.jar:0.14.0]
      	at org.apache.sshd.common.session.AbstractSession.handleMessage(AbstractSession.java:326) [sshd-core-0.14.0.jar:0.14.0]
      	at org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:780) [sshd-core-0.14.0.jar:0.14.0]
      	at org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:308) [sshd-core-0.14.0.jar:0.14.0]
      	at org.apache.sshd.common.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:54) [sshd-core-0.14.0.jar:0.14.0]
      	at org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:184) [sshd-core-0.14.0.jar:0.14.0]
      	at org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:170) [sshd-core-0.14.0.jar:0.14.0]
      	at org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:32) [sshd-core-0.14.0.jar:0.14.0]
      	at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_91]
      	at org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:30) [sshd-core-0.14.0.jar:0.14.0]
      	at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126) [na:1.8.0_91]
      	at sun.nio.ch.Invoker$2.run(Invoker.java:218) [na:1.8.0_91]
      	at sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112) [na:1.8.0_91]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_91]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_91]
      	at java.lang.Thread.run(Thread.java:745) [na:1.8.0_91]
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              nadavy Nadav Yogev
              Reporter:
              td_ul TD (Inactive)
              Votes:
              5 Vote for this issue
              Watchers:
              11 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Sync Status

                  Connection: RTFACT Sync
                  RTMID-13835 -
                  SYNCHRONIZED
                  • Last Sync Date: