TeamCity Cleanup runs weekly not daily

After repeatedly needing to run cleanup manually to reclaim disk space on out TeamCity server I notice that full cleanup is not happening daily as I thought it would but weekly. I manually ran a cleanup today because the disk partition was getting dangerously close to filling.

From a recent cleanup log:

[2014-08-13 15:17:40,552]   INFO -  jetbrains.buildServer.CLEANUP - Searching for obsolete artifact directories (not used by any build) under directory: /data/teamCity/system/artifacts

[2014-08-13 15:17:42,285]   INFO -  jetbrains.buildServer.CLEANUP - Found 262 obsolete artifact directories, will remove all of them

[2014-08-13 15:18:08,392]   INFO -  jetbrains.buildServer.CLEANUP - Removed 262 obsolete artifact directories, disk space freed: 70.12 MB

[2014-08-14 02:00:00,004]   INFO -  jetbrains.buildServer.CLEANUP - Git cleanup started

[2014-08-14 02:00:00,008]   INFO -  jetbrains.buildServer.CLEANUP - Git cleanup finished

[2014-08-15 02:00:00,004]   INFO -  jetbrains.buildServer.CLEANUP - Git cleanup started

[2014-08-15 02:00:00,008]   INFO -  jetbrains.buildServer.CLEANUP - Git cleanup finished

[2014-08-16 02:00:00,004]   INFO -  jetbrains.buildServer.CLEANUP - Git cleanup started

[2014-08-16 02:00:00,008]   INFO -  jetbrains.buildServer.CLEANUP - Git cleanup finished

[2014-08-17 02:00:00,006]   INFO -  jetbrains.buildServer.CLEANUP - Git cleanup started

[2014-08-17 02:00:00,011]   INFO -  jetbrains.buildServer.CLEANUP - Git cleanup finished

[2014-08-18 02:00:00,002]   INFO -  jetbrains.buildServer.CLEANUP - Git cleanup started

[2014-08-18 02:00:00,006]   INFO -  jetbrains.buildServer.CLEANUP - Git cleanup finished

[2014-08-18 13:59:03,106]   INFO -  jetbrains.buildServer.CLEANUP - Trying to get lock for the maintenance process...

[2014-08-18 13:59:03,107]   INFO -  jetbrains.buildServer.CLEANUP - Lock for the maintenance process obtained

[2014-08-18 13:59:03,109]   INFO -  jetbrains.buildServer.CLEANUP - Preparing for clean-up...

[2014-08-18 13:59:03,109]   INFO -  jetbrains.buildServer.CLEANUP - Clean-up started...

[2014-08-18 13:59:03,207]   INFO -  jetbrains.buildServer.CLEANUP - Collecting builds depending on other builds...

[2014-08-18 13:59:04,878]   INFO -  jetbrains.buildServer.CLEANUP - Done collecting depending builds for each cleanup level

[2014-08-18 13:59:04,878]   INFO -  jetbrains.buildServer.CLEANUP -     Processing MAINTENANCE :: Maven Repo Purge :: utl-tca09 {id=MavenRepoPurge_Tca09, internal id=bt1001}

[2014-08-18 13:59:04,878]   INFO -  jetbrains.buildServer.CLEANUP -             Applying policy: clean ARTIFACTS older than the 3rd successful build; artifact patterns: +:**/*


Is this expected behavior? If so, how can I make it run daily?

Thanks,
-Dave

5 comments
Comment actions Permalink

I have attached the full cleanup log.



Attachment(s):
teamcity-cleanup.log.gz
0
Comment actions Permalink

Hi,

Could you please attach screenshot of your Clean-up setting and also teamcity-server.log file?

0
Comment actions Permalink

Alina,

I restarted the teamcity server service which seemed to fix it. Cleanup has been happening daily since the restart (August 18th). For the record, cleanup was skipped Aug4-Aug12 and Aug14-Aug17 as you can see in the cleanup log.

-Dave

TC-Cleanup-settings.png



Attachment(s):
teamcity-server-logs.tgz
0
Comment actions Permalink

Thank you for provided info. I've created an issue and also we have a related feature request, please watch/vote for them.

0
Comment actions Permalink

That's great, Alina! Thank you.

-Dave

0

Please sign in to leave a comment.