Comments (14)
@wallace11 could you try this with lfs.ssh_enabled
disabled in your server settings?
from soft-serve.
@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.
@wallace11 you would need to expose your soft-serve http server test this
from soft-serve.
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.
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.
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.
git-lfs/3.3.0 (GitHub; linux amd64; go 1.19.4)
from soft-serve.
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.
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:
- Remove the repo from soft-serve (as it was successfully created using https)
- Enable ssh in server
- 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.
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.
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.
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.
As a workaround, you may also want to try setting lfs.ssh.automultiplex
to false
.
from soft-serve.
LFS SSH is now disabled by default, you can enable it in your config.yaml
. Closing
from soft-serve.
Related Issues (20)
- Can't add collaborator to empty repo
- Cannot Get Domain Working with Soft-Serve & Docker HOT 1
- Support S3 storage
- Update dependencies
- align soft-serve ssh server [config] with ssh-audits recommendations HOT 2
- Error: not a git repository HOT 1
- Unable to init my "admin" account HOT 9
- Cant setup admin acess HOT 1
- Set repo metadata (e.g. project-name, description, ...) from repo
- Unable to start soft serve
- Repositories no tem found
- Copy command duplicating repositories in list
- A new release?
- Error "Bummer -- not a git repository" when folder is a git repo HOT 2
- add CORS headers
- Header truncates clone command at 36 characters HOT 1
- Readme view displays Loading spinner in empty repo
- Git hooks (not a git repository) HOT 1
- Blocking anon users from accesing server with allow-keyless set to True
- Option to have bare repositories without .git in name HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from soft-serve.