Domanda

I'm trying to update the size of Distribute cache but keep getting the below error:

"set-cachehostconfig : Object reference not set to an instance of an object. At line:1 char:1 + set-cachehostconfig -CacheSize 1228 -cacheport 22233 -hostname usa0300vm1160 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Set-AFCacheHostConfiguration] , NullReferenceException + FullyQualifiedErrorId : System.NullReferenceException,Microsoft.Applicat ionServer.Caching.Commands.SetAFCacheHostConfigurationCommand"**

Distributed cache is running on only one server(out of 3).

I even tried Update-SPDistributedCacheSize but get the same error.

È stato utile?

Soluzione

After lot of tries,I finally updated the Distributed Cache size.

I used the following commands multiple times in the same order: Give 2 minutes gap between Remove and Add commands

Stop-SPDistributedCacheServiceInstance -Graceful

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

Remove-SPDistributedCacheServiceInstance

Add-SPDistributedCacheServiceInstance 

Update-SPDistributedCacheSize 
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top