Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
How to change Proget's Temporary Upload Path for S3 uploads
-
Heya,
So i am using the s3 backend for all of my feeds. Recently packages stopped uploading to the server to find that the disk for the server was full. (it was IIS logs, not related to proget).
It makes sense that when a package is uploaded to Proget its first stored on the local disk before synced to the s3 bucket. However, the concern is that this temp storage area is on the OS drive. I'd like to move this to a data drive.
I looked in the Administration -> Advanced settings to see if there was an obvious setting for this but does not appear so.
I am currently using Version 6.0.15 (Build 2)
Thanks
Kenneth Garza
-
Hi @kenneth-garza_2882 ,
ProGet uses temp files for a number of things, including buffering uploads like this.
This shouldn't cause any space problems, as ProGet will delete these files upon successful use, and Windows can automatically cleanup files that failed to upload. Relatively speaking it's a small amount of temporary space compared to everything else in there.
If you're worried about using a system drive for temporary files, you can change the App Pool User's Profile path, or just the temporary path:
https://www.howtogeek.com/285710/how-to-move-windows-temporary-folders-to-another-drive/Cheers,
Alana
-
@atripp Thank you for this information. To clarify, you're suggesting that the temp folder for buffering uploads is actually the proget's iis service account temp folder?
If so that makes things simple to move, as you suggested.
Thanks
Kenneth Garza
-
Hi @kenneth-garza_2882 ,
That should be the case, under the hood, ProGet is using this API:
https://learn.microsoft.com/en-us/windows/win32/fileio/creating-and-using-a-temporary-fileAccording to the docs for
GetTempPath
, the first path found will be used:- The path specified by the TMP environment variable.
- The path specified by the TEMP environment variable.
- The path specified by the USERPROFILE environment variable.
- The Windows directory.
So it seems there's many way to specify this.