Getting a fatal error:server error when uploading to LFS

Hello, I am having some trouble getting some large-ish (around 30-50mb) .wav files uploaded to git-lfs

Here’s the log I’m getting when doing a push:

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks commit -q -F C:\Users\me\AppData\Local\Temp\nvq0n0gt.jnv

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v --set-upstream origin newleveldesign2:newleveldesign2
Pushing to git@gitlab.server.com:myuser/projectname.git
Locking support detected on remote "origin". Consider enabling it with:
  $ git config lfs.https://gitlab.server.com/myuser/projectname.git/info/lfs.locksverify true
Uploading LFS objects:   0% (0/4), 33 KB | 9.5 KB/s                             
Uploading LFS objects:   0% (0/4), 33 KB | 9.5 KB/s, done
Fatal error: Server error: http://gitlab.server.com/myuser/projectname.git/gitlab-lfs/objects/ff18f39e84c9d1c566b23c1f7733bd3d0a030979384686ae2dfef2fc798dd5f7/37257664
Fatal error: Server error: http://gitlab.server.com/myuser/projectname.git/gitlab-lfs/objects/5b7a770ee83006ab00d7c2efdb2f6e1b31a516970bd04d670ba56505177fa576/4235602
Fatal error: Server error: http://gitlab.server.com/myuser/projectname.git/gitlab-lfs/objects/eb833da7a81fa7fa73292899587ebafa38c873cc329a191a34157e1a2c338d51/22813732
Fatal error: Server error: http://gitlab.server.com/myuser/projectname.git/gitlab-lfs/objects/019bb241093c492c01f75123ee2fa4b30298712d0fddbb3b1bc611026d1ffe3e/23286802

error: failed to push some refs to 'git@gitlab.server.com:myuser/projectname.git'
Completed with errors, see above.

I have had .wav files uploaded to the remote previously and haven’t had any issues before.

I tried GIT_TRACE=1 git push and here’s the log I got: https://hastebin.com/fuguzapeme.bash

Currently running Gitlab CE 10.5.4

1 Like

If anyone else is having this issue: I fixed it by setting
git config lfs.contenttype false

1 Like

did you set this on the client side?

This problem is also persistent in a self-hosted instance of Gitlab, and our admin initially thought that it was due to lack of storage. But even after doing some artifacts cleanup and housekeeping which freed up >4GB, we are still unable to upload a file that’s >100MB in size into git lfs.

git config lfs.contenttype false

The fix mentioned above doesn’t solve the problem.

@knavero git configs are usually done on the developer side, not GitLab admin.