Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

fatal: fsync error on git/repo/path

I try to whole day resolve the trouble: When i try to pull or clone exists repository in empty directory, i got error:

$ git clone https://bitbucket.org/path_to_repo/aroma
Cloning into 'aroma'...
remote: Counting objects: 1335, done.
remote: Compressing objects: 100% (1174/1174), done.
remote: Total 1335 (delta 618), rReecused 551 (deltea 72)
Receiving objects: 100% (1335/1335), 43.16 MiB | 3.78 MiB/s, done.
Resolving deltas: 100% (618/618), done.
fatal: fsync error on 'H:/Project/testrep/aroma/.git/objects/pack/tmp_pack_xqHCKb': Bad file descriptor
fatal: index-pack failed

I tried set pack.windowMemory size and pack.packSizeLimit in config and more. The same error ;[ Before I could to clone repositories. But something went wrong

like image 601
Adobe Avatar asked Nov 27 '16 10:11

Adobe


1 Answers

Check if the issue persists with:

  • the latest version of Git for Windows,
  • on a local disk (C:\ instead of H:\)
  • from a regular CMD Windows shell session (not git bash)

Depending on the nature of the drive H:\, you could have issue accessing/updating files because of said nature.

So other repos locate neighbor and it repos very good pull and push.

If other repos are working from H: (meaning you can clone/push/pull from those repos on H:), try and duplicate (simple copy) your faulty repo to another folder, and try to clone it from that other folder. If it still fails, something is corrupted in it: time to apply git fsck to check it out.

like image 105
VonC Avatar answered Oct 02 '22 22:10

VonC