You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
When connection is closed by remote host and then reconnects git doesn't push the commits until git push is re-issued #1066
I was doing a large push to git hub lfs and in the middle of it; the connection was closed but it resumed automatically. But the files were updated git I had to re-issue git push. I am using version below
git-lfs/1.1.1 (GitHub; darwin amd64; go 1.5.3; git 7de0397)
Here is console log
git commit -m"hotfix for cmuench:phppos cmuench$ git commit -m"hotfix for loading item kit helper"
[master 5e3a312] hotfix for loading item kit helper
5 files changed, 10 insertions(+), 10 deletions(-)
cmuench:phppos cmuench$ git push
Git LFS: (4 of 5 files) 365.01 MB / 396.71 MB
Connection to github.com closed by remote host.
Git LFS: (4 of 5 files) 368.37 MB / 396.71 MB
Git LFS: (4 of 5 files) 368.50 MB / 396.71 MB
Git LFS: (4 of 5 files) 368.62 MB / 396.71 MB
Git LFS: (4 of 5 files) 368.64 MB / 396.71 MB
Git LFS: (5 of 5 files) 396.71 MB / 396.71 MB
cmuench:phppos cmuench$ git push
Git LFS: (0 of 5 files, 5 skipped) 0 B / 396.71 MB, 396.71 MB skipped
Git LFS: (0 of 5 files, 5 skipped) 0 B / 396.71 MB, 396.71 MB skipped
Counting objects: 8, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (8/8), done.
Writing objects: 100% (8/8), 1.08 KiB | 0 bytes/s, done.
Total 8 (delta 1), reused 0 (delta 0)
To [email protected]:PHP-Point-Of-Sale/PHP-Point-Of-Sale-Website.git
1f77e30..5e3a312 master -> master
Actually, I don't think that matters in this case because there are so few files. Without GIT_TRACE=1 git push output, it's difficult to pinpoint where this is happening exactly. My hunch is the git lfs pre-push command (called by .git/hooks/pre-push) is hitting a connection error, recovering, but still exiting with a non zero status, halting the git push.
I am running into this as well. In my case we have a large number of files, but it always fails at the same point... So far I have not been able to push any regular files to the repo (despite seemingly having uploaded all the LFS stuff - all the messages now say 0 of n files, n skipped). I'll try running with GIT_TRACE=1 and see if that gives anything. It's a little hard because I have to wait for it to run about 15-20 minutes every time before it fails 😞
A snippet from the logs after running with GIT_TRACE=1, at the point where it failed:
Hi @vlsd, is this still a problem? Since there hasn't been any activity on this thread in a couple of years, I am going to assume that all is OK for now. If this isn't so, please do let me know and I'd be happy to dive in further. Thanks.
I'm getting this as well with 2.21. I downgraded to 2.17 in hopes of making it resolve itself (no joy btw). It seems to be tied to the types of changes inside of a single commit. I've been able to work around by changing one file at a time, committing, then pushing (then repeat). It's very irritating.
Could you open a new issue for this, since it's a very different version from the original reporter, and please attach the output of running the command with GIT_TRACE=1? Also, could you please provide the output of git lfs env on the affected system?
@foobarbecue The best I could come up with on this was some ssh incompatibility with my wifi card and work's network. When I'm at home, everything is great. When I'm on their network, things get all weird. This is true for other applications as well.
For git, I had to switch to using https from ssh and that made it happy.
I'm using a gaming laptop and it came with a "Killer Wireless" wifi adapter. The default settings do packet scanning to try to prioritize gaming packets over normal traffic. This setting was severely breaking all of my ssh/ssl connections. I turned it off and everything works like it should
The specific setting in the Killer Control Center is "Advanced Stream Detect"
I'm using a gaming laptop and it came with a "Killer Wireless" wifi adapter. The default settings do packet scanning to try to prioritize gaming packets over normal traffic. This setting was severely breaking all of my ssh/ssl connections. I turned it off and everything works like it should
The specific setting in the Killer Control Center is "Advanced Stream Detect"
I sincerely want to thank you for this. I've been having this exact issue on my Alienware for a year. All sorts of problems with scp and git push. I didn't know what to do. I'm so grateful you posted this. Everything was perfect on Ethernet, but on Wifi, nada.
Activity
technoweenie commentedon Mar 10, 2016
Are you using an SSH remote?
blasto333 commentedon Mar 10, 2016
Yes
technoweenie commentedon Mar 10, 2016
Actually, I don't think that matters in this case because there are so few files. Without
GIT_TRACE=1 git pushoutput, it's difficult to pinpoint where this is happening exactly. My hunch is thegit lfs pre-pushcommand (called by.git/hooks/pre-push) is hitting a connection error, recovering, but still exiting with a non zero status, halting the git push.vlsd commentedon May 18, 2016
I am running into this as well. In my case we have a large number of files, but it always fails at the same point... So far I have not been able to push any regular files to the repo (despite seemingly having uploaded all the LFS stuff - all the messages now say
0 of n files, n skipped). I'll try running withGIT_TRACE=1and see if that gives anything. It's a little hard because I have to wait for it to run about 15-20 minutes every time before it fails 😞A snippet from the logs after running with
GIT_TRACE=1, at the point where it failed:vlsd commentedon May 19, 2016
I tried doing the same thing over HTTPS and it worked without a hitch on the first try. I would say this is an SSH-related issue.
ttaylorr commentedon Jul 27, 2018
Hi @vlsd, is this still a problem? Since there hasn't been any activity on this thread in a couple of years, I am going to assume that all is OK for now. If this isn't so, please do let me know and I'd be happy to dive in further. Thanks.
spacepluk commentedon Mar 13, 2019
We just reproduced this on Windows with these versions:
spacepluk commentedon Mar 18, 2019
@ttaylorr Should I open a new issue?
jnbarlow commentedon Apr 29, 2019
I'm getting this as well with 2.21. I downgraded to 2.17 in hopes of making it resolve itself (no joy btw). It seems to be tied to the types of changes inside of a single commit. I've been able to work around by changing one file at a time, committing, then pushing (then repeat). It's very irritating.
bk2204 commentedon Apr 29, 2019
Could you open a new issue for this, since it's a very different version from the original reporter, and please attach the output of running the command with
GIT_TRACE=1? Also, could you please provide the output ofgit lfs envon the affected system?jnbarlow commentedon Apr 29, 2019
@bk2204 yeah, when it happens again, I'll capture all the things and make new issue. Thanks
foobarbecue commentedon Jul 7, 2019
Just happened to me. Is there a new issue?
output with GIT_TRACE=1:
(And then new commit does not show up in github commit list.)
Output of
git lfs env:I ran git push one more time after that. It didn't re-upload the big file, but did a normal commit and this one showed up in the github commit list.
jnbarlow commentedon Jul 8, 2019
@foobarbecue The best I could come up with on this was some ssh incompatibility with my wifi card and work's network. When I'm at home, everything is great. When I'm on their network, things get all weird. This is true for other applications as well.
For git, I had to switch to using https from ssh and that made it happy.
inandi commentedon Sep 29, 2019
I don't know exactly what happened. but I changed my wifi to mobile hotspot and it worked. can anyone explain !!! weird right :P
on WIFI
On Hotspot
jnbarlow commentedon Oct 23, 2019
So, I finally figured out what my problem was.
I'm using a gaming laptop and it came with a "Killer Wireless" wifi adapter. The default settings do packet scanning to try to prioritize gaming packets over normal traffic. This setting was severely breaking all of my ssh/ssl connections. I turned it off and everything works like it should
The specific setting in the Killer Control Center is "Advanced Stream Detect"
Captainlonate commentedon Oct 29, 2019
I sincerely want to thank you for this. I've been having this exact issue on my Alienware for a year. All sorts of problems with
scpandgit push. I didn't know what to do. I'm so grateful you posted this. Everything was perfect on Ethernet, but on Wifi, nada.