I migrated my git server to a new server and now I try to push my data to the new one.
- Client: Windows, TortoiseGit
- Server: docker git-server
The log when trying to push
git.exe push --progress "originNew" master:master
Counting objects: 26735, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (14502/14502), done.
Writing objects: 2% (535/26735), 32.00 KiB | 45.00 KiB/s
And after clicking “OK” on the dialog TortoiseGitPlink Fatal Error: “Network error: software caused connection abort” the above text changes to
git.exe push --progress "originNew" master:master
Counting objects: 26735, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (14502/14502), done.
fatal: sha1 file '<stdout>' write error: Broken pipe
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
git did not exit cleanly (exit code 128) (405265 ms @ 02.04.2018 12:16:21)
Maybe of interest: Compressing needs ~6sec up to 99% (14430/14502), for 100% (the last ~70 items) it needs ~6 min.
What I already did:
Permissions: Doing the same with a test repo with just 2 files works!
SSH keepalive: I changed ssh_config on client to include
Host *
ServerAliveInterval 25
ServerAliveCountMax 40
This should send a packet every 25 seconds (max 40 times), so if my ssh connection to the git server is idle it should be kept alive for ~16min.
HDs: Enough space on client and server
Questions:
- Any other ideas how to push my data to the new server?
- Any other ideas on what could cause this besides permissions and idle connections?
- How can I check if the ssh_config file I changed is the right one? (used by TortoiseGit). I changed 'C:\Program Files\Git\etc\ssh' (only one found)
- Can I somehow investigate who closes the ssh connection?
- Which log files on client and server could help to find the problem? Any verbose/debug flags I could switch on?