TeamCity cleanup not working

Hi,

We're running TeamCity 7.0.3 (build 21424)

We are running out of space everyday, while we have the TC build cleanup scheduled to run every night at 00:00.

The main consumer of space we see is the artifacts.

We had set it up to cleanup artifacts older than the 2nd             successful build, but we had some failing builds for many days so we changed the artifact cleanup rule to more than 2 day older than the last build. Still we see artifacts from 10th of August not getting cleaned up.

When inspecting the logs we see the cleanup start at midnight, but other than the first two lines at midnight the rest of the jetbrains.buildServer.CLEANUP logs resume 5 hours later! Not sure if the cleanup is working in the background for 5 hours or if something else is triggering the cleanup logs we see at 5am

the number of days should be a positive integer value


[2012-08-23 00:00:05,834]   INFO -  jetbrains.buildServer.CLEANUP - Preparing for clean-up...
[2012-08-23 00:00:05,834]   INFO -  jetbrains.buildServer.CLEANUP - Clean-up started...
...

[2012-08-23 05:10:33,806]   INFO -  jetbrains.buildServer.CLEANUP - Collecting builds depending on other builds...
[2012-08-23 05:12:36,619]   INFO -  jetbrains.buildServer.CLEANUP - Done collecting depending builds for each cleanup level
...


We turned on debug logging and re-ran the cleanup this morning and got this log which seems like TeamCity isn't doing anything:

[2012-08-23 09:40:27,230]   INFO -  jetbrains.buildServer.CLEANUP - Preparing for clean-up...
[2012-08-23 09:40:27,230]   INFO -  jetbrains.buildServer.CLEANUP - Clean-up started...
[2012-08-23 09:40:27,231]  DEBUG -  jetbrains.buildServer.CLEANUP - Clean started
[2012-08-23 09:40:27,252]  DEBUG -  jetbrains.buildServer.CLEANUP - Remove unused repositories started
[2012-08-23 09:40:27,252]  DEBUG -  jetbrains.buildServer.CLEANUP - Remove unused repositories finished
[2012-08-23 09:40:27,253]  DEBUG -  jetbrains.buildServer.CLEANUP - Start cleaning monitoring data
[2012-08-23 09:40:27,253]  DEBUG -  jetbrains.buildServer.CLEANUP - Finish cleaning monitoring data
[2012-08-23 09:40:27,253]  DEBUG -  jetbrains.buildServer.CLEANUP - Clean finished


And when we run the cleanup subsequently we only see the following log message:

[2012-08-23 11:44:56,388]   WARN -  jetbrains.buildServer.CLEANUP - Another maintenance process already running.


Any ideas why TC cleanup is not cleaning up artifacts from 2 weeks ago?

Appreciate any help on this. Thanks!

Please sign in to leave a comment.