"Permission denied" when using cache in any shell executor job
Hello,
I've just joined in and want to thank you for the awesome product you've created. I've been using it for a while and it helped me a lot. Thanks!
However I'm stuck with a problem: whenever I try to use cache for some of my jobs I'm getting "Permission denied". I've just updated to the latest version. Before I updated I was getting the error at the end of the job that was using cache, now after the update I'm getting the error right when I start. My previous version was about month old (it wasn't displaying new commits).
Error before update:
Archiving cache...
-bash: line 35: /usr/local/bin/gitlab-ci-multi-runner: Permission denied
Error after the update:
Checking cache for build_and_deploy/master...
/usr/bin/bash: line 45: /usr/local/bin/gitlab-ci-multi-runner: Permission denied
Here is my relevant config for the runner:
[[runners]]
name = "shell runner"
tls-ca-file = ""
executor = "shell"
cache_dir = "/var/lib/gitlab-runner/cache"
[runners.ssh]
[runners.docker]
image = ""
privileged = false
[runners.parallels]
base_name = ""
[runners.virtualbox]
base_name =
And relevant job config:
build_and_deploy:
stage: deploy
tags:
- nodejs
cache:
#key: "$CI_BUILD_NAME"
untracked: true
except:
- tags
script:
- npm install
- jspm install -y
- gulp export
I've used the manual installation method for the runner, but used different home directory for the user (that the only custom thing). When I login with the gitlab-runner user I'm able to access the configured cache directory, so I'm not really sure why I'm getting this error. It might be related to my configuration, but I'm not sure, so that's why I'm posting this one here.
Thanks!