Giter Site home page Giter Site logo

LFS push hangs about soft-serve HOT 14 CLOSED

wallace11 avatar wallace11 commented on June 8, 2024 1
LFS push hangs

from soft-serve.

Comments (14)

aymanbagabas avatar aymanbagabas commented on June 8, 2024

@wallace11 could you try this with lfs.ssh_enabled disabled in your server settings?

from soft-serve.

wallace11 avatar wallace11 commented on June 8, 2024

@wallace11 could you try this with lfs.ssh_enabled disabled in your server settings?

Thanks for the quick reply.
I can only access my server via ssh, but I tried to give this a shot anyway and obviously ran into an issue:

batch request: missing protocol: "/repo.git/info/lfs"                                                                                                                     
batch request: missing protocol: "/repo.git/info/lfs"
error: failed to push some refs to 'ssh://...'
Error: something went wrong

from soft-serve.

aymanbagabas avatar aymanbagabas commented on June 8, 2024

@wallace11 you would need to expose your soft-serve http server test this

from soft-serve.

wallace11 avatar wallace11 commented on June 8, 2024

It took me some time to figure out HTTP encryption, but I finally managed to successfully clone a private repo.
I then edited the remote to be https://token@url/repo.git and tried to push. Then I got:

Uploading LFS objects:   0% (0/114), 0 B | 0 B/s, done.
missing protocol: "/repo.git/info/lfs/objects/basic/hash"
missing protocol: "/repo.git/info/lfs/objects/basic/hash"
...
error: failed to push some refs to 'https://url/repo.git'

from soft-serve.

wallace11 avatar wallace11 commented on June 8, 2024

Okay, fiddling with it again now I figured out my mistake from last night - I did not set an http public url.
After changing that and restarting the container, I managed to push the entire repo without an issue.

This narrows down the issue to SSH only :)

from soft-serve.

aymanbagabas avatar aymanbagabas commented on June 8, 2024

Now we need to figure out if it's a git-lfs related issue or not. What git lfs version are you running?

from soft-serve.

wallace11 avatar wallace11 commented on June 8, 2024
git-lfs/3.3.0 (GitHub; linux amd64; go 1.19.4)

from soft-serve.

aymanbagabas avatar aymanbagabas commented on June 8, 2024
git-lfs/3.3.0 (GitHub; linux amd64; go 1.19.4)

Could you try the latest Git LFS version with lfs.ssh_enabled? Git LFS v3.4 includes some fixes related to the pure SSH protocol

from soft-serve.

wallace11 avatar wallace11 commented on June 8, 2024

I've compiled git-lfs from source:

git-lfs/3.4.0 (GitHub; linux amd64; go 1.21.1)

I repeated the test from before:

  1. Remove the repo from soft-serve (as it was successfully created using https)
  2. Enable ssh in server
  3. Set the git remote to ssh://.../repo on the client

My finding: the issue persists with this version as well.


Interestingly enough, trying to push using the http remote that I used before (but this time with lfs.ssh_enabled = true) worked but the LFS routine was skipped.
I confirmed that by cloning the repo again and running git lfs fetch --all which resulted in an error.

Edit:
Running git lfs push --all on a https remote with lfs.ssh_enabled = true I was able to push the lfs files, and then pull them on another repo!

from soft-serve.

lovepreetjassal avatar lovepreetjassal commented on June 8, 2024

Hello, I am also having the same problem.

Uploading LFS objects: 100% (1/1), 444 B | 0 B/s

Let me know how I can help debug this.

from soft-serve.

aymanbagabas avatar aymanbagabas commented on June 8, 2024

This is probably related to git-lfs/git-lfs#5535 and git-lfs/git-lfs#5537. Could you try the latest git-lfs build from master?

from soft-serve.

KyleFromKitware avatar KyleFromKitware commented on June 8, 2024

This is probably related to git-lfs/git-lfs#5535 and git-lfs/git-lfs#5537. Could you try the latest git-lfs build from master?

I agree, this looks a lot like the issue I ran into that prompted git-lfs/git-lfs#5537. Please try building the latest main of git-lfs.

from soft-serve.

KyleFromKitware avatar KyleFromKitware commented on June 8, 2024

As a workaround, you may also want to try setting lfs.ssh.automultiplex to false.

from soft-serve.

aymanbagabas avatar aymanbagabas commented on June 8, 2024

LFS SSH is now disabled by default, you can enable it in your config.yaml. Closing

from soft-serve.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.