Skip to content

Could not create cache adapter

Summary

Gitlab Runner could not create cache adapter.

Steps to reproduce

Gitlab runner config like so:

  [runners.docker]
    tls_verify = false
    image = "docker:latest"
    privileged = true
    disable_cache = false
    volumes = ["/cache"]
    shm_size = 0
  [runners.cache]

A gitlab-ci.yml like so:

image: node:latest

cache:
  paths:
  - node_modules/

test_json:
  script:
   - npm install strip-json-comments-cli jsonlint
   - node_modules/.bin/strip-json-comments *.json | node_modules/.bin/jsonlint -q

Actual behavior

Gitlab sentry errors are sent with the following:

Expected behavior

Cache should work as expected.

Environment description

Custom installation on Debian.

docker info

Containers: 2
 Running: 0
 Paused: 0
 Stopped: 2
Images: 6
Server Version: 18.09.0
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: c4446665cb9c30056f4998ed953e6d4ff22c7c39
runc version: 4fc53a81fb7c994640722ac585fa9ca548971871
init version: fec3683
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.9.0-6-amd64
Operating System: Debian GNU/Linux 9 (stretch)
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 1.911GiB
Name: dawn
ID: 2354:YXDZ:OZNR:67U7:7MKT:2ELA:2WHC:TJ7R:IOAW:7AEH:YHD5:ET3O
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine

WARNING: No swap limit support

Used GitLab Runner version

Version:      11.5.1
Git revision: 7f00c780
Git branch:   11-5-stable
GO version:   go1.8.7
Built:        2018-12-06T13:25:34+0000
OS/Arch:      linux/amd64