Skip to main content
Question

FME Server not deleting files using System Cleanup

  • June 20, 2017
  • 5 replies
  • 18 views

mygis
Supporter
Forum|alt.badge.img+14
  • Supporter
  • 307 replies

Hi,

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.

5 replies

mark2atsafe
Safer
Forum|alt.badge.img+56
  • Safer
  • 2554 replies
  • June 20, 2017

Hi.

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


mygis
Supporter
Forum|alt.badge.img+14
  • Author
  • Supporter
  • 307 replies
  • June 21, 2017

Hi @Mark2AtSafe;

 

I was under the impression that the cleanup would start immediately. In this specific case, if I had to put an age of 30 minutes:

1. How can I test it out?

2. When is he starting time? Can it be changed?

 

 

 


mygis
Supporter
Forum|alt.badge.img+14
  • Author
  • Supporter
  • 307 replies
  • June 21, 2017

Hi.

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.

 

Thanks.

 

Lyes.

 


mark2atsafe
Safer
Forum|alt.badge.img+56
  • Safer
  • 2554 replies
  • June 21, 2017
Hi @Mark2AtSafe,

 

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!

 

 


helmoet
Forum|alt.badge.img+8
  • 195 replies
  • August 17, 2020

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.