Skip to content

Gitlab runner:warning: failed to remove *** : Invalid argument

Summary

Gitlab :16.3.6 Omnibus in Ubuntu 22.04

Runner: 16.3.6 in Windows Server 2019 DataCenter

Executor: Powershell

Repo size: 8GB

Steps to reproduce

.gitlab-ci.yml
script:
  - '.\builds\Force_Build_Windows_x64_Release.bat' 

Actual behavior

This is correct running in the first few times. But the runner will have a error after 3-4 times.

image.pngI try to restart only the runner-service but it have no effect.

Then It will recovery after I restart the runner server. However, this operation can only work a few times.

image.png

Environment description

config.toml contents
Add 

image.png

your configuration here

Used GitLab Runner version

Runner: 16.3.6 in Windows Server 2019 DataCenter

Possible fixes

8GB repo size and lots of files maybe the reason for the error. But I can't solve it by restarting the device every time.

Edited by Derek