Symptoms
When running a clone step, you see this message: fatal: Unable to create '/codefresh/volume/reponame/.git/index.lock': File exists
Cause
A stale volume may have crashed, leaving behind a lock file in the cache.
Solution
Re-run the build with a cleared file cache.
- Open the pipeline
- Select Run
- Click Advanced Options
- Select
Ignore Docker engine cache for build
andReset pipeline volume
- Run the build
This will reset the volume and clear out any stale files.