there is a ‘cache will be not downloaded’ error message appears in the job outputs, what does it mean?
Checking cache for 90...
Runtime platform arch=amd64 os=linux pid=24631 revision=8af42251 version=11.4.0
No URL provided, cache will be not downloaded from shared cache server. Instead a local version of cache will be extracted.
Successfully extracted cache
Creating cache 90...
Runtime platform arch=amd64 os=linux pid=24722 revision=8af42251 version=11.4.0
vendor/: found 13525 matching files
No URL provided, cache will be not uploaded to shared cache server. Cache will be stored only locally.
does this indicate that there is no cache for this job?
I’ve got the same problem, and the cache is not working
I have the same problem, and it looks like it’s happening even at the very first step of my pipeline
I’ve got the same problem too and after several pipelines executions I get this error:
Script cache:clear returned with error code 1
!! // Clearing the cache for the production environment with debug
!! // true
!! In Filesystem.php line 644:
!! A temporary file could not be created.
!! cache:clear [–no-warmup] [–no-optional-warmers] [-h|–help] [-q|–quiet] [-v|vv|vvv|–verbose] [-V|–version] [–ansi] [–no-ansi] [-n|–no-interaction] [-e|–env ENV] [–no-debug] [–]
Script @auto-scripts was called via post-install-cmd
I had this issue and manage to solve it. I used helm chart to setup gitlab runner on Kubernetes. If you checked the runner log, there will be hint why this happened:
ERROR: error while resolving GCS credentials: GCS config present, but credentials are not configured
Further investigated, I found missing configuration for GCS in the runner config file
config.toml. My config was like this when I checked:
Type = "gcs"
Path = "gitlab-ci/cache"
Shared = true
BucketName = "hubblesg-gitlab-cache"
As you can see, there’s supposed to be a CredentialsFile in the
kubectl create secret generic google-application-credentials \
Yup, the secret name is google-application-credentials but the file name is applicaton without the i. I didn’t copy paste this line so my file was created as gcs-application-credentials-file instead. The configMap cannot find the file applicaton (lol) and did not create the gcs setting correctly.
OH my, thank you SO much lich1710! I didn’t even notice that and I’ve created a PR to fix that: https://gitlab.com/charts/gitlab-runner/merge_requests/122