free disk space build feature not working

We configured one of our build configurations with a "free disk space" build feature like this

freeDiskSpace {
    requiredSpace = "5gb"
    failBuild = true
}

A build in this configuration failed with the following message:

MSB3027: Could not copy 'source' to 'dest'. Exceeded retry count of 'number'. Failed

- https://docs.microsoft.com/en-us/visualstudio/msbuild/errors/msb3027?view=vs-2022

with further details telling us that there is not enough space left on disk.

Unfortunately, I cannot find any trace of the "free disk space" build feature in the log of this build. Or any build at all.

I am under the impression that this build feature does not work.

What am I missing here?

0
2 comments

Hello, 

Can you please share the build log with us and also the teamcity-agent.log  of the agent that run the build, covering a period where the free disk space feature was enabled but didn't work?

You can share it with us via our secure upload service:

https://uploads.jetbrains.com/

After the upload you can share the upload ID here and we will investigate this issue further.

Thank you,

Guilherme

0

Hello Guilherme Barbosa,

since my original post, we upgraded TeamCity. Currently, running 2022.04.2 (build 108655) and it looks like that this build feature now is mentioned in the buildlog as one would expect.

But unfortunately, two of our build agents are not able to meet the given requirement. In this configuration, we set the required disk space to 10gb.

Drive Z: is a RAM-Disk with a capacity of 20gb.

You can find the BuildLog and the teamcity-agent.log as follows:

Upload id: 2022_08_01_8S2L1uxFxgwCg3NEVk4MJo (files: teamcity-agent.log, Development_Build_Test_Merge_requests_72543.log)

The build was triggered at 2022-08-01 09:06:27 wich correspond to line 9972 in the agent log.

 

Can you explain why the Agent is not able to delete enough files to meet the 10gb requirement?

Thank you,

Sebastian

0

Please sign in to leave a comment.