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

Git LFS 1.5.6 does not work with Artifactory 5.4.5 if ssh is configured

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 5.4.4
    • Fix Version/s: 5.4.6
    • Component/s: Git LFS, SSH Authentication
    • Labels:
      None
    • Regression:
      Yes
    • Sprint:
      Leap 18

      Description

      When configuring Artifactory to authenticate Git LFS 1.5.6 client via SSH, if you try to upload or download LFS blobs from artifactory, the below error is thrown:
      batch request: exit status 255: exec request failed on channel 0

      Steps to reproduce:
      1. install Git LFS 1.5.6
      2. follow this article for configuring Git LFS with Artifactory:
      https://www.jfrog.com/knowledge-base/how-to-make-git-lfs-work-and-configure-it-with-artifactory-in-5-min/
      3. Configure Git LFS to authenticate with SSH
      4. try to upload or download LFS blob from artifactory
      5. you will receive this error from the client:
      batch request: exit status 255: exec request failed on channel 0

      And the below error from Artifactory:

      2017-07-27 21:24:09,312 [sshd-SshServer[18e85f01]-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_121]
      at org.artifactory.addon.gitlfs.GitLfsAuthenticateCommand.parseCommandDetails(GitLfsAuthenticateCommand.java:44) ~[artifactory-addon-git-lfs-5.4.5.jar:na]
      at org.artifactory.security.ssh.command.AbstractAuthenticateCommand.<init>(AbstractAuthenticateCommand.java:73) ~[artifactory-core-5.4.5.jar:na]
      at org.artifactory.addon.gitlfs.GitLfsAuthenticateCommand.<init>(GitLfsAuthenticateCommand.java:37) ~[artifactory-addon-git-lfs-5.4.5.jar:na]
      at org.artifactory.addon.gitlfs.GitLfsAddonImpl.createGitLfsCommand(GitLfsAddonImpl.java:44) ~[artifactory-addon-git-lfs-5.4.5.jar:na]
      at org.artifactory.security.ssh.ArtifactoryCommandFactory.createCommand(ArtifactoryCommandFactory.java:56) ~[artifactory-core-5.4.5.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_121]
      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_121]
      at sun.nio.ch.Invoker$2.run(Invoker.java:218) [na:1.8.0_121]
      at sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112) [na:1.8.0_121]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_121]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_121]
      at java.lang.Thread.run(Thread.java:745) [na:1.8.0_121]

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nadavy Nadav Yogev
                Reporter:
                mohammadt Mohammad Tibi
                Assigned QA:
                Mor Iluz (Inactive)
              • Votes:
                3 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: