Skip to content

error: could not lock config file /home/gitlab-runner/builds/xxx/0/test_group_runner/20373020.tmp/git-template/config: Permission denied

gitlab-runner config:

concurrent = 1
check_interval = 0
shutdown_timeout = 0

[session_server]
  session_timeout = 1800


[[runners]]
  name = "cskt"
  url = "http://10.xxx.138.19"
  id = 5
  token = "xxx"
  token_obtained_at = 2023-09-13T03:43:21Z
  token_expires_at = 0001-01-01T00:00:00Z
  executor = "shell"
  builds_dir = "/home/gitlab-runner/builds"
  [runners.cache]
    MaxUploadedArchiveSize = 0

error log:

[0KRunning with gitlab-runner 16.3.0 (8ec04662)[0;m
[0K  on cskt q1ifqsaaG, system ID: s_3229c1fa70c1[0;m
section_start:1694629837:prepare_executor
[0K[0K[36;1mPreparing the "shell" executor[0;m[0;m
[0KUsing Shell (bash) executor...[0;m
section_end:1694629837:prepare_executor
[0Ksection_start:1694629837:prepare_script
[0K[0K[36;1mPreparing environment[0;m[0;m
Running on cskt...
section_end:1694629837:prepare_script
[0Ksection_start:1694629837:get_sources
[0K[0K[36;1mGetting source from Git repository[0;m[0;m
[32;1mFetching changes with git depth set to 20...[0;m
error: could not lock config file /home/gitlab-runner/builds/q1ifqsaaG/0/test_group_runner/20373020.tmp/git-template/config: Permission denied
section_end:1694629837:get_sources
[0K[31;1mERROR: Job failed: exit status 1
[0;m