User Profile Sync Service Stuck at Starting

Unable to start the user profile synchronization service, getting the status as starting. 
Hence unable to manage the User Profile Service Application. 



Cause
======

Below are the ULS and Event errors:



ULS Errors
-----------
Exception occured while connecting to WCF endpoint: System.ServiceModel.ServiceActivationException: The requested service, 'http://rc-sp-app1:32843/578b171d0ba9428a8406f3d9520d6cce/ProfilePropertyService.svc' could not be activated. See the server's diagnostic trace logs for more information. Server stack trace:     
 at System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(HttpWebRequest request, HttpWebResponse response, HttpChannelFactory factory, WebException responseException, ChannelBinding channelBinding)    
 at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)    
 at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)    
 at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.Request(Message message, TimeSpan timeout)    
 at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)    
 at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)    
 at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)    
 at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)    Exception rethrown
 at [0]:     
 at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)    
 at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)    
 at Microsoft.Office.Server.UserProfiles.IProfilePropertyService.GetProfileProperties()    
 at Microsoft.Office.Server.UserProfiles.ProfilePropertyServiceClient.<>c__DisplayClass1.<GetProfileProperties>b__0(IProfilePropertyService channel)    
 at Microsoft.Office.Server.UserProfiles.MossClientBase`1.ExecuteOnChannel(String operationName, CodeBlock codeBlock)


UserProfileApplicationProxy.InitializePropertyCache: Microsoft.Office.Server.UserProfiles.UserProfileException: System.ServiceModel.ServiceActivationException    
 at Microsoft.Office.Server.UserProfiles.MossClientBase`1.ExecuteOnChannel(String operationName, CodeBlock codeBlock)    
 at Microsoft.Office.Server.UserProfiles.ProfilePropertyServiceClient.ExecuteOnChannel(String operationName, CodeBlock codeBlock)    
 at Microsoft.Office.Server.UserProfiles.ProfilePropertyServiceClient.GetProfileProperties()    
 at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.RefreshProperties(Guid applicationID)    
 at Microsoft.Office.Server.Utilities.SPAsyncCache`2.GetValueNow(K key)    
 at Microsoft.Office.Server.Utilities.SPAsyncCache`2.GetValue(K key, Boolean asynchronous)    
 at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.InitializePropertyCache()


Failure retrieving application ID for User Profile Application Proxy 'User Profile Service Application 2': System.NullReferenceException: Object reference not set to an instance of an object.    
 at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.get_ApplicationProperties()    
 at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.get_AppID()


Event Error:
-------------
Log Name: Application
Source:        System.ServiceModel 3.0.0.0
Date:          1/19/2012 11:31:01 AM
Event ID:      3
Task Category: WebHost
Level:         Error
Keywords:      Classic
User:          RC\spadm
Computer:      rc-sp-app1.rc.com
Description:
WebHost failed to process a request.
 Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/33711845
 Exception: System.ServiceModel.ServiceActivationException: The service '/578b171d0ba9428a8406f3d9520d6cce/ProfilePropertyService.svc' cannot be activated due to an exception during compilation.  The exception message is: The 'CustomBinding'.'http://tempuri.org/' binding for the 'IProfilePropertyService'.'http://tempuri.org/' contract is configured with an authentication mode that requires transport level integrity and confidentiality. However the transport cannot provide integrity and confidentiality.. ---> System.InvalidOperationException: The 'CustomBinding'.'http://tempuri.org/' binding for the 'IProfilePropertyService'.'http://tempuri.org/' contract is configured with an authentication mode that requires transport level integrity and confidentiality. However the transport cannot provide integrity and confidentiality.
   at System.ServiceModel.Dispatcher.SecurityValidationBehavior.SoapOverSecureTransportRequirementsRule.ValidateSecurityBinding(SecurityBindingElement securityBindingElement, Binding binding, ContractDescription contract)
   at System.ServiceModel.Dispatcher.SecurityValidationBehavior.ValidateSecurityBinding(SecurityBindingElement sbe, Binding binding, ContractDescription contract)
   at System.ServiceModel.Dispatcher.SecurityValidationBehavior.System.ServiceModel.Description.IServiceBehavior.Validate(ServiceDescription description, ServiceHostBase serviceHostBase)
   at System.ServiceModel.Description.DispatcherBuilder.ValidateDescription(ServiceDescription description, ServiceHostBase serviceHost)
   at System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(ServiceDescription desc


Resolution
===========
# Installed the June Cumulative update for SharePoint 2010 and completed the configuration wizard successfully.

# Compared the web.config file of  SharePoint web services website >> GUID of UPA and found there are lot of differences.

# Replaced the web.config file from my test server (Location C:\Program Files\Microsoft Office Servers\14.0\WebServices\Profile) on the problematic server.

# Checked the User profile sync service account permission and added the account Pre-Windows 2000 Compatible Access” and “Windows Authorization Access” groups in Active directory.

# Ran IISRESET /noforce and we found that the User Profile Sync Service was started.

Comments

Popular posts from this blog

New-OfficeWebAppsFarm: Office Web Apps was unable to find the specified certificate

SharePoint 2013 - 'Sorry, Apps are turned off' error

Unable to see all fields for Document Set properties in SharePoint site