Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git clone/pull stuck after enabling lfs support #2015

Closed
2 of 7 tasks
ufosaga opened this issue Jun 20, 2017 · 7 comments
Closed
2 of 7 tasks

git clone/pull stuck after enabling lfs support #2015

ufosaga opened this issue Jun 20, 2017 · 7 comments

Comments

@ufosaga
Copy link

ufosaga commented 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

...

@lunny lunny added the type/bug label Jun 20, 2017
@lunny lunny added this to the 1.x.x milestone Jun 20, 2017
@bkcsoft
Copy link
Member

bkcsoft commented Jul 2, 2017

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

@ufosaga
Copy link
Author

ufosaga commented 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.

@ghost
Copy link

ghost commented 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

@bkcsoft
Copy link
Member

bkcsoft commented 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

@dani
Copy link

dani commented 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
Copy link

dani commented 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

@stale
Copy link

stale bot commented 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 stale bot added the issue/stale label Jan 31, 2019
@lunny lunny closed this as completed Feb 1, 2019
@lunny lunny removed this from the 1.x.x milestone Feb 1, 2019
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants