I thought this would be worth writing up, in case it saves anybody else some pain.
During planned maintenance at a site yesterday morning, I noticed that the TMS was very sluggish, and would occasionally say "Not responding" on the window title bar. I saw that it had not been updated in a long time (the splash screen had a 2022 copyright date), and so decided to see if rebooting the computer and updating the TMS app would fix it. That was when the fun started. The installer stalled here:
image.png
After 20 minutes I called GDC, and was told that there is a known issue with older versions of the TMS app, whereby it creates multiple temporary files in C:\Users\Administrator\AppData\Local\Temp , but does not delete them when it's done with them. More recent versions fix this bug, but the installer deletes the accumulated temporary files before actually installing the app. I was advised to be patient and wait.
Two hours later I was running out of time on site, and needed to take action. So I force quitted the installer, and took a look in that folder...
image.png
It wasn't done counting when I took this screenshot - the grand total was 20.8 million junk files, totaling 210.3 gigabytes!
At this point I turned to ChatGPT for advice (sorry!). After it asked me for details of the computer, operating system, and storage, it estimated that Windows File Explorer (and, most likely, the GDC installer) would take two to three weeks to delete them all. It suggested a workaround, involving the robocopy command line utility that is built into Windows. It told me to open a command line shell with administrator privileges and enter the following:
This has the effect of "mirroring" an empty folder onto the folder containing the junk files, obliterating the junk files in the process.
On this TMS, the robocopy process took 14 hours and 17 minutes to complete.
Here is the gotcha: check for the presence of millions of junk files before launching the GDC update installer, because the first thing the installer does is to delete the pre-existing version of the TMS. If it then tries to delete millions of junk files after that, you're buggered, because the TMS is unusable until you've gotten rid of them. Although I didn't do it this way (because at the time, I didn't know to), I would guess that if you start the robocopy deletion process as the first step, you can continue to use the old version of the TMS software until the junk file deletion is complete.
After robocopy got done, I was able to install the new version of the TMS app without any problem, and it's now running happily.
During planned maintenance at a site yesterday morning, I noticed that the TMS was very sluggish, and would occasionally say "Not responding" on the window title bar. I saw that it had not been updated in a long time (the splash screen had a 2022 copyright date), and so decided to see if rebooting the computer and updating the TMS app would fix it. That was when the fun started. The installer stalled here:
image.png
After 20 minutes I called GDC, and was told that there is a known issue with older versions of the TMS app, whereby it creates multiple temporary files in C:\Users\Administrator\AppData\Local\Temp , but does not delete them when it's done with them. More recent versions fix this bug, but the installer deletes the accumulated temporary files before actually installing the app. I was advised to be patient and wait.
Two hours later I was running out of time on site, and needed to take action. So I force quitted the installer, and took a look in that folder...
image.png
It wasn't done counting when I took this screenshot - the grand total was 20.8 million junk files, totaling 210.3 gigabytes!
At this point I turned to ChatGPT for advice (sorry!). After it asked me for details of the computer, operating system, and storage, it estimated that Windows File Explorer (and, most likely, the GDC installer) would take two to three weeks to delete them all. It suggested a workaround, involving the robocopy command line utility that is built into Windows. It told me to open a command line shell with administrator privileges and enter the following:
Code:
mkdir C:\Empty robocopy C:\Empty C:\Users\Administrator\AppData\Local\Temp /MIR /R:0 /W:0 /NFL /NDL /NJH /NJS /NP
On this TMS, the robocopy process took 14 hours and 17 minutes to complete.
Here is the gotcha: check for the presence of millions of junk files before launching the GDC update installer, because the first thing the installer does is to delete the pre-existing version of the TMS. If it then tries to delete millions of junk files after that, you're buggered, because the TMS is unusable until you've gotten rid of them. Although I didn't do it this way (because at the time, I didn't know to), I would guess that if you start the robocopy deletion process as the first step, you can continue to use the old version of the TMS software until the junk file deletion is complete.
After robocopy got done, I was able to install the new version of the TMS app without any problem, and it's now running happily.
Comment