gerrit LFS

40 views
Skip to first unread message

Ashvtosh Goel

unread,
Mar 11, 2026, 10:36:16 AM (6 days ago) Mar 11
to Repo and Gerrit Discussion
Hi group,

I am new to gerrit lfs. I have added following configuration in gerrit [3.10].


docker exec -u gerrit gerrit sh -c "cat /var/gerrit/etc/gerrit.config|grep -a2 lfs"
[lfs]
    plugin = lfs

docker exec -u gerrit gerrit sh -c "cat /var/gerrit/etc/lfs.config"
[storage]
    backend = fs
[fs]
    directory = /var/gerrit/data/lfs


 cat All-Projects/lfs.config
[lfs "lfs-test-repo"]
    enabled = true
    backend = fs


now, if i push my repo

git config -l
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
user.email=xx...@xxx.com
user.name= xxxx
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=ssh:// xxxx  @gerritserver:29418/lfs-test-repo
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
lfs.repositoryformatversion=0
lfs.url=http:// xxxx  @gerritserver:8080/lfs-test-repo/info/lfs
lfs.http:// gerritserver:8080/lfs-test-repo/info/lfs.access=basic

i get folowing response
git push origin master
Password for 'http://xxxx@gerritserver:8080':
Locking support detected on remote "origin". Consider enabling it with:
  $ git config lfs.http://xxxx@gerritserver:8080/lfs-test-repo/info/lfs.locksverify true
batch response: Repository lfs-test-repo not found
error: failed to push some refs to 'ssh://gerritserver:29418/lfs-test-repo'

on gerrit server i see following
ERROR com.googlesource.gerrit.plugins.lfs.LfsRepositoryResolver : Project lfs-test-repo is configured with not existing backend fs

Could you please help me with the configuration of lfs backend fs and storage?

BR,
Ashvtosh

Luca Milanesio

unread,
Mar 11, 2026, 1:03:15 PM (6 days ago) Mar 11
to Repo and Gerrit Discussion, Luca Milanesio, Ashvtosh Goel
Hi Ashvtosh,

See my feedback below.

> On 11 Mar 2026, at 14:34, Ashvtosh Goel <ashvto...@gmail.com> wrote:
>
> Hi group,
>
> I am new to gerrit lfs. I have added following configuration in gerrit [3.10].

Gerrit v3.10 is EOL, please upgrade to a newer version before seeking help, as we don’t guarantee support and fixes for EOL versions.
See the support policy of the project at [1].

>
>
> docker exec -u gerrit gerrit sh -c "cat /var/gerrit/etc/gerrit.config|grep -a2 lfs"
> [lfs]
> plugin = lfs
>
> docker exec -u gerrit gerrit sh -c "cat /var/gerrit/etc/lfs.config"
> [storage]
> backend = fs
> [fs]
> directory = /var/gerrit/data/lfs
>
>
> cat All-Projects/lfs.config
> [lfs "lfs-test-repo"]
> enabled = true
> backend = fs

LFS is considered a deprecated way of managing large files and is not fully supported in Gerrit.
Please also watch carefully Patrick Steinhardt’s last talk as FOSDEM 2026 describing the future of Git and large files at [2].
You should avoid implementing LFS IMHO, if you can, and rather focus on partial clones and all the new goodies coming with the Git protocol.

HTH

Luca.

[1] https://www.gerritcodereview.com/support.html
[2] https://fosdem.org/2026/schedule/event/HTJK33-evolving_git_for_the_next_decade/

>
> BR,
> Ashvtosh
>
> --
> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> More info at http://groups.google.com/group/repo-discuss?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/repo-discuss/fccac258-4afc-4ceb-9815-001f1bd03306n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages