Skip to content

TROUBLESHOOTING Git settings in centos

Why do that

During the punchplatform-deployer.sh --configure-git-repo on Centos, you could have the following output:

PLAY RECAP *************************************************************************************************************************************************************************************************
test1                      : ok=8    changed=6    unreachable=0    failed=0   


LOG: initializing the git remote configuration...
ssh: Could not resolve hostname test1:: Name or service not known
fatal: Could not read from remote repository.

It means you can't push your commit in your git_bare cause of you could not resolve the hostname

What to do

In the punchplatform-deployment.settings add the port to your "git_bare_server_address" variable :

"git_bare_server_address" : "test1:22",

It should work!!