sharepoint 2013-FBA User get exception in login ==>Token Cache: Failed to add token from distributed cache for0#.f|membershipprovider|username

ahmed sharkaway 116 Reputation points
2020-12-19T02:35:46.433+00:00

In sharepoint 2013-FBA, the User get an exception in the login

Exception Dtails

Token Cache: Failed to add token from distributed cache for '0#.f|membershipprovider|username'.
Exception: 'Microsoft.SharePoint.DistributedCaching.SPDistributedCacheClusterDownException: Cache cluster is down,
restart the cache cluster and Retry --->Microsoft.ApplicationServer.Caching.DataCacheException: ErrorCode<ERRCA0017>:SubStatus<ES0006>:
There is a temporary failure. Please retry later. One or more specified cache servers are unavailable, which could be caused by busy network or servers.
For on-premises cache clusters,also verify the following conditions. Ensure that security permission has been granted for this client account,
and check that the AppFabric Caching Service is allowed through the firewall on all cache hosts. Also the MaxBufferSize on the server must be greater
than or equal to the serialized object size sent from the client.). Additional Information :
The client was trying to communicate with the server : net.tcp://server:22233
at Microsoft.ApplicationServer.Caching.DataCache.ThrowException(ResponseBody respBody, RequestBody reqBody)
at Microsoft.ApplicationServer.Caching.DataCache.InternalPut(String key, Object value, DataCacheItemVersion oldVersion,
TimeSpan timeout, DataCacheTag[] tags, String region, IMonitoringListener listener)
at Microsoft.ApplicationServer.Caching.DataCache.<>c__DisplayClass25.<Put>b__24()
at Microsoft.ApplicationServer.Caching.DataCache.Put(String key, Object value, TimeSpan timeout)
at Microsoft.SharePoint.DistributedCaching.SPDistributedCache.Put(String key, Object value) --- End of inner exception stack trace ---
at Microsoft.SharePoint.DistributedCaching.SPDistributedCache.Put(String key, Object value)
at Microsoft.SharePoint.IdentityModel.SPDistributedSecurityTokenCache.Put(String key, Object value)
at Microsoft.SharePoint.IdentityModel.SPTokenCache.AddCachedToken(String cachekey, SecurityToken value)'.

Microsoft 365 and Office SharePoint Server For business
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. trevorseward 11,711 Reputation points
    2020-12-19T19:03:57.717+00:00

    Looks like your distributed caching service isn't running on any server in the farm. It should run on the front end or dedicated servers.

    https://learn.microsoft.com/sharepoint/administration/manage-the-distributed-cache-service


  2. Elsie Lu_MSFT 9,801 Reputation points
    2020-12-21T02:29:15.067+00:00

    Hi @ahmed sharkaway ,

    As trevorseward mentioned, you could try to check the status of Distributed Cache Service on your servers.

    This is a default behavior in SharePoint as Distributed Cache Service is considered as a required component for some features. SharePoint will check the token when users access SharePoint and if the token is not found, the logs would be generated.

    If you do not want to use Distributed Cache Service, you can ignore the errors. However, I would recommend you to use distributed cache service.

    Reference:
    Distributed Cache - Token Cache issue


    If the 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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.