User Profile Service Application

Hi,

I have been struggling with the User Profile Service Application under Central Administrarion -> Manage Service Application. The moment I click the link "User Profile Service Application" I got an Unepxpected error has occurred message. I then modified the web.config file to show the exact error message but am always getting the usual 

Server Error in '/' Application

February 25th, 2011 5:05am

Hi,

I think the user profile service is stopped, check services in administrative tools if the user profile service is running.

 

regards

Free Windows Admin Tool Kit Click here and download it now
February 25th, 2011 1:35pm

The User profile service is running, checked under the services console.

However I thought I'll restart the service but I got a message saying "Error 1061 : The service cannot accept control messages at this time".

February 25th, 2011 1:49pm

Try restarting the server. 
Free Windows Admin Tool Kit Click here and download it now
February 25th, 2011 1:58pm

Hi Ernie,

The service is dependent on "Application Information" service. The first time I restart the service I get the message 

"Error 1051 : A stop control has been sent to a service that other running services are dependent on"

After a while if I try to restart the User Profile Service once again I get the same message I used to get earlier.


February 25th, 2011 2:53pm

Hi,

I am assuming what you’ve restarted is the User Profile Service on Services.msc. Have you tried restart the “User Profile Service” and “User Profile Synchronization Service” by going to Central Administration -> Manage Services on Server? If any of these services get stuck on Starting or pop-up an error, it would be worth having a look at this troubleshooting blog from Spence:
http://www.harbar.net/articles/sp2010ups2.aspx

If recreating a User Profile Service isn’t just too much trouble, I suggest you create a new User Profile Service Application followed another walk through from Spence in case any configuration steps was missing or incorrectly performed.
http://www.harbar.net/articles/sp2010ups.aspx

Thanks & Regards.

Free Windows Admin Tool Kit Click here and download it now
March 2nd, 2011 10:51am

Thanks Lily, will try this today and let you know my results.
March 3rd, 2011 7:59am

I thought I'll start clean by deleting and recreating the UPA.Hence used the windows power shell mentioned at http://www.harbar.net/articles/sp2010ups2.aspx

$syncDBType = "Microsoft.Office.Server.Administration.SynchronizationDatabase" $upaSAType = "User Profile Service Application" $syncDB = Get-SPDatabase | where-object {$_.Type -eq $syncDBType} $upa = Get-SPServiceApplication | where-object {$_.TypeName -eq $upaSAType} $syncDB.Unprovision() $syncDB.Status = "Offline" $upa.ResetSynchronizationMachine() $upa.ResetSynchronizationDatabase()  $syncDB.Provision()  restart-service SPTimerV4
When I call the Provision method am gettting the error "CREATE DATABASE permission denied in the database 'master'. Though I have logged with the sys admin credentails of SQL server..
I thought of recreating the "User Profile Service" application but for that I need the User Profile Synchronisation Service which has got stuck in "Starting" state.
Free Windows Admin Tool Kit Click here and download it now
March 4th, 2011 4:47am

The access denied error is gone now, I opened the management shell under the required credential.

I thought the Power shell script is to reset the state of the User Profile Synch. Service as its stuck on Starting. But even after executing these scripts successfully the state still remains as "Starting" in the "Manage services on Server" page.

March 4th, 2011 5:06am

I had the same problem User Profile sync was stuck up in starting mode... This is what i did.

1. User Powershell cmdlet Get-SPServiceInstance to get the GUID of User Profile Sync.

2. Stopped the Service using the cmdlet Stop-SPServiceInstance <GUID>

3. Stopped Sharepoint Timer Service. force started forefront Services(there will be two with disabled mode. need to make it start and put it to automatic mode.)

4. Used the Cmdlet Get-SPServiceApplicationPool to check if app pool is existing. else u should create by using the commands: New-SPServiceApplicationPool, then type UserProfileServiceApplication and then give the user account something like ur domain\adminid. this should be the account u used to install sharepoint 2010.  Now after doing this, need to confirm if it is created properly by the first Get-SPServiceApplicationPool cmdlet.

5. Major step that I thought made magic was this: 

from the command prompt, run: cliconfg.exe

Enable “named pipes” and “TCP/IP” (if not already there)

After all this, try starting the user profile sync with crossed fingers...for sure it will work as it did so for me.

Free Windows Admin Tool Kit Click here and download it now
March 4th, 2011 5:46am

Hi Gai3kannan,

I followed your steps, when you try to start the User Profile Synch. Service it asks for Service Account Name and Password. By default am not sure  I get NT Authority\Network Services and it asks for a password too. I dont want this account as this is not the administrator account. Any way to change this account or you know from where its picking the account name from?

March 5th, 2011 4:26pm

Hi,

Who was the one to do installation of sharepoint 2010 in the server? Have read that if you specify different account names for User Profile Sync while installing, we will get issues starting up. May be the account that is coming in by default is the account that was mentioned during installation..

 

Free Windows Admin Tool Kit Click here and download it now
March 10th, 2011 5:26am

Yeah you are correct, it was the account that was used during installtion.

Is there any way to change it?

March 10th, 2011 7:43am

Hi,

you can configure "managed accounts" via "CA > Security > Configure managed accounts" and then assign this account to the appropriate service via "CA > Security > Configure service accounts" I would suggest you to create all the service accounts you use as "managed account" - It will make the management of your farm a bit easier.

FYI: Getting the "error in / application" message when trying to open the UPS Service usually isn't caused by a not-running UPS Sync Service. Disabling the Custom Errors is not the best way to get behind the problems cause (especially in a production environment!). If having troubles with SharePoint always have a look at the SharePoint Logs (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS\) and/or check the server's application- & systemlogs. You'll get far more better information about the problem there and therefore can fix troubles faster/easier.

 

Concerning the UPS Sync Service Problem:
It doesn't matter which account you use for UPS Sync Service as long this account has the appropriate permissions. I'd suggest you to use the Farm-Service Account because it's the most convenient way! Further check the following:

  • Does the Account has the "Log on locally"-Permission on the server where the service is running? (usually solved by adding the account to the local admin group)
  • Does the Account misses any permission on any database? (should be no problem when using the Farm-Service-Account)
  • Does the Secure Store Service is running and configured properly?
Please do not start/stop/edit the FIM-Services using services.msc - always use the SP-Mechanism to do so (PS or CA).
BR,J

Free Windows Admin Tool Kit Click here and download it now
March 10th, 2011 1:40pm

Go to Central Administration --> Security --> Configure Service accounts

You will be taken to Credential management. Select the first dropdown. in that select User Profile syncronisation.

Click on Register new managed account.

Specify the username and password(default administrator account). and click OK.

 

Visit for more detailed view:

http://gai3kannan.wordpress.com/2011/03/11/manage-service-accounts/

March 11th, 2011 4:58am

Restart the Sharepoint 2010 Timer Job.. This has been resolved my issue
Free Windows Admin Tool Kit Click here and download it now
July 27th, 2012 9:42am

first, restart the user profile service from central admin, then check web application service connection if not solved yet recreate the user profile service application and restart the timer job.
July 27th, 2012 11:52am

Hi,

All the issues get when you have to Run USER Profile Services  So Please Check the Below point which has to be consider first.

1 : Permission :-AD / FIM / Network Services (for 1004,1015 etc. Read and exc. in /14 folder)

2: Account :- User Profile Synchronization Service / create and Configure Accounts and Permissions

3: SharePoint 2010 Version + Leatest Cumulative Updates (CU).

4: AD Permission Replicate Directory Changes Permission Must.

5 : My site Plan 

6: NetBios Name - for My site and FIM Server where install on Same as CA or Apps .

7 : check for FIM Status (The FIM Client is located at C:\Program Files\Microsoft Office Servers\14.0\Synchronization Service\UIShell\miisclient.exe)

8: http://www.harbar.net/articles/sp2010ups.aspx   : Please following This Harbar.net step by step.
http://technet.microsoft.com/en-us/library/cc263051.aspx

9: For Error Event ID 1001 1004 1015  :- http://support.microsoft.com/kb/2473430

------------------------Network Service account read access---------------------------------------------------
Grant the Network Service account read access to the %programfiles%\Microsoft Office Servers\14.0 folder

The Network Service account does not have rights to the %programfiles%\Microsoft Office Servers\14.0 folder.
RESOLUTION
Grant the Network Service account read access to the %programfiles%\Microsoft Office Servers\14.0 folder.
---------------------------------------------use  link--------------------------------------------------------------------
http://www.harbar.net/archive/2010/10/30/avoiding-the-default-schema-issue-when-creating-the-user-profile.aspx
http://technet.microsoft.com/en-us/library/hh296982(v=office.14).aspx
http://www.toddklindt.com/blog/Lists/Posts/Post.aspx?ID=300
http://blogs.technet.com/b/wbaer/archive/2009/12/11/common-microsoft-sharepoint-server-2010-installation-issues-and-resolutions.aspx
http://blogs.technet.com/b/steve_chen/archive/2010/09/20/user-profile-sync-sharepoint-2010.aspx
http://kowalski.ms/2010/07/20/sharepoint-server-2010-supplementing-user-profile-imports-using-bcs/
http://blog.falchionconsulting.com/index.php/2011/12/updating-sharepoint-2010-user-information/  ------------------
http://blogs.technet.com/b/steve_chen/archive/2010/10/13/troubleshooting-user-profile-sync-issues-on-sharepoint-2010.aspx
http://blogs.msdn.com/b/kaevans/archive/2012/06/25/top-recommendations-for-managing-the-my-site-cleanup-timer-job.aspx
http://blogs.msdn.com/b/spsocial/archive/2010/05/04/conceptual-view-of-how-user-profile-synchronization-works-in-sharepoint-2010.aspx
http://technet.microsoft.com/en-us/library/ff182925(v=office.14).aspx
---------------------------------------------------------------------------------------------------------------
------- SharePoint profile synch stopped-database-connection-lost

Disabled "MySite Cleanup job"

Please check one small OU Add and Run Test All The Process get success. 

then Edit Connection Add next OU and then run incremental , one by one add all the OU

 Enable "MySite Cleanup job"

-----------------------
http://blogs.msdn.com/b/russmax/archive/2010/03/20/sharepoint-2010-provisioning-user-profile-synchronization.aspx
http://blogs.msdn.com/b/russmax/archive/2010/03/20/sharepoint-2010-provisioning-user-profile-synchronization.aspx

http://technet.microsoft.com/en-us/library/gg750257(v=office.14).aspx
http://sharepointgeorge.com/2010/configuring-the-user-profile-service-in-sharepoint-2010/
http://blogs.msdn.com/b/spses/archive/2010/12/02/guide-to-user-profile-service-application-upa-part-2-setting-up-the-user-profile-service-application.aspx
http://blogs.msdn.com/b/spses/archive/2010/11/28/guide-to-user-profile-service-application.aspx

---------------------------------------------------------------------------------------------------------------
------------------- Event Id 6801
http://support.microsoft.com/kb/2520394?wa=wsignin1.0
http://support.microsoft.com/kb/2520394
------------------ For NetBios----------
http://iedaddy.com/2012/01/wrong-domain-name-in-accountname-after-user-profile-sync/

To check the status of that setting, use the PowerShell below, substituting the GUID of your UPS for mine:

(Get-SPServiceApplication 1ceb9eca-78b0-47c2-ab2b-b041e0d3902a).NetBIOSDomainNamesEnabled
You'll get back either True or False.
http://tremblayse.wordpress.com/2011/10/17/ups-and-netbios-domain-name-different-then-fqdn-domain-name/
-----------------------------------------------------------------
--For -- configuring-the-user-profile-service-in-sharepoint-2010-------------------------

http://www.c-sharpcorner.com/uploadfile/anavijai/how-to-schedule-user-profile-incremental-synchronization-in-sharepoint-2010-using-power-shell/
http://www.harbar.net/articles/sp2010ups.aspx

http://www.windowsclever.com/sharepoint/how-to-setup-user-profile-service-sharepoint-2010.html
http://sharepointgeorge.com/2010/configuring-the-user-profile-service-in-sharepoint-2010/
http://technet.microsoft.com/en-us/library/ee721049(v=office.14).aspx#NetBIOSProc
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/398f3553-5de7-456b-b935-4e22cee26b2f/sharepoint-2010-communities-faq


Also  Consider The Plan For UPS , and My site first of the steps. IISREST, Server Reboot and data lost in My site will consider if when Upgrade... Thanks.

Free Windows Admin Tool Kit Click here and download it now
July 9th, 2013 6:54am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics