Unable to upgrade or Install. Failing during Configuration Process: Failed to install product. The file exists.
search cancel

Unable to upgrade or Install. Failing during Configuration Process: Failed to install product. The file exists.

book

Article ID: 184859

calendar_today

Updated On:

Products

IT Management Suite

Issue/Introduction

You are trying to upgrade to a more recent version of ITMS.

Every time that SIM (Symantec Installation Manager) reaches UnixAgent.config, it fails with the following message:

Failed to install product.
The file exists.

and then:

Failed to install the product from the file: D:\Program Files\Altiris\UNIX Agent\Config\UnixAgent.config

The file exists.
  

Then you tried as well running a manual repair on the Unix MSI but didn't make a difference.

Error 1:

The file exists.

   [System.IO.IOException @ mscorlib]
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.Path.InternalGetTempFileName(Boolean checkHost)
   at Altiris.Agent.Unix.PackageGenerators.MacInstallerGenerator.CreateMacInstallationArchive(String sDefaultInstallXml)
   at Altiris.Agent.Unix.UnixAltirisAgentInstallation.OnInstallProduct(XmlNode installationNode)
   at Altiris.NS.StandardItems.Product.ProductInstallation.InstallProduct()

Exception logged from: 
   at Altiris.NS.StandardItems.Product.ProductInstallation.InstallProduct()
   at Altiris.NS.Installation.ProductConfigurationWorker.ConfigureProductInternal(String, Boolean, Altiris.NS.Serialization.SerializationMode)
   at Altiris.NS.Installation.ProductConfigurationWorker.ConfigureProduct()
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, Object)
   at System.Threading.ThreadHelper.ThreadStart()

-----------------------------------------------------------------------------------------------------
Process: AeXSvc (15680), Thread ID: 115, Module: Altiris.NS.StandardItems.dll
Priority: 1, Source: Altiris.NS.StandardItems.Product.ProductInstallation.InstallProduct
 

 

Error 2:

Failed to install the product from the file: D:\Program Files\Altiris\UNIX Agent\Config\UnixAgent.config

The file exists.
   [System.IO.IOException @ mscorlib]
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.Path.InternalGetTempFileName(Boolean checkHost)
   at
Altiris.Agent.Unix.PackageGenerators.MacInstallerGenerator.CreateMacInstalla
tionArchive(String sDefaultInstallXml)
   at
Altiris.Agent.Unix.UnixAltirisAgentInstallation.OnInstallProduct(XmlNode
installationNode)
   at Altiris.NS.StandardItems.Product.ProductInstallation.InstallProduct()
   at Altiris.NS.Installation.ProductConfigurationWorker.ConfigureProductInternal(String configFile, Boolean ownsProgressContext, SerializationMode serializationMode)

Exception logged from:
   at Altiris.NS.Installation.ProductConfigurationWorker.ConfigureProductInternal(String, Boolean, Altiris.NS.Serialization.SerializationMode)
   at Altiris.NS.Installation.ProductConfigurationWorker.ConfigureProduct()
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, Object)
   at System.Threading.ThreadHelper.ThreadStart()

----------------------------------------------------------------------------
Process: AeXSvc (15680), Thread ID: 115, Module: Altiris.NS.dll
Priority: 1, Source:
Altiris.NS.Installation.ProductConfigurationWorker.ConfigureProductInternal
 

 

Environment

ITMS 8.x

Cause

Known issue caused by Microsoft limitations.

System.IO.IOException: “The file exists” occurs during call of System.IO.Path.GetTempFileName().
According to Microsoft documentation: "The GetTempFileName method will raise an IOException if it is used to create more than 65535 files without deleting previous temporary files."

Resolution

Try the following:

  1. Check if the issue is that there are too many files in the Windows Temp directory (C:\Windows\Temp).
  2. If Windows/Temp is not that full, check C:\Users\<AccountUsedDuringInstallation>\AppData\Local\Temp
  3. Clean up the affecting Temp directory and try running a reconfigure of ITMS again.