Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

LFS error "failed to push some refs" troubleshooting

Testowy Adresik
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 26, 2019

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
Atlassian Team members are employees working across the company in a wide variety of roles.
June 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!

Testowy Adresik
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 26, 2019

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
AUG Leaders

Atlassian Community Events