Repository replication failure due to access issues

14 views
Skip to first unread message

Yves Dubois-Pèlerin

unread,
Apr 16, 2018, 8:45:56 AM4/16/18
to GitLab
Hello,

We have a GitLab EE installed. Now I need to mirror a project to GitHub. In my GitLab project, under tab "Repository", section "Push to a remote repository", I set "Git repository URL" to "https://<USER>:<PWD>@github.com/<USER>/mytest.git" and I launch a run. I come up with the following error message:

fatal: unable to access 'https://*****:*****@github.com/<USER>/mytest.git/': Failed to connect to github.com port 443: Connection refused

My GitLab is running behind a proxy. So I edited file /etc/gitlab/gitlab.rb and I set:

gitlab_rails['env'] = {
'http.proxyHost' => "myproxy.myorg.ch",
'http.proxyPort' => "3128",
'https.proxyHost' => "myproxy.myorg.ch",
'https.proxyPort' => "3128",
'http.nonProxyHosts' => " ... "
}

Plus gitlab-ctl reconfigure. No change.

Does anyone has a clue?

Yves

Yves Dubois-Pèlerin

unread,
Apr 19, 2018, 10:11:58 AM4/19/18
to GitLab
Problem solved. For anyone who may be stuck with a similar issue, the required configuration was:

gitlab_rails['env'] = {
  'http_proxy' => "http://proxy.myorg.ch:3128",
  'https_proxy' => "http://proxy.myorg.ch:3128",
  'http.nonProxyHosts' => "...",
  'GIT_SSL_NO_VERIFY' => "true"
}

Reply all
Reply to author
Forward
0 new messages