Project

General

Profile

Actions

GitDebugging » History » Revision 1

Revision 1/3 | Next »
Andreas Kohlbecker, 05/22/2017 08:20 AM


Git Debugging

see also #6383

debugging ssh connectivity poblems

The following stack overflow discussions cover means of debugging ssh connectivity poblems:

http://stackoverflow.com/questions/27422936/git-push-with-ssh-remote-fails-unless-verbose
http://stackoverflow.com/questions/25388499/how-can-i-run-git-push-pull-commands-with-ssh-verbose-mode/25390120#25390120

To get more insight into this problem we need to do the following:

From Git version 2.3.0, you can use the environment variable GIT_SSH_COMMAND and pass the -v verbose argument like this GIT_SSH_COMMAND="ssh -v"
configure all release jobs to use GIT_TRACE=2 git push --verbose for committing. This must also be done in the git flow server scripts
if it turns out that there are not ssh problem, further investigation can be done setting the environmental variables GIT_TRACE_PACKET=true and GIT_TRACE=2

configure jenkins to use the above environment variables system wide: jenkins/configure#section71

https://git-scm.com/book/en/v2/Git-Internals-Environment-Variables#Debugging

http://stackoverflow.com/questions/6178401/how-can-i-debug-git-git-shell-related-problems#17344517+

Updated by Andreas Kohlbecker almost 7 years ago · 1 revisions