gitlab CI fail 128 and how to solve it

If you are seeing this, then it means an earlier test has spannered out so bad that it’s now preventing other tests from working.

This quickest way to un-block it is… ssh into the runner and delete the .git/index.lock! Then re-run and it should all clear out.

HTH

fatal: Unable to create '/home/admin/tmp/builds/runner-XXX/.git/index.lock': File exists.

If no other git process is currently running, this probably means a
git process crashed in this repository earlier. Make sure no other git
process is running and remove the file manually to continue.

Build failed with exit status 128]

Author: Dan Course

Dan Course, E-Learning Development at Warwick University (WMG). Agile Scrum trained and full-stack development. Interested in E-learning, Democracy, Politics and Tech. All thoughts are mine and not of my employer.