Code quality docker pull certificate error

Hi,

I’m trying to set up code quality checks with the default examples from gitlab documentation. I’ve worked on it for 2 days but I wasn’t able to make the code quality step work. The simple ci steps with dummy echoes work fine but after adding code quality steps as in the documentation Here’s the output of the code quality step:

eRunning with gitlab-runner 14.0.0 (3b6f852e)
  on gitlab-runner-gitlab-runner-75bcb977d7-jl98d hLeZmgBN
Resolving secrets
00:00
Preparing the "kubernetes" executor
00:00
Using Kubernetes namespace: gitlab
Using Kubernetes executor with image docker:19.03.12 ...
Using attach strategy to execute scripts...
Preparing environment
01:24
Waiting for pod gitlab/runner-hlezmgbn-project-28441996-concurrent-1sbtw8 to be running, status is Pending
Waiting for pod gitlab/runner-hlezmgbn-project-28441996-concurrent-1sbtw8 to be running, status is Pending
	ContainersNotInitialized: "containers with incomplete status: [init-logs]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
Waiting for pod gitlab/runner-hlezmgbn-project-28441996-concurrent-1sbtw8 to be running, status is Pending
	ContainersNotInitialized: "containers with incomplete status: [init-logs]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
Waiting for pod gitlab/runner-hlezmgbn-project-28441996-concurrent-1sbtw8 to be running, status is Pending
	ContainersNotInitialized: "containers with incomplete status: [init-logs]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
Waiting for pod gitlab/runner-hlezmgbn-project-28441996-concurrent-1sbtw8 to be running, status is Pending
	ContainersNotInitialized: "containers with incomplete status: [init-logs]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
Waiting for pod gitlab/runner-hlezmgbn-project-28441996-concurrent-1sbtw8 to be running, status is Pending
	ContainersNotInitialized: "containers with incomplete status: [init-logs]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
Waiting for pod gitlab/runner-hlezmgbn-project-28441996-concurrent-1sbtw8 to be running, status is Pending
	ContainersNotInitialized: "containers with incomplete status: [init-logs]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
Waiting for pod gitlab/runner-hlezmgbn-project-28441996-concurrent-1sbtw8 to be running, status is Pending
	ContainersNotInitialized: "containers with incomplete status: [init-logs]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
Waiting for pod gitlab/runner-hlezmgbn-project-28441996-concurrent-1sbtw8 to be running, status is Pending
	ContainersNotInitialized: "containers with incomplete status: [init-logs]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
Waiting for pod gitlab/runner-hlezmgbn-project-28441996-concurrent-1sbtw8 to be running, status is Pending
	ContainersNotInitialized: "containers with incomplete status: [init-logs]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
Waiting for pod gitlab/runner-hlezmgbn-project-28441996-concurrent-1sbtw8 to be running, status is Pending
	ContainersNotInitialized: "containers with incomplete status: [init-logs]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
Waiting for pod gitlab/runner-hlezmgbn-project-28441996-concurrent-1sbtw8 to be running, status is Pending
	ContainersNotInitialized: "containers with incomplete status: [init-logs]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
Waiting for pod gitlab/runner-hlezmgbn-project-28441996-concurrent-1sbtw8 to be running, status is Pending
	ContainersNotInitialized: "containers with incomplete status: [init-logs]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
Waiting for pod gitlab/runner-hlezmgbn-project-28441996-concurrent-1sbtw8 to be running, status is Pending
	ContainersNotInitialized: "containers with incomplete status: [init-logs]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
Waiting for pod gitlab/runner-hlezmgbn-project-28441996-concurrent-1sbtw8 to be running, status is Pending
	ContainersNotInitialized: "containers with incomplete status: [init-logs]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
Waiting for pod gitlab/runner-hlezmgbn-project-28441996-concurrent-1sbtw8 to be running, status is Pending
	ContainersNotInitialized: "containers with incomplete status: [init-logs]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
Waiting for pod gitlab/runner-hlezmgbn-project-28441996-concurrent-1sbtw8 to be running, status is Pending
	ContainersNotInitialized: "containers with incomplete status: [init-logs]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
Waiting for pod gitlab/runner-hlezmgbn-project-28441996-concurrent-1sbtw8 to be running, status is Pending
	ContainersNotInitialized: "containers with incomplete status: [init-logs]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
Waiting for pod gitlab/runner-hlezmgbn-project-28441996-concurrent-1sbtw8 to be running, status is Pending
	ContainersNotInitialized: "containers with incomplete status: [init-logs]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
Waiting for pod gitlab/runner-hlezmgbn-project-28441996-concurrent-1sbtw8 to be running, status is Pending
	ContainersNotInitialized: "containers with incomplete status: [init-logs]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
Waiting for pod gitlab/runner-hlezmgbn-project-28441996-concurrent-1sbtw8 to be running, status is Pending
	ContainersNotInitialized: "containers with incomplete status: [init-logs]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
Waiting for pod gitlab/runner-hlezmgbn-project-28441996-concurrent-1sbtw8 to be running, status is Pending
	ContainersNotInitialized: "containers with incomplete status: [init-logs]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
Waiting for pod gitlab/runner-hlezmgbn-project-28441996-concurrent-1sbtw8 to be running, status is Pending
	ContainersNotInitialized: "containers with incomplete status: [init-logs]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
Waiting for pod gitlab/runner-hlezmgbn-project-28441996-concurrent-1sbtw8 to be running, status is Pending
	ContainersNotInitialized: "containers with incomplete status: [init-logs]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
Waiting for pod gitlab/runner-hlezmgbn-project-28441996-concurrent-1sbtw8 to be running, status is Pending
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
Waiting for pod gitlab/runner-hlezmgbn-project-28441996-concurrent-1sbtw8 to be running, status is Pending
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
Waiting for pod gitlab/runner-hlezmgbn-project-28441996-concurrent-1sbtw8 to be running, status is Pending
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
Waiting for pod gitlab/runner-hlezmgbn-project-28441996-concurrent-1sbtw8 to be running, status is Pending
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
	ContainersNotReady: "containers with unready status: [build helper svc-0]"
Running on runner-hlezmgbn-project-28441996-concurrent-1sbtw8 via gitlab-runner-gitlab-runner-75bcb977d7-jl98d...
Getting source from Git repository
00:02
Fetching changes with git depth set to 50...
Initialized empty Git repository in /builds/......./.git/
Created fresh repository.
Checking out 031c05e0 as main...
Skipping Git submodules setup
Executing "step_script" stage of the job script
00:00
$ export SOURCE_CODE=$PWD
$ if ! docker info &>/dev/null; then # collapsed multi-line command
$ function propagate_env_vars() { # collapsed multi-line command
$ docker pull --quiet "$CODE_QUALITY_IMAGE"
unable to resolve docker endpoint: open /client/ca.pem: no such file or directory
Uploading artifacts for failed job
00:01
Uploading artifacts...
WARNING: gl-code-quality-report.json: no matching files 
ERROR: No files to upload                          
Cleaning up file based variables
00:00
ERROR: Job failed: command terminated with exit code 1

I am using GitLab.com and the runners are shared runners from gitlab.

Here’s my latest .gitlab-ci.yml:

stages:          # List of stages for jobs, and their order of execution
  - build
  - test
  - deploy

include:
  - template: Code-Quality.gitlab-ci.yml

code_quality:
  stage: test
  artifacts:
    paths: [gl-code-quality-report.json]


build-job:       # This job runs in the build stage, which runs first.
  stage: build
  script:
    - echo "Compiling the code..."
    - echo "Compile complete."

unit-test-job:   # This job runs in the test stage.
  stage: test    # It only starts when the job in the build stage completes successfully.
  script:
    - echo "Running unit tests... This will take about 60 seconds."
    - sleep 60
    - echo "Code coverage is 90%"

lint-test-job:   # This job also runs in the test stage.
  stage: test    # It can run at the same time as unit-test-job (in parallel).
  script:
    - echo "Linting code... This will take about 10 seconds."
    - sleep 10
    - echo "No lint issues found."

deploy-job:      # This job runs in the deploy stage.
  stage: deploy  # It only runs when *both* jobs in the test stage complete successfully.
  script:
    - echo "Deploying application..."
    - echo "Application successfully deployed."

I’ve tried many different changes within the .gitlab-ci.yml like the documentation here tells. But I get the same error every single time. Also I’ve tried to search google/stackoverflow with no real success.

Also this is my first experience with gitlab-ci so it is probably something really easy, sorry about that.

Thanks for the help.