积极答复者
sharepoint2010 用户配置文件同步服务 显示正在启动? 如何启动这个服务啊?

问题
-
sharepoint2010 用户配置文件同步服务 显示正在启动?
启动了N天了,官方文章也查看N遍和N篇了,不知道怎么弄了啊,请各位知道的帮助下啊
1. 已加入本地管理员组
2.账户有权限操作数据库.
3.服务账户也配置了.
请问开启服务的时候是否需要操作AD的权限,
另:系统日志和Logs里面都查看了, 没有错误记录. 很多人说在timer job删除某个timer job,但是我去看了
没有哪个timer job在运行啊,把sptiemrv4这个服务停止了,依旧不行.
谢谢
Anything is Possible!
- 已编辑 Harvey Jiang 2012年5月14日 5:42
答案
-
你好 Harvey,
希望能够帮助你。
这里有篇和你遇到的问题相似的帖子:
http://social.technet.microsoft.com/Forums/en-US/sharepoint2010setup/thread/27591ac1-5c31-4d0c-a27d-09f3967819db
上面的问题是通过安装 December CU更新后删除ProfileSynchronizationSetupJob,然后重启应用程序服务端解决的。
谢谢,
韩- 已编辑 Lhan HanModerator 2012年5月15日 2:48
- 已标记为答案 Harvey Jiang 2012年5月15日 8:43
-
嗨, Han , 目前服务已启动, 真是曲折啊! 但是由于改动太多,目前还是不知道具体是哪一步骤设置. 待会附上详情.
1."用户配置文件同步服务" 这个服务我极少数一次性启动成功. 而每次出现的问题都可能不同.
2.对于ERR_CONFIG_DB这个错误见:http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010general/thread/26b1c33b-d726-4d49-8417-b64935a15bcd/
http://social.msdn.microsoft.com/Forums/zh-CN/sharepoint2010setup/thread/31480697-96be-4996-beff-0f28f255a24b
3. http://www.harbar.net/articles/sp2010ups.aspx
http://www.harbar.net/articles/sp2010ups2.aspx
这两篇很详细介绍了各种疑难杂症. 我按文中"Using a SQL Server Named Instance" 设置了一次.
4.查看注册表:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\FIMSynchronizationService\Parameters\SQLInstance 是否正确.
见:
http://support.microsoft.com/kb/983497
http://support.microsoft.com/kb/2281364
5. 成功启动后,你点击 UPS服务应用程序有可能出现异常, iisreset即可.
6. 开始同步AD用户时,你有可能一个用户也不会同步过来, 因为你的账号还需要复制AD的权限.
具体打开:C:\Program Files\Microsoft Office Servers\14.0\Synchronization Service\UIShell\miisclient.exe可以查看相关信息.
谢谢各位给予的支持. 感谢Han提供的链接, 让我知道了使用命令来停止该服务,因为之前一直头痛这个问题, 如果不能停止,你也不能操作他了.
希望对其他人也有帮助吧, 当然还有其他千奇百怪的异常.
Anything is Possible!
- 已编辑 Harvey Jiang 2012年5月15日 7:54
- 已标记为答案 Harvey Jiang 2012年5月15日 8:43
全部回复
-
你好 Harvey,
关于你的问题,你可以尝试添加网络服务账户( Network Service account )到你SharePoint 应用程序服务器中的WSS_WPG安全组里面,它将用来承载用户配置文件承载服务。
此问题的内部原文资料:
Title:SharePoint 2010: User Profile Synchronization Service stuck in Starting State
Cause:MsiInstaller running in the context of Network Service tries to access the file but does not have the required permissions.
Resolution:Add the Network Service account to WSS_WPG security group on the SharePoint Application Server that is going to host the User Profile Synchronization Service.
谢谢,
韩- 已编辑 Lhan HanModerator 2012年5月15日 2:17
- 已标记为答案 Harvey Jiang 2012年5月15日 8:43
- 取消答案标记 Harvey Jiang 2012年5月15日 8:43
-
你好 Harvey,
希望能够帮助你。
这里有篇和你遇到的问题相似的帖子:
http://social.technet.microsoft.com/Forums/en-US/sharepoint2010setup/thread/27591ac1-5c31-4d0c-a27d-09f3967819db
上面的问题是通过安装 December CU更新后删除ProfileSynchronizationSetupJob,然后重启应用程序服务端解决的。
谢谢,
韩- 已编辑 Lhan HanModerator 2012年5月15日 2:48
- 已标记为答案 Harvey Jiang 2012年5月15日 8:43
-
嗨, Lhan ,谢谢你的答复.
根据你提供的链接, 使用命令停止了该服务.
PS C:\Users\spadmin> Get-spserviceinstance
TypeName Status Id
-------- ------ --
Managed Metadata Web Service Online cde3fa62-5d47-449d-8a4c-e54e3e739525
用户配置文件同步服务 Provi... dce72de2-6adc-43e0-8d25-979955d4aa4ePS C:\Users\spadmin> stop-spserviceinstance dce72de2-6adc-43e0-8d25-979955d4aa4e
确认
是否确实要执行此操作?
对目标“ProfileSynchronizationServiceInstance”执行操作“Stop-SPServiceInstance
”。
[Y] 是(Y) [A] 全是(A) [N] 否(N) [L] 全否(L) [S] 挂起(S) [?] 帮助
(默认值为“Y”):y
TypeName Status Id
-------- ------ --
用户配置文件同步服务 Unpro... dce72de2-6adc-43e0-8d25-979955d4aa4e然后我删除以前的 user profile server application 后新建了个 UPS
删除时系统错误日志提示:
出现未知的 SQL 异常 5011。下面包含来自 SQL Server 的其他错误信息。
用户没有更改数据库 'Sync DB' 的权限,该数据库不存在,或数据库未处于允许访问检查的状态。
ALTER DATABASE 语句失败。
无法对 数据库 'Sync DB' 执行 删除,因为它不存在,或者您没有所需的权限。重新启动,5分钟左右后,自动停止了. 但是我去数据库查看,已新建三个数据库: sync db , 和Profile DB 和Social DB
ULS日志记录,无系统错误日志
感谢.
Anything is Possible!
-
你好 Harvey,
请尝试下面的操作(注意事先备份):
- locked all of the Site collections into read-only mode
- rebooted all the WFEs'
- ran "psconfig -cmd upgrade -inplace b2b -wait -force" on the CA WFE
- ran "psconfig -cmd upgrade -inplace b2b -wait" on the other WFE's
- logged in as sp_farm and ran stsadm -o sync -deleteolddatabases 1
-
unlocked all of the site collections
韩- 已编辑 Lhan HanModerator 2012年5月15日 4:04
-
嗨, Han , 你好!
谢谢你的答复.
上面命令我不是很熟悉, 不知道风险如何, 安装上面的更新包,配置运行向导也执行了.
刚才从ULS看到如下错误: 应该数据库哪里的问题吧.
UserProfileApplication.SynchronizeMIIS: Failed to configure MIIS post database, will attempt during next rerun. Exception: System.Configuration.ConfigurationErrorsException: ERR_CONFIG_DB 在 Microsoft.Office.Server.UserProfiles.Synchronization.ILMPostSetupConfiguration.ValidateConfigurationResult(UInt32 result) 在 Microsoft.Office.Server.UserProfiles.Synchronization.ILMPostSetupConfiguration.ConfigureMiisStage2() 在 Microsoft.Office.Server.Administration.UserProfileApplication.SetupSynchronizationService(ProfileSynchronizationServiceInstance profileSyncInstance).
谢谢.
Anything is Possible!
-
嗨, Han , 目前服务已启动, 真是曲折啊! 但是由于改动太多,目前还是不知道具体是哪一步骤设置. 待会附上详情.
1."用户配置文件同步服务" 这个服务我极少数一次性启动成功. 而每次出现的问题都可能不同.
2.对于ERR_CONFIG_DB这个错误见:http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010general/thread/26b1c33b-d726-4d49-8417-b64935a15bcd/
http://social.msdn.microsoft.com/Forums/zh-CN/sharepoint2010setup/thread/31480697-96be-4996-beff-0f28f255a24b
3. http://www.harbar.net/articles/sp2010ups.aspx
http://www.harbar.net/articles/sp2010ups2.aspx
这两篇很详细介绍了各种疑难杂症. 我按文中"Using a SQL Server Named Instance" 设置了一次.
4.查看注册表:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\FIMSynchronizationService\Parameters\SQLInstance 是否正确.
见:
http://support.microsoft.com/kb/983497
http://support.microsoft.com/kb/2281364
5. 成功启动后,你点击 UPS服务应用程序有可能出现异常, iisreset即可.
6. 开始同步AD用户时,你有可能一个用户也不会同步过来, 因为你的账号还需要复制AD的权限.
具体打开:C:\Program Files\Microsoft Office Servers\14.0\Synchronization Service\UIShell\miisclient.exe可以查看相关信息.
谢谢各位给予的支持. 感谢Han提供的链接, 让我知道了使用命令来停止该服务,因为之前一直头痛这个问题, 如果不能停止,你也不能操作他了.
希望对其他人也有帮助吧, 当然还有其他千奇百怪的异常.
Anything is Possible!
- 已编辑 Harvey Jiang 2012年5月15日 7:54
- 已标记为答案 Harvey Jiang 2012年5月15日 8:43