question

RahulSiripragada-9531 avatar image
0 Votes"
RahulSiripragada-9531 asked SevignyJosee-5486 published

SP 2019 Setup -- Issue with distributed cache service setup

We are setting up an SP 2019 Farm in AWS with 6 server Farm (2 Web, 2 App, 2 Search servers in two AZs, one set in each AZ)

while setting up distributed cache service on web server 2, the service is not shown after this service is setup using power shell , App fabric service is also not seen in the services after running the power shell , tried multiple ways to resolve this issue (including reinstalling App Fabric service) and could not resolve this issue, Checked ULS and Event viewer logs, no related errors have been logged.

distributed cache service is running as expected on Web server1 with out any issue, only having issue on Web server 2.


Appreciate your inputs if any one has faced similar issue.

Can we try uninstalling and reinstalling SP on this Web Server?

office-sharepoint-server-administration
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AllenXu-MSFT avatar image
0 Votes"
AllenXu-MSFT answered AllenXu-MSFT converted comment to answer

Hi @RahulSiripragada-9531 ,

To narrow down this issue, I have something to confirm with you. Did you get any error mesages after running Add-SPDistributedCacheServiceInstance? You have to run below PowerShell commands after adding SharePoint Distributed Cache Service Instance to start the service.

 $instanceName ="SPDistributedCacheService Name=AppFabricCachingService"
 $serviceInstance = Get-SPServiceInstance | ? {($_.service.tostring()) -eq $instanceName -and ($_.server.name) -eq $env:computername}
 $serviceInstance.Provision()

Have a try to run below PowerShell commands, will the web server 2 be displayed in the return values? Or will any error message appear?

 Use-CacheCluster   
 Get-CacheHost

The Distributed Cache depends on Windows Server AppFabric as a prerequisite. Do you mean that AppFabric Caching Service is missing in the Services?
119709-image.png

Last but not least, reboot your server may give a favor to you. You can share here your SharePoint Server build number or install the latest CU if the issue still persists.


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


image.png (33.9 KiB)
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.


Hi @AllenXu-MSFT , thank you for your response, please find my answers below:

Did you get any error messages after running Add-SPDistributedCacheServiceInstance while we were setting up this initially.

No error after running this command, we tried in ULS logs and and event could not find any related error.

When the below commands are executed on web server 02, below is the error message:

  Use-CacheCluster   
  Get-CacheHost

Unable to run these commands as there is an error while reinstalling app fabric service( as a part of trouble shooting this issue), below is the error facing while setting up app fabric service :
AppFabric installation failed because installer MSI returned with error code : 1603
Yes the app fabric service is missing and unable to setup the same because of the above error.

0 Votes 0 ·
AllenXu-MSFT avatar image AllenXu-MSFT RahulSiripragada-9531 ·

@RahulSiripragada-9531,

We have to troubleshoot AppFabric installation issue firstly as AppFabric is a prerequisite. What's your Windows Server version? Have a try to uninsatll existing AppFabric installation from the control panel and re-run the SharePoint prerequisites installer. If the error still exists, try below:

  • Go to the PC Properties.
    120027-image.png

  • then Advanced System Properties and Environment Variables.
    ![120111-image.png

  • Then check the System Variable PSModulePath. Which should point to PowerShell which defaults to:

    C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files\AppFabric 1.1 for Windows Server\PowershellModule
    So change the existing value to the above if it is incorrect.

0 Votes 0 ·
image.png (41.3 KiB)
image.png (18.2 KiB)

@RahulSiripragada-9531

Is there any progress on this thread?

0 Votes 0 ·
RahulSiripragada-9531 avatar image
0 Votes"
RahulSiripragada-9531 answered SevignyJosee-5486 published

OS used in windows server 2019 R2, we have tried reinstalling APp fabric and could not resolve this issue, this issue has been reported to Microsoft Premier support and concluded that this issue is because the necessary ports are not opened. Working with the network team to open the ports, will update once the ports are opened and reconfiguration is successful.
@AllenXu-MSFT thank you very much for your inputs, appreciate your inputs.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@RahulSiripragada-9531,

Thanks for sharing the solution here. I have converted your comment to answer and you can accept above answer via "Accept Answer" button now. It will be beneficial to others who meet similar issues to yours. Much appreciated for your contribution to this forum!

0 Votes 0 ·

Which ports were those?

0 Votes 0 ·