git clone/pull stuck after enabling lfs support #826

Closed
opened 2025-11-02 03:37:57 -06:00 by GiteaMirror · 7 comments
Owner

Originally created by @ufosaga on GitHub (Jun 20, 2017).

  • Gitea version (or commit ref):
    1.1.2
  • Git version:
    1.9.1
  • Operating system:
Linux LC-SVR-dev 3.13.0-119-generic #166-Ubuntu SMP Wed May 3 12:18:55 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Description:    Ubuntu 14.04.5 LTS
Release:        14.04
Codename:       trusty
  • Database (use [x]):

    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:

  • Log gist:
    Nothing unusual

Description

The repo and config are migrated from gogs v0.11.rc.

  1. Enable lfs support in app.ini:
    LFS_START_SERVER = true
    LFS_CONTENT_PATH = /home/git/data/lfs-data
    LFS_JWT_SECRET = LqI8JDMWKGseM1WvKyg7FoOlj8Q7RGVYO9g963so0Lw

  2. restart gitea:
    sudo service gitea restart

  3. Then git clone/pull will stuck:
    $ git clone git@mydomain.tech:thomas/lfs-test.git
    Cloning into 'lfs-test'...
    ^C
    $ git pull
    ^C

...

Originally created by @ufosaga on GitHub (Jun 20, 2017). - Gitea version (or commit ref): 1.1.2 - Git version: 1.9.1 - Operating system: ``` Linux LC-SVR-dev 3.13.0-119-generic #166-Ubuntu SMP Wed May 3 12:18:55 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux Description: Ubuntu 14.04.5 LTS Release: 14.04 Codename: trusty ``` - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [x] No, https://try.gitea.io does not enable lfs support - [ ] Not relevant - Log gist: Nothing unusual ## Description The repo and config are migrated from gogs v0.11.rc. 1. Enable lfs support in app.ini: LFS_START_SERVER = true LFS_CONTENT_PATH = /home/git/data/lfs-data LFS_JWT_SECRET = LqI8JDMWKGseM1WvKyg7FoOlj8Q7RGVYO9g963so0Lw 2. restart gitea: sudo service gitea restart 3. Then git clone/pull will stuck: $ git clone git@mydomain.tech:thomas/lfs-test.git Cloning into 'lfs-test'... ^C $ git pull ^C ...
GiteaMirror added the issue/staletype/bug labels 2025-11-02 03:37:57 -06:00
Author
Owner

@bkcsoft commented on GitHub (Jul 2, 2017):

Were the hooks updated after the migration (and turning on LFS)?

@bkcsoft commented on GitHub (Jul 2, 2017): Were the hooks updated after the migration (and turning on LFS)?
Author
Owner

@ufosaga commented on GitHub (Jul 10, 2017):

Yes, I did Resync pre-receive, update and post-receive hooks of all repositories. in the admin panel after enabled the LFS and restarted server.

@ufosaga commented on GitHub (Jul 10, 2017): Yes, I did `Resync pre-receive, update and post-receive hooks of all repositories.` in the admin panel after enabled the LFS and restarted server.
Author
Owner

@ghost commented on GitHub (Apr 4, 2018):

Same problem for me but gitea 1.4.0
Linux sxyz 3.10.0-693.21.1.el7.x86_64 #1 SMP Wed Mar 7 19:03:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
CentOS Linux release 7.4.1708 (Core)

Edit : Resolved using https://packages.endpoint.com/ to obtain a more recent git : 2.8.4

@ghost commented on GitHub (Apr 4, 2018): Same problem for me but **gitea 1.4.0** Linux sxyz 3.10.0-693.21.1.el7.x86_64 #1 SMP Wed Mar 7 19:03:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux CentOS Linux release 7.4.1708 (Core) **Edit : Resolved using https://packages.endpoint.com/ to obtain a more recent git : 2.8.4**
Author
Owner

@bkcsoft commented on GitHub (Apr 28, 2018):

@colundrum Are you sure 2.8.4 fixed it? The documentation for git-lfs states 1.8.2 should be fine 🤔 https://github.com/git-lfs/git-lfs/wiki/Installation#requirements

@bkcsoft commented on GitHub (Apr 28, 2018): @colundrum Are you sure 2.8.4 fixed it? The documentation for `git-lfs` states 1.8.2 should be fine :thinking: https://github.com/git-lfs/git-lfs/wiki/Installation#requirements
Author
Owner

@dani commented on GitHub (Nov 26, 2018):

I have the same issue (git clone hangs if LFS is enabled on Gitea). On CentOS 7 too, but using git 2.12.2 from SCL repo. I'll try to get some more info. Gitea version is 1.6.0

@dani commented on GitHub (Nov 26, 2018): I have the same issue (git clone hangs if LFS is enabled on Gitea). On CentOS 7 too, but using git 2.12.2 from SCL repo. I'll try to get some more info. Gitea version is 1.6.0
Author
Owner

@dani commented on GitHub (Nov 26, 2018):

Forget about my previous comment. Gitea daemon was indeed started using the 2.12.2 GIT version, but SSH sessions were not (and so, was using the default 1.8.3 version). Just added a /etc/profile.d/ snippet enabling the SCL version by default. Working now

@dani commented on GitHub (Nov 26, 2018): Forget about my previous comment. Gitea daemon was indeed started using the 2.12.2 GIT version, but SSH sessions were not (and so, was using the default 1.8.3 version). Just added a /etc/profile.d/ snippet enabling the SCL version by default. Working now
Author
Owner

@stale[bot] commented on GitHub (Jan 31, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Jan 31, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#826