Hi,
i created a new Project on my Gitlab Server which Needs also Gitlab-CI.
It run’s before very well (a long time not used/needed), but now Gitlab-Ci cannot connect any more to Gitlab to clone Repository via gitlab-ci-token. I use Docker run Tests in.
Gitlab and Gitlab-Ci are running on the same machine.
Blockquote
Using Docker executor with image ruby:2.3 …
Using docker image sha256:1929606e8374ad6403b85848b4740af5d872a3034e5989893d67f9ba591cbc3c for predefined container…
Pulling docker image ruby:2.3 …
Using docker image ruby:2.3 ID=sha256:03ff8cebf24fa355353a00dae607155efd56f565c82ef22bf4dd7599a34cd026 for build container…
Running on runner-4ea268f6-project-9-concurrent-0 via gitlab.walhalla.local…
Cloning repository…
Cloning into ‘/builds/thomas/puppet’…
fatal: unable to access ‘http://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@192.168.98.27/thomas/puppet.git/’: Failed to connect to 192.168.98.27 port 80: Host is unreachable
ERROR: Job failed: exit code 1
If if try to checkout Repository via user: gitlab-ci-token, and a CI-Token as Password on local Gitlab Server i got this:
Blockquote
[09:35h][root@gitlab][:~]$ git clone http://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx@192.168.98.27/thomas/puppet.git
Klone nach ‘puppet’ …
remote: HTTP Basic: Access denied
fatal: Authentication failed for ‘http://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx@192.168.98.27/thomas/puppet.git/’
Gitlab-runner Verify says, everything is ok:
Blockquote
[09:35h][root@gitlab][:~]$ gitlab-runner verify
Running in system-mode.
Verifying runner… is alive runner=XXXXXX
Verifying runner… is alive runner=XXXXXX
/etc/giltlab-runner/config.toml looks like this:
Blockquote
concurrent = 2
check_interval = 0
[[runners]]
name = “CI-Docker1”
url = “http://gitlab.walhalla.local”
token = “XXXXXXXXXXXXXXXXXXXXXXXXXXXX”
executor = “docker”
[runners.docker]
tls_verify = false
image = “debian:latest”
privileged = false
disable_cache = false
volumes = [“/cache”]
extra_hosts = [“gitlab.walhalla.local:192.168.98.27”]
shm_size = 0
[[runners]]
name = “CI-Docker2”
url = “http://gitlab.walhalla.local”
token = “XXXXXXXXXXXXXXXXXXXXXXXXXXXX”
executor = “docker”
[runners.docker]
tls_verify = false
image = “debian:latest”
privileged = false
disable_cache = false
volumes = [“/cache”]
extra_hosts = [“gitlab.walhalla.local:192.168.98.27”]
shm_size = 0
Blockquote
I don’t know what has been changed on Gitlab or Giltab-CI, but i would be very happy if someone could help me to get Gitlab-CI and Gitlab work together again.
with regards,
cloudclimber