What is this .old directory and why is it devouring my agent?
Some of our builds have started failing due to insufficient space on the agent machines. Investigating it appeared the checkout directories were being copied to a .old directory inside work. Why is this happening and how can I stop it? There's nothing helpful in the documentation.
System details:
Teamcity 5.0.3 on ubuntu 8.04, Agents on Red Hat EL 5, SuSE11, Windows 2003 and Solaris 10
Please sign in to leave a comment.
Jennifer,
This works as follows. If agent understands that checkout directory is no longer used, agent moves it under the .old folder. Then, when agent becomes idle, it will clean files from this folder. But if agent never becomes idle, it is possible that .old will increase and only when available disk spac reaches some limit, agent will try to remove .old during the next build start.
If you have problems with disk space, then probably cleaning logic is not working properly. Please provide agent logs.
Kind regards,
Marina
Hi,
I have same problem on Linux. A .old folder is now 1To and no space left. I've clean it up myself, but I don't understand what could be wrong, and what exactly are these folders used for?
And can we configure the cleanup, or see cleanup logs somewhere?
Hello,
As long as you do not run out of disk space, you can leave the decision to clean .old to an agent itself. But if you have problems with disk space, then probably cleaning logic is not working properly. In this case please send as agent logs.
Kind regards,
Marina
I'm having the same issue, where do I send the log files, and which ones do you want?
We'll need \buildAgent\logs\teamcity-agent.log
You can post it here, or send to teamcity-feedback@jetbrains.com (please mention a lint to this thread).
Thanks
Michael
The issue is eventually filed as TW-17652.
Although being 11 years old some question:
When does an agent becomes idle and will start cleanup? We are using cloud profiles and are suspending agents.
Or other way: how long should Cloud profile agents run so .old can be cleaned up?
In our case, if an agent runs several builds serially, there is no idle time between builds, then it causes the agent has no space since TeamCity doesn't have chance to remove .old directory.
Is there anyway to disable this .old function cause we don't need this backup folder and it caused space issue with bad impact.
I have this issue. Whenever I try to do a clean build it runs the build agent out of disk space. I don't have enough disk space for two whole copies of the checkout directory. Here is the relevant bit from the log from the build agent: