Skip to content

CI Runner not working with Windows Shell | error setting certificate verify locations | CI_SERVER_TLS_CA_FILE

Summary

I follow the guide under https://docs.gitlab.com/runner/install/windows.html. Then I had an error.

Can be fixed with adding environment = ["GIT_SSL_NO_VERIFY=true"] to Runner's config.toml.

Steps to reproduce

  1. Follow the guide for installing the Runner
  2. Start a job

Actual behavior

The system cannot find the path specified.

Expected behavior

The system find the path.

Relevant logs and/or screenshots

Running with gitlab-runner 11.0.0 (5396d320)
  on GITLAB-CI-RUNNER-01 856221dd
Using Shell executor...
Running on GITLAB-CI-RUNNER-01...
Cloning repository...
Cloning into 'C:/Program Files/GitLab-Runner/builds/856221dd/0/bubelbub/test'...
fatal: unable to access 'https://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@gitlab.bubelbub.org/bubelbub/test.git/': error setting certificate verify locations:
  CAfile: C:\Program Files\GitLab-Runner\builds\856221dd\0\bubelbub\test.tmp\CI_SERVER_TLS_CA_FILE
  CApath: none
The system cannot find the path specified.
Checking out 02e78d8e as master...
fatal: Not a git repository (or any of the parent directories): .git
ERROR: Job failed: exit status 128

Environment description

Windows Server 2012 R2 Datacenter

Used GitLab Runner version

Version:      11.0.0
Git revision: 5396d320
Git branch:   11-0-stable
GO version:   go1.8.7
Built:        2018-06-22T11:03:43+00:00
OS/Arch:      windows/amd64

and

Version:      11.1.0~beta.595.gdbf4e911
Git revision: dbf4e911
Git branch:   master
GO version:   go1.8.7
Built:        2018-07-05T17:01:37+00:00
OS/Arch:      windows/amd64