I am trying to delete files using system cleanup but no file is being deleted. I am using FME Server 2016. Any pointers would be much appreciated.
Thanks.
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.
A few dumb questions from me first! The cleanup tasks are enabled, right? In 2017 there's a button to turn them on/off, and I guess 2016 would be similar. Also, there are no filter settings that would stop something being cleaned up?
Also, the cleanup tasks are only set to run once a day. Even if you set Maximum Age to (for example) 1 hour, that's the file age, not the interval at which the cleanup runs. So it would run once a day, removing any files that are >1 hour old (could be 1 hour + 1 second old, could be 23 hours and 59 seconds old)
Of course, also check that the files you expect to be cleaned are actually older than the maximum age.
Then check in the resources folder Logs > Service > Current > fmecleanup.log to see if there are any critical errors in there. You should at least see a check every 5 minutes to see what the disk space status is. This assumes you haven't changed the default log file name in the Server config files.
Also check that FMECleanup.exe is running. I don't honestly know that it is always on, or just triggered by the core at cleanup time, but it can't hurt to check.
Finally check the cleanup configuration settings to see what the Normal Conditions cleanup is set to. Again, it's usually once a day, but you might have it set to a higher number.
After that... well which files are you expecting to be cleaned and where are they? Can you post the cleanup log?
A few dumb questions from me first! The cleanup tasks are enabled, right? In 2017 there's a button to turn them on/off, and I guess 2016 would be similar. Also, there are no filter settings that would stop something being cleaned up?
Also, the cleanup tasks are only set to run once a day. Even if you set Maximum Age to (for example) 1 hour, that's the file age, not the interval at which the cleanup runs. So it would run once a day, removing any files that are >1 hour old (could be 1 hour + 1 second old, could be 23 hours and 59 seconds old)
Of course, also check that the files you expect to be cleaned are actually older than the maximum age.
Then check in the resources folder Logs > Service > Current > fmecleanup.log to see if there are any critical errors in there. You should at least see a check every 5 minutes to see what the disk space status is. This assumes you haven't changed the default log file name in the Server config files.
Also check that FMECleanup.exe is running. I don't honestly know that it is always on, or just triggered by the core at cleanup time, but it can't hurt to check.
Finally check the cleanup configuration settings to see what the Normal Conditions cleanup is set to. Again, it's usually once a day, but you might have it set to a higher number.
After that... well which files are you expecting to be cleaned and where are they? Can you post the cleanup log?
Regards
Mark
Hi @Mark2AtSafe,
It is working, just that I had to wait a day, I missed that out.
It is working, just that I had to wait a day, I missed that out.
Thanks.
Lyes.
Excellent. If you need to do it more regularly, then you can check the parameters and make the cleanup more than once a day - just don't set it to run every few seconds for obvious reasons!
Hi, bit late, but nowadays there is a REST Call to set the TaskInterval (i.e., the frequency in seconds in which cleanup tasks are executed), to a desired number of seconds. It is the PUT request with URL http://localhost/fmerest/v3/cleanup/configuration. In the RequestBody you specify criticalMinDiskPercent=10&criticalMinDiskSpace=10&criticalOperation=AND&taskInterval=60&warningMinDiskPercent=20&warningMinDiskSpace=20&warningOperation=AND&watchInterval=300, where you can set the number of seconds between the execution of cleanup tasks.