Skip to content
GitLab
Next
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    Projects Groups Snippets
  • Sign up now
  • Login
  • Sign in / Register
  • gitlab-runner gitlab-runner
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 2,612
    • Issues 2,612
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 106
    • Merge requests 106
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • gitlab-runnergitlab-runner
  • Issues
  • #3802
Closed
Open
Issue created Dec 03, 2018 by Jorge Garcia Dominguez@jgarcido0 of 4 checklist items completed0/4 checklist items

ERROR: Could not create cache adapter

Summary

When running the job, this error come up. Nevertheless, the job finishes with success. Version 11.5 -> ERROR: Could not create cache adapter
error=cache factory not found: factory for cache adapter "" was not registered

Steps to reproduce

  1. It happens with any job in the gitlab-ci.yml, for example:
.cache_assets: &cache_assets
  stage: cache
  script:
    - cd client
    - yarn install
    - yarn run dist
  artifacts:
    paths:
      - client/dist
    when: on_success
    expire_in: 1 days
  1. In the runner console, I will get: error=cache factory not found: factory for cache adapter "" was not registered

  2. The job finishes as expected and cache folder is created.

Expected behavior

This error should not appear.

Environment description

This is the toml description:

[[runners]]
  name = "name-of-the-runner"
  url = "https://gitlab.com/"
  token = "XXXXXX"
  executor = "docker"
  shell = "bash"
  cache_dir = "/home/cache"
  [runners.docker]
    tls_verify = false
    image = "image/image.1.0"
    privileged = false
    disable_cache = false
    volumes = ["/home/aks:/root/.kube/", "/home/cache:/cache:rw", "/var/run/docker.sock:/var/run/docker.sock"]
    shm_size = 268435456
  [runners.cache]
    [runners.cache.s3]
    [runners.cache.gcs]

Used GitLab Runner version

Version: 11.5.0 Git revision: 3afdaba6 Git branch: 11-5-stable GO version: go1.8.7 Built: 2018-11-22T09:20:06+0000 OS/Arch: linux/amd64

Bug Investigation and analysis tasks: workflowrefinement

  • Setup test environment.
  • Attempt to reproduce the bug.
  • If bug can be reproduced, analyze logs and determine the possible root cause.
  • Update the proposal section in the desription with the proposed fix, including a note on level of effort.

Proposed fix

{placeholder}

Edited Dec 01, 2022 by Katrin Leinweber
Assignee
Assign to
Time tracking