I have a bare repository I access over a SMB network. Quite often I suddenly get fatal error from clients trying to connect. Most of the time some push / pull / clone dance manage to solve it. This time, it’s not even possible to clone the repos, I get :
fatal: git upload-pack: cannot find object 002d4400052e62e9047763229bef7ee69cf2c95f:
I don’t understand what’s wrong. This is even not a complicated repos : 30 commits at most, only linux client, some Mo in size…
How to solve this?
Why did it happen?
How to avoid this to happen again?
After a reboot of the NAS hosting the repos, it started working again. Git can raise a lot of various errors when the hardware doesn’t follow.
Morality : when you can’t get any coherent debug, it may be because it’s not a software problem.