Question: I've used Git LFS for GitLab for a few months now without any problems, but it returned the following error while pushing files lately:

```
$ git push origin master
Git LFS: (14 of 14 files) 8.88 MB / 8.88 MB
Counting objects: 54, done.
Delta compression using up to 6 threads.
Compressing objects: 100% (49/49), done.
Writing objects: 100% (54/54), 5.42 KiB | 0 bytes/s, done.
Total 54 (delta 15), reused 0 (delta 0)
remote: GitLab: LFS objects are missing. Ensure LFS is properly set up or try a manual "git lfs push --all".
To https://gitlab.com/<gitURL>.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://gitlab.com/<gitURL>.git'

```

where `gitURL` is my git-repository URL.

As the error suggests I tried to manually push my binary files, using `git lfs push --all`, which gives me the following output:

```
$ git lfs push --all origin master
Git LFS: (0 of 0 files, 1370 skipped) 0 B / 0 B, 1.77 GB skipped

```

which means by my understanding that all my local files are already successfully stored on my server.

Trying to fetch all lfs files does work fine as well:

```
$ git lfs fetch --all
Scanning for all objects ever referenced...
* 1446 objects found
Fetching objects...

```

which finishes without any errors.

Moreover checking all lfs files for consistency using `git lfs fsck` seems to work fine too:

```
$ git lfs fsck
Git LFS fsck OK

```

I'm starting to run out of ideas about fixing this error now. 
Any help would be greatly appreciated.

Answer: 
I got this error even though (to my knowledge) I did not have any LFS objects in my gitlab repository.

```
remote: GitLab: LFS objects are missing. Ensure LFS is properly set up or try a manual "git lfs push --all".

```

The solution was to disable **Git Large File Storage (LFS)** in the gitlab project settings.

Settings > General > Visibility, project features, permissions > Expand > Git Large File Storage (LFS)
This command helped me:

```sh
git lfs ls-files -l | awk '{ print $1 }' | xargs git lfs push --object-id origin

```

And it is faster than the other answer.