The `Clear runner caches` does nothing for Windows runners
Setup: GitLab Version 15.5.4-ee
Windows x64 runner Version 15.5.0
Steps to reproduce:
- Pause Runner
- In project pipelines press
Clear runner cachesbutton - Start runner
- Retry failed pipeline or create new one
Expected result: New cache volumes appear in Docker Desktop app
Actual result: No new volumes appear, old cache volumes are used
This was attempt to fix another problem:
When switching docker from hyper-v to process isolation it stops working because of wrong access rights on cache volumes:
"Adding CA certificate..."
Root "Trusted Root Certification Authorities"
Signature matches Public Key
Certificate "Local Root" added to store.
CertUtil: -addstore command completed successfully.
ParentContainsErrorRecordException:
Line |
56 | [System.IO.File]::WriteAllText("C:\<BuildFolder>\<Project-Name>.tmp …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Exception calling "WriteAllText" with "2" argument(s): "Access to the path 'C:\\<BuildFolder>\<Project-Name>.tmp\CI_SERVER_TLS_CA_FILE' is denied."
The only workaround I know is stopping Docker Services and moving folders out from C:\ProgramData\Docker\volumes. But it needs admin rights which Gitlab Runner already has.
Edited by Raimund Hook