Hi All,
I am experiencing an issue with HDD space on windows system drive due to temp folder filling up during WebGIS DR backup at 11.1.
For ArcGIS Server, WebGIS DR uses the AGS Service Account User's local temp folder by default which is:
C:\Users\<user>\AppData\Local\Temp
and for WebGIS DR is required to be "around 166 percent of the current size of the arcgisserver directory" to incorporate backups. This size can increase quite a bit depending on what users are publishing and whether you're including scene tiles in your backups, so we manage application needs with non-system drives.
The ArcGIS Server Properties contains a "localTempFolder" parameter that seems like it should override windows user temp defaults. I can't get the WebGIS DR process to write to this directory when localTempFolder is set.
I have tried this path using the following with no luck:
{"localTempFolder":"E:\\arcgistemp"}
{"localTempFolder":"E:/arcgistemp"}
I have managed to explicitly set the AGS SA user's TMP and TEMP user environment variables in windows directly, which outputs to the secondary drive temp folder, though there are some risks to this.
My concern is that the changing of AGS SA user environmental variables (TEMP & TMP) creates a risk to stability if other admins remove/delete this folder, as which would have (likely) disasterous affects to the operation AGS.
It seems setting temp variabl is possible in Linux AGS environments, but not in the windows documentation.
Another post indicates this is possible for Portal temp files, so hopefully there is a way for AGS also "application" way of configuring this: Solved: webgisdr temp folder - Esri Community
Is there a way of setting this within the AGS application?
This has been confirmed as a bug in ArcGIS Server. Esri have updated the following bug to indicate this is still an issue at 11.1 and that it applies to WebGIS DR Backups as well as Image Server issues: BUG-000122129 for ArcGIS Image Server
Until this issue is resolved, the workaround is to edit the AGS Service Account user's temp directories as in this workaround: https://support.esri.com/en/Technical-Article/000018777
There is also an enhancement request to make this temp drive update capability avaialable for WebGISDR:
ENH-000155317 Provide a configurable parameter as an ArcGIS Server property to control the temp location used by the Export Site operation
This also happens running the backup utility in AGS 11.3 located here. tools\admin\backup.py The service account folder will fill up and crash the backup leaving the backed-up files in the temp folder.