<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Gitlab runners fail every 30th build]]></title><description><![CDATA[<p dir="auto">We have Gitlab installed as a Cloudron app on our VPS server. Until recently, the our gitlab-runner.service was working fine. On Tuesday 3rd June we started getting unexpected failed jobs from the gitlab-runner. Upon further testing, it appears that the first 29 jobs pass as expected, and then the 30th job, and any subsequent jobs, fail until the service is stopped and restarted. The error seems to happen when the pipeline job is cloning a repository. This is an example of a log from one of the failed jobs:</p>
<blockquote>
<p dir="auto">Running with gitlab-runner 17.11.0 (v17.11.0)<br />
on default_mydevice_somenumber A-number, system ID: id_number<br />
Preparing the "shell" executor 00:00<br />
Using Shell (bash) executor...<br />
Preparing environment<br />
Running on mydevice...<br />
Getting source from Git repository<br />
Fetching changes with git depth set to 20...<br />
Reinitialized existing Git repository in /var/lib/private/gitlab-runner/builds/A-number/0/OrgName/mainRepo/.git/<br />
Checking out 130d8ca7 as detached HEAD (ref is refs/merge-requests/294/head)...<br />
Skipping Git submodules setup<br />
Executing "step_script" stage of the job script 00:03<br />
$ export repo2=$(mktemp -d)<br />
$ GIT_TRACE=1 GIT_FLUSH=1 git -c core.progress=false clone <a href="https://gitlab-ci-token:$CI_JOB_TOKEN@my-self-hosted-git.com/OrgName/repo2" target="_blank" rel="noopener noreferrer nofollow ugc">https://gitlab-ci-token:$CI_JOB_TOKEN@my-self-hosted-git.com/OrgName/repo2</a> $repo2<br />
09:27:40.005972 git.c:476               trace: built-in: git clone <a href="https://gitlab-ci-token" target="_blank" rel="noopener noreferrer nofollow ugc">https://gitlab-ci-token</a>:[MASKED]@my-self-hosted-git.com/OrgName/repo2 /tmp/tmp.NDTArMtQAp<br />
Cloning into '/tmp/tmp.NDTArMtQAp'...<br />
09:27:40.009784 run-command.c:667       trace: run_command: git remote-https origin <a href="https://gitlab-ci-token" target="_blank" rel="noopener noreferrer nofollow ugc">https://gitlab-ci-token</a>:[MASKED]@my-self-hosted-git.com/OrgName/repo2<br />
09:27:40.009805 run-command.c:759       trace: start_command: /nix/store/805a5wv1cyah5awij184yfad1ksmbh9f-git-2.49.0/libexec/git-core/git remote-https origin <a href="https://gitlab-ci-token" target="_blank" rel="noopener noreferrer nofollow ugc">https://gitlab-ci-token</a>:[MASKED]@my-self-hosted-git.com/OrgName/repo2<br />
09:27:40.011889 git.c:772               trace: exec: git-remote-https origin <a href="https://gitlab-ci-token" target="_blank" rel="noopener noreferrer nofollow ugc">https://gitlab-ci-token</a>:[MASKED]@my-self-hosted-git.com/OrgName/repo2<br />
09:27:40.011944 run-command.c:667       trace: run_command: git-remote-https origin <a href="https://gitlab-ci-token" target="_blank" rel="noopener noreferrer nofollow ugc">https://gitlab-ci-token</a>:[MASKED]@my-self-hosted-git.com/OrgName/repo2<br />
09:27:40.011965 run-command.c:759       trace: start_command: /nix/store/805a5wv1cyah5awij184yfad1ksmbh9f-git-2.49.0/libexec/git-core/git-remote-https origin <a href="https://gitlab-ci-token" target="_blank" rel="noopener noreferrer nofollow ugc">https://gitlab-ci-token</a>:[MASKED]@my-self-hosted-git.com/OrgName/repo2<br />
warning: redirecting to <a href="https://my-self-hosted-git.com/OrgName/repo2.git/" target="_blank" rel="noopener noreferrer nofollow ugc">https://my-self-hosted-git.com/OrgName/repo2.git/</a><br />
09:27:40.411977 run-command.c:667       trace: run_command: git index-pack --stdin --fix-thin '--keep=fetch-pack 1061622 on mydevice' --check-self-contained-and-connected<br />
09:27:40.412021 run-command.c:759       trace: start_command: /nix/store/805a5wv1cyah5awij184yfad1ksmbh9f-git-2.49.0/libexec/git-core/git index-pack --stdin --fix-thin '--keep=fetch-pack 1061622 on mydevice' --check-self-contained-and-connected<br />
09:27:40.415115 git.c:476               trace: built-in: git index-pack --stdin --fix-thin '--keep=fetch-pack 1061622 on mydevice' --check-self-contained-and-connected<br />
fatal: write error: No space left on device<br />
fatal: fetch-pack: invalid index-pack output<br />
Running after_script<br />
Running after script...<br />
$ rm -rf $repo2<br />
Cleaning up project directory and file based variables<br />
ERROR: Job failed: exit status 1</p>
</blockquote>
<p dir="auto">The device on which the gitlab-runner is running has plenty of space, as does the Linode server. We tried increasing the RAM on the Linode server, but still found the 30th job onwards failed, after the first 29 passed. This behaviour suggests something is building up somewhere and then preventing further jobs from succeeding, but we are not sure what. We are looking for any help or pointers you might be able to give us to solve this issue.</p>
<p dir="auto">I wonder if the failure may have been caused by an update to the gitlab app. Perhaps someone else may have reported similar problems.</p>
<p dir="auto">Thanks in advance.</p>
]]></description><link>https://forum.cloudron.io/topic/13934/gitlab-runners-fail-every-30th-build</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Jul 2026 01:59:11 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/13934.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 13 Jun 2025 15:38:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Gitlab runners fail every 30th build on Tue, 10 Mar 2026 10:59:35 GMT]]></title><description><![CDATA[<p dir="auto">We solved this in the end by adding some clean up to the GitLab runner's after_script in our .gitlab-ci.yml file:</p>
<pre><code>  before_script:
    - stat -c %m /tmp
    - du -sh /tmp
    - ls /tmp -la
    - export XDG_CACHE_HOME=$(mktemp -d)

# Each job leaks files into the gitlab-runner's private /tmp
  after_script:
    - rm -rf $XDG_CACHE_HOME
    - du -sh /tmp
    - ls /tmp -la
    - find /tmp -mindepth 1 -maxdepth 1 -user gitlab-runner -exec rm -rf {} +
    - du -sh /tmp
    - ls /tmp -la
</code></pre>
<p dir="auto">We could see the files that got left over when we added the logging lines.</p>
]]></description><link>https://forum.cloudron.io/post/121555</link><guid isPermaLink="true">https://forum.cloudron.io/post/121555</guid><dc:creator><![CDATA[davejgreen]]></dc:creator><pubDate>Tue, 10 Mar 2026 10:59:35 GMT</pubDate></item><item><title><![CDATA[Reply to Gitlab runners fail every 30th build on Mon, 16 Jun 2025 14:44:10 GMT]]></title><description><![CDATA[<p dir="auto">Thank you, Nebulon, for your reply.</p>
<p dir="auto">The runners are on a different machine.</p>
<p dir="auto">I don't think that the machine with the runners is running out of space because it has a very large amount available on all partitions (the root has 300GB available). I think the error is originating from the cloudron machine (although I may be wrong).</p>
<p dir="auto">In order to try to confirm the location of the error, I will setup another gitlab runner client on a different machine, and see if that has the same problem. Hopefully that will isolate the error either to the Cloudron server, or else the gitlab runner machines.</p>
]]></description><link>https://forum.cloudron.io/post/108754</link><guid isPermaLink="true">https://forum.cloudron.io/post/108754</guid><dc:creator><![CDATA[rlp10]]></dc:creator><pubDate>Mon, 16 Jun 2025 14:44:10 GMT</pubDate></item><item><title><![CDATA[Reply to Gitlab runners fail every 30th build on Fri, 13 Jun 2025 17:20:45 GMT]]></title><description><![CDATA[<p dir="auto">The logs mention that the system ran out of disk space:</p>
<pre><code>...
fatal: write error: No space left on device
....
</code></pre>
<p dir="auto">Not sure how the server is setup which has the runner (should <a href="https://docs.cloudron.io/packages/gitlab/#gitlab-runner-for-ci" target="_blank" rel="noopener noreferrer nofollow ugc">not</a> be on Cloudron) but since the runner is failing, this is a bit out of scope for Cloudron itself.</p>
]]></description><link>https://forum.cloudron.io/post/108637</link><guid isPermaLink="true">https://forum.cloudron.io/post/108637</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Fri, 13 Jun 2025 17:20:45 GMT</pubDate></item></channel></rss>