Skip to content

GH Desktop hangs forever when attempting to clone a lfs-enabled repo #9629

Closed

Description

@egardner

Describe the bug

I'm trying to use GH Desktop to clone a (private) repository which has LFS enabled (using Netlify's LFS service). After selecting the desired repo from my account and cloning it, the progress bar hangs forever without giving any useful output or error message. I thought that there would be some kind of prompt to install Git-LFS locally.

Version & OS

GH Desktop Version 2.4.2
Mac OS Catalina 10.15.4

For what it's worth, I'm attempting this on what is basically a clean install of Catalina; I have not installed Git LFS or any other git-related command line tools on the machine yet.

Steps to reproduce the behavior

  1. Clone an existing repository which has LFS enabled
  2. The process never completes and there is no error message or other info

Expected behavior

Expected the repository to clone successfully, or maybe to see a prompt to install Git LFS (it is not currently installed).

Actual behavior

Repository hangs forever on clone.

Screenshots

Screen Shot 2020-04-26 at 3 30 09 PM

Logs

2020-04-26T22:23:51.787Z - info: [ui] [AppStore] loading 0 repositories from store
2020-04-26T22:23:51.955Z - info: [ui] [Welcome] no sign in step found. ignoring...
2020-04-26T22:23:51.959Z - info: [ui] [Welcome] no sign in step found. ignoring...
2020-04-26T22:23:52.137Z - info: [ui] Opt in reported.
2020-04-26T22:23:52.400Z - info: [ui] launching: 2.4.2 (Mac OS 10.15.4)
2020-04-26T22:23:52.400Z - info: [ui] execPath: '/Applications/GitHub Desktop.app/Contents/Frameworks/GitHub Desktop Helper (Renderer).app/Contents/MacOS/GitHub Desktop Helper (Renderer)'
2020-04-26T22:23:52.413Z - info: [ui] [Welcome] no sign in step found. ignoring...
2020-04-26T22:23:52.434Z - info: [ui] [Welcome] no sign in step found. ignoring...
2020-04-26T22:23:55.421Z - info: [ui] [Welcome] advancing to step: SignInToDotCom
2020-04-26T22:23:55.424Z - info: [ui] [Welcome] current sign in state not found. ignoring...
2020-04-26T22:24:15.283Z - info: [ui] [Welcome] kind Authentication is the same as Authentication. ignoring...
2020-04-26T22:24:26.777Z - info: [ui] [Welcome] kind TwoFactorAuthentication is the same as TwoFactorAuthentication. ignoring...
2020-04-26T22:24:27.501Z - info: [ui] [AppStore] adding account egardner (Eric Gardner) to store
2020-04-26T22:24:27.509Z - info: [ui] [Welcome] advancing to step: ConfigureGit
2020-04-26T22:24:27.592Z - info: [ui] [Welcome] no sign in step found. ignoring...
2020-04-26T22:24:29.699Z - info: [ui] [Welcome] no sign in step found. ignoring...
2020-04-26T22:24:34.041Z - info: [ui] [Welcome] advancing to step: UsageOptOut
2020-04-26T22:24:36.906Z - info: [ui] Opt out reported.
2020-04-26T22:24:36.923Z - info: [ui] [Welcome] no sign in step found. ignoring...
2020-04-26T22:25:30.889Z - info: [ui] [AppStore.getAccountForRemoteURL] account found for remote: https://github.com/egardner/sjma-50x50.git - egardner (has token)

Activity

  1. changed the title [-]GH Desktop hangs forever when attempting to clone a ifs-enabled repo[/-] [+]GH Desktop hangs forever when attempting to clone a lfs-enabled repo[/+] on Apr 26, 2020
  2. egardner commented on Apr 26, 2020

    @egardner
    Author

    Another bit of information here:

    After quitting out of GH Desktop, a local copy of the repo does indeed exist on my hard drive. But it's in a somewhat disordered state: lots of unstaged changes even though the working tree should be clean after cloning from origin.

    Attempting to stash the local changes produced this error message from git:

    fatal: Unable to create '/Users/eric/Dev/sjma-50x50/.git/index.lock': File exists.
    
    Another git process seems to be running in this repository, e.g.
    an editor opened by 'git commit'. Please make sure all processes
    are terminated then try again. If it still fails, a git process
    may have crashed in this repository earlier:
    remove the file manually to continue.
    

    So it looks like some process is crashing silently on the initial clone step, leaving things in a bit of a mess.

  3. tierninho commented on Apr 28, 2020

    @tierninho
    Contributor

    @egardner thank you for the issue! The error you mentioned is the issue:

    fatal: Unable to create '/Users/eric/Dev/sjma-50x50/.git/index.lock': File exists.
    

    This often happens when Git crashes unexpectedly. What you will want to do to resolve this is go to the hidden .git directory show in the error message and delete the index.lock file located there. You will need to enable viewing hidden files and folders on Windows. After deleting that index.lock file you should be able to use GitHub Desktop again.

    Let me know if you run into any further issues and we'd be happy to take a look.

  4. added
    more-info-needed
    on Apr 28, 2020
  5. egardner commented on Apr 28, 2020

    @egardner
    Author

    Thanks, @tierninho – I was able to remove the file and eventually got things working in the terminal, but the underlying issue about not being able to see any useful error message from the GUI still seemed worth flagging here.

  6. tierninho commented on Apr 28, 2020

    @tierninho
    Contributor

    Thanks for the update. Glad everything is back in order! I will add your comments to an existing issue for improvements to the lock file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    more-info-needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions