Common AppFabric 1.1 Installation Errors with and without SharePoint

There can be multiple reasons for installation errors when installing AppFabric either with SharePoint or as a stand-alone application. I’ve found that there are a few generic errors that can have multiple causes with different resolutions. Below you’ll find a table listing the generic error message and any additional error text that might also be included along with several possible workarounds. Once the workaround is in place you should be able to run the installation again successfully.

To find out more information around the installation error first check the installation logs.
The Setup log is found at C:\ProgramData\Microsoft\AppFabric.
The installation logs are found in c:\users\<logon>\appdata\local\temp.
The name of the AppFabric installation log file will be of the form AppServerSetup(yyyy-MM-ddH-mm-ss).log.
There may also be logs named AppServerSetup1_1 or AppServerSet1_1_CustomActions.
Other logs may be located at C:\ProgramData\Microsoft\Windows\WER\ReportArchive.

AppFabric Stand-Alone Installation

Error Message

The process of installing the prerequisite failed 

Resolutions

Check that the Application Server Role has been added via Add Roles Wizard

Reinstall MS CCR & DSS Runtime

Check prerequisites are installed. See https://www.microsoft.com/en-us/download/details.aspx?id=27115 for details.

 

Error Message

MSI returned with Error Code: 1603

If you look in the CustomActions log you’ll also see:

Error:  ERROR: Invalid syntax. Default option is not allowed more than '2' time(s).

Error:  Type "SETX /?" for usage.

Resolutions

Multiple attempts to install AppFabric may have corrupted the PSModulePath environment variable. Check that PSModulePath in the Environment Variables looks like:

  C:\Windows\system32\WindowsPowerShell\v1.0\Modules\;c:\Program Files\AppFabric 1.1 for Windows Server\PowershellModules

This same error occurs with SharePoint installations so for more information please see https://blogs.technet.com/b/praveenh/archive/2013/02/22/sharepoint-2013-prerequisites-fails-with-msi-installer-error-code-1603-while-installing-appfabric-1-1.aspx

 

Error Message

MSI returned with Error Code: 1603 along with “Cannot create a file when that file already exists”

Resolutions

The setup needs to add a scheduled task for the customer experience program, but the schtasks command line fails if the task already exists. Deleted the task "Consolidator" in "%SYSTEM32%\Tasks\AppFabric\Customer Experience Improvement Program" 

 

Error Message

MSI returned with Error Code: 1603 along with “ERROR: The network address is invalid”

Resolutions

Task Scheduler Service is disabled on the Server. This same error occurs with SharePoint installations so for more information please see https://www.sathishtk.com/blog/post/2012/08/17/SharePoint-2013-installation-error-Windows-AppFabric-11-1603-error.aspx

 

Error Message

MSI returned with Error Code: 1603 and “0x80040154 Class Not Registered”

Resolutions

Install .NET 3.5

 

Error Message

MSI returned with error code: 1603 along with the error “System error 1379 has occurred. Error: The specified local group already exists”.

Resolutions

The groups AS_Observers and AS_Administrators are left over from a previous failed installation. Delete the groups and reinstall. Please see the following for more information: https://msdn.microsoft.com/en-us/library/ff637696(v=azure.10).aspx

 

Error Message

Is the registry key HKLM\SOFTWARE\Microsoft\AppFabric\V1.0\Gac missing?

Resolutions

Run the installation manually from an elevated PowerShell command line:

c:\WindowsServerAppFabricSetup_x64.exe /i CacheClient,CachingService,CacheAdmin /gac

 

Please note that Sharepoint has its own particular way to
install AppFabric and thus it has its own set of installation issues. The chart
below is specific to Sharepoint so it is not recommended to use these resolutions
for a standalone AppFabric installation.

 

AppFabric Sharepoint Installation

Error Message

“The process of installing the prerequisite failed” along with “Value cannot be null”

Resolutions

The User Temp Variables are missing. To recreate these  variables:  

1) Go to System Properties, Change Settings.  

2) Select Advanced Tab and Click Environment Variables button.  

3) Click New under user variables and create two user variables as follows: 

     a)  Variable Name: TEMP                Variable Value: %USERPROFILE%\AppData\Local\Temp  

     b) Variable Name:  TMP               Variable Value:  %USERPROFILE%\AppData\Local\Temp 

 

Error Message

“The process of installing the prerequisite failed” along with “Setup is unable to  proceed due to the following error(s): Windows Server Appfabric is not correctly  configured. You should uninstall Winidows Server Appfabric and reinstall it using  the Sharepoint Products Preparation Too.”

Resolutions

Run the Sharepoint 2013 Prerequistie Installer:  

prerequisiteinstaller.exe /AppFabric:prerequisiteinstallerfiles\AppFabric1.1-RTM-KB2671763-x65-ENU.exe

For more information please see https://www.spjeff.com/2012/07/19/fixed-sharepoint-2013-setup-error-appfabric-is-not-correctly-configured/

 

Error Message

MSI returned with Error Code: 1603

Resolutions

The path to the PowerShell executable that is needed for the AppFabric installation is incorrect. For more information please see https://blogs.technet.com/b/praveenh/archive/2013/02/22/sharepoint-2013-prerequisites-fails-with-msi-installer-error-code-1603-while-installing-appfabric-1-1.aspx

 

Error Message

MSI returned with Error Code: 1603 along with “ERROR: The network address is invalid”

Resolutions

Task Scheduler Service is disabled on the Server.

For more information please see https://www.sathishtk.com/blog/post/2012/08/17/SharePoint-2013-installation-error-Windows-AppFabric-11-1603-error.aspx

 

Error Message

Error 1722. There is a problem with this Windows Installer  package. A program run as part of the setup did not finish as expected.  Contact your support personnel or package vendor.   

Action Env_PSModulePath_powershell_i, location: c:\Program  Files\AppFabric 1.1 for Windows  Server\Microsoft.ApplicationServer.InstallHelper.exe, command: powershell.exe  "-command \"$str = [System.Environment]::GetEnvironmentVariable(  \\\"PSModulePath\\\ ",  [System.EnvironmentVariableTarget]::Machine); $str =  $str+\\\";c:\Program Files\AppFabric 1.1 for Windows  Server\PowershellModules\\\"; c:\Windows\system32\setx.exe /M  PSModulePath \\\"$str\\\"\ "" "C:\Users\Administrator\AppData\Local\Temp\AppServerSetup1_1_CustomActions(2014-5-15  11-08-45).log"

Resolutions

The PSModulePath environment variable is corrupted. There is a quotation mark at the end. Delete the ending quotation mark and re-run the setup. For more information please see https://blogs.msdn.com/b/distributedservices/archive/2014/11/01/appfabric-1-1-error-in-sharepoint-server-2013-installation.aspx

 

Error Message

Error 1722. There is a problem with this Windows Installer package. A  program run as part of the setup did not finish as expected. Contact your  support personnel or package vendor.  Action SCW_Localize_i, location:  c:\Program Files\AppFabric 1.1 for Windows Server\Microsoft.ApplicationServer.InstallHelper.exe,  command: "powershell.exe" "-command \"$content =  Get-Content \\\"c:\Program Files\AppFabric 1.1 for Windows  Server\\AppFabricServer.xml\\\"; $content = ForEach-Object -InputObject  $content { $_ -replace \\\"INSTALLPATH\\\", \\\"c:\Program  Files\AppFabric 1.1 for Windows Server\\\\\\\" }; Set-Content -value  $content -path \\\"c:\Program Files\AppFabric 1.1 for Windows  Server\\AppFabricServer.xml\\\" \""  "d:\temp\AppServerSetup1_1_CustomActions(2012-03-22  16-22-57).log" 

Resolutions

If you look in the CustomActions log you’ll  also see this error: “EXEPATH=powershell.exe PARAMS=-command "$content =  Get-Content \"C:\Program Files\AppFabric 1.1 for Windows  Server\\AppFabricServer.xml\"; $content = ForEach-Object -InputObject  $content { $_ -replace \"INSTALLPATH\", \"C:\Program  Files\AppFabric 1.1 for Windows Server\\\" }; Set-Content -value  $content -path \"C:\Program Files\AppFabric 1.1 for Windows  Server\\AppFabricServer.xml\" " LOGFILE=C:\Users\tstspadmin\AppData\Local\Temp\AppServerSetup1_1_CustomActions(2014-12-1015-21-03).log

System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified” 

The problem is that the powershell.exe is not in the path so it couldn't be found during installation. Add %windir%\system32\WindowsPowerShell\v1.0\ to the path and reinstall.

 

Error Message

Error 1706. Try the installation again using a valid copy of the installation package 'appfabric-1.1-for-windows-server-64.msi'.

Resolutions

Missing the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\AppFabric\V1.0\Gac. SharePoint has its own way to install AppFabric components. You have to run the installation with specific switches as in  

"WindowsServerAppFabricSetup_x64.exe /i  CacheClient,CachingService,CacheAdmin /gac"

 

Error Message

Assembly Install: Failing with hr=80070005 at RemoveDirectoryAndChildren, line 398". 

Resolutions

MSI log reported "Out of disk space" right before the update rollback started. To resolve free up the needed disk space.

 

Error Message

Failing with Hosting exceptions

Resolutions

Hosting is not needed with Sharepoint. Reinstall without hosting.