Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,366,248
Community Members
 
Community Events
168
Community Groups

LFS error "failed to push some refs" troubleshooting

After installing Sourcetree on a new computer (Windows 8.1 Pro) I am getting the following error while trying to push files:

============

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v --tags origin master:master
Pushing to http://wolgr@git.termaonline.com/root/3D.git
Uploading LFS objects: 0% (0/1), 0 B | 0 B/s
Uploading LFS objects: 0% (0/1), 0 B | 0 B/s, done

Fatal error: Server error: http://git.termaonline.com/root/3D.git/gitlab-lfs/objects/f26bc4fdbe520d3e6c5c622245ddbf0011a576b72b6d80e831487049f59c81bd/119567
error: failed to push some refs to 'http://wolgr@git.termaonline.com/root/3D.git'
Completed with errors, see above.

============

I have tried many solutions (reinstalling Sourcetree, GIT and LFS, deleting and cloning the repository again, running the git push command from the terminal... Nothing worked. The push operation works fine with small files, however when it comes to larger ones (requiring LFS) I am getting the error. The curious thing is that I am still able to push large files from the old machine. The sourcetree settings on both machines seem to be the same except for the Authentication Git Saved Passwords details.

On the old machine I had the following:

git.servername.com

On the new one the system automatically creates two entries:

git.servername.com

username@git.servername.com

I will appreciate any hints, suggestions on how to troubleshoot and solve this issue.

1 answer

0 votes
Mike Corsaro Atlassian Team Jun 26, 2019

Hello! Sounds like your issue might be similar to something like this?

Could you run the push command via terminal, and then run the following to see the logs?

git lfs logs last

 

Thanks!

Hi,

Thank you for the hint. After entering the "git push" command I am getting the familiar error:

K:\08_GIT\3D> git push
Uploading LFS objects: 0% (0/1), 0 B | 0 B/s, done
Fatal error: Server error: http://git.reponame.com/root/3D.git/gitlab-lfs/obj
ects/f26bc4fdbe520d3e6c5c622245ddbf0011a576b72b6d80e831487049f59c81bd/119567
error: failed to push some refs to 'http://username@git.reponame.com/root/3D.git
'

Then after entering the "git lfs logs last" I am getting the "No logs to show" message:

K:\08_GIT\3D> git lfs logs last
No logs to show

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events