we are using the on-prem GitLab community version on Centos 7. We are doing code-quality scanning in the offline environment. We have registered a docker runner and used a code-quality FOSS template for scanning. And we have pulled locally all the required images for the scanning. Still, we are getting error. Please help us to resolve this issue.
Error:
Error response from daemon: Get “https://registry-1.docker.io/v2/”: dial tcp: lookup registry-1.docker.io on 127.0.0.53:53: write udp 127.0.0.1:46552->127.0.0.53:53: write: operation not permitted
[95]Error response from daemon: Get “https://registry-1.docker.io/v2/”: dial tcp: lookup registry-1.docker.io on 127.0.0.53:53: write udp 127.0.0.1:56171->127.0.0.53:53: write: operation not permitted
[96]error: (CC::CLI::Engines::Install::ImagePullFailure) unable to pull image codeclimate/codeclimate-structure
[97]Could not install code climate engines for the repository at /code.
Logs of scanning:
Running with gitlab-runner 16.2.0 (782e15da)
[2] on gitlabce2 S2_im26Gp, system ID: s_9d4d5d04b699
[3]Preparing the “docker” executor00:37
[4]Using Docker executor with image docker:20.10.12 …
[5]Starting service docker:20.10.12-dind …
[6]Using docker image sha256:1a42336ff683d7dadd320ea6fe9d93a5b101474346302d23f96c9b4546cb414d for docker:20.10.12-dind …
[7]Waiting for services to be up and running (timeout 30 seconds)…
[8]*** WARNING: Service runner-s2im26gp-project-2-concurrent-0-62636fedff4a7539-docker-0 probably didn’t start properly.
[9]Health check error:
[10]service “runner-s2im26gp-project-2-concurrent-0-62636fedff4a7539-docker-0-wait-for-service” timeout
[11]Health check container logs:
[12]2023-10-16T04:44:41.702599300Z waiting for TCP connection to 172.17.0.3 on [2375 2376]…
[13]2023-10-16T04:44:41.702770600Z dialing 172.17.0.3:2375…
[14]2023-10-16T04:44:41.704138900Z dialing 172.17.0.3:2376…
[15]2023-10-16T04:44:44.729678400Z dialing 172.17.0.3:2376…
[16]2023-10-16T04:44:44.729901700Z dialing 172.17.0.3:2375…
2023-10-16T04:44:45.730716400Z dialing 172.17.0.3:2375…
2023-10-16T04:44:45.731053400Z dialing 172.17.0.3:2376…
682023-10-16T04:45:10.778530200Z dialing 172.17.0.3:2376…
[71]Service container logs:
[72]2023-10-16T04:44:40.791206500Z time=“2023-10-16T04:44:40.779838800Z” level=info msg=“Starting up”
[73]2023-10-16T04:44:40.793342800Z time=“2023-10-16T04:44:40.790084700Z” level=warning msg=“could not change group /var/run/docker.sock to docker: group docker not found”
[74]-10-16T04:44:40.793378000Z failed to load listeners: can’t create unix socket /var/run/docker.sock: device or resource busy
[75]*********
[76]Using docker image sha256:15a9bc7c6340df2ac9d6c8196ca1d905180ddf2ca8b29a8d98f5422e2e5ccf85 for docker:20.10.12 …
[78]Preparing environment00:00
[79]Running on runner-s2im26gp-project-2-concurrent-0 via apps…
[81]Getting source from Git repository00:02
[82]Fetching changes with git depth set to 20…
[83]Reinitialized existing Git repository in /builds/gitlab-ce/registration-application/.git/
[84]Checking out 99c2c7b1 as detached HEAD (ref is soham)…
[85]Skipping Git submodules setup
[87]Executing “step_script” stage of the job script00:09
[88]Using docker image sha256:15a9bc7c6340df2ac9d6c8196ca1d905180ddf2ca8b29a8d98f5422e2e5ccf85 for docker:20.10.12 …
[89]$ export SOURCE_CODE=$PWD
[90]$ if ! docker info &>/dev/null; then # collapsed multi-line command
[91]$ function propagate_env_vars() { # collapsed multi-line command
[92]$ if [ -n “$CODECLIMATE_REGISTRY_USERNAME” ] && [ -n “$CODECLIMATE_REGISTRY_PASSWORD” ] && [ -n “$CODECLIMATE_PREFIX” ]; then # collapsed multi-line command
[93]$ docker run --rm \ # collapsed multi-line command
[94]Error response from daemon: Get “https://registry-1.docker.io/v2/”: dial tcp: lookup registry-1.docker.io on 127.0.0.53:53: write udp 127.0.0.1:46552->127.0.0.53:53: write: operation not permitted
[95]Error response from daemon: Get “https://registry-1.docker.io/v2/”: dial tcp: lookup registry-1.docker.io on 127.0.0.53:53: write udp 127.0.0.1:56171->127.0.0.53:53: write: operation not permitted
[96]error: (CC::CLI::Engines::Install::ImagePullFailure) unable to pull image codeclimate/codeclimate-structure
[97]Could not install code climate engines for the repository at /code
[99]Uploading artifacts for failed job00:01
[100]Uploading artifacts…
[101]WARNING: gl-code-quality-report.json: no matching files. Ensure that the artifact path is relative to the working directory (/builds/gitlab-ce/registration-application)
[102]ERROR: No files to upload
[104]Cleaning up project directory and file based variables00:01
[106]ERROR: Job failed: exit code 1