Git LFS files not found on the server

We used Git with git-lfs hosted by our own Gitlab instance.

Sometimes, when one specific user clicks files, some of them (it seems .png files) do not end up in the LFS repository, but are added to git. I could not see the log / messages when this was still happening on their machine.

But what happens when other users try to download this file from LFS, it gives an error message:

[28bbec36fe441b7de97d566872c71cd4542384d871b369168285408c1f062cfd] The object does not exist on the server or you do not have access rights to it

I tried to manually upload the file in its place on the Gitlab server in the git -lfs data directory with the correct SHA for the file name, but it doesn't seem to fit. So far, the only solution is to touch the file so that it generates another SHA and reloads it.

Is it possible to manually add a separate file to the Gitlab git -lfs repository?

+7
git gitlab git-lfs
source share
1 answer

I assume git -lfs was not installed correctly on the client side of the click. However, if you have git -lfs 0.5.4, you can fix it as follows:

# git lfs push --object-id origin [oid] [oid] [oid] $ git lfs push --object-id origin 28bbec36fe441b7de97d566872c71cd4542384d871b369168285408c1f062cfd 
+8
source share

All Articles