Sharepoint之配置向导创建DB失败

转载 2016年05月21日 16:28:14
Sharepoint之配置向导创建DB失败

最近在重装Sharepoint 2010时,运行配置向导创建DB失败,异常的原因也比较奇怪。具体异常日志如下所示:

   1: 9/16/2012 10:49:06  9  INF                    Creating a new farm with config db SharePoint_Config content db SharePoint_AdminContent_b2d2eaa3-a3cf-4420-a100-33926db462c4 server 10.10.10.111 for farm mode
   2: 09/16/2012 10:49:22  9  ERR                    Task configdb has failed with an unknown exception 
   3: 09/16/2012 10:49:22  9  ERR                    Exception: System.InvalidOperationException: An error occurred while getting information about the user sharepoint at server xxx.com: Access is denied
   4:    at Microsoft.SharePoint.Win32.SPNetApi32.NetUserGetInfo1(String server, String name)
   5:    at Microsoft.SharePoint.Administration.SPManagedAccount.GetUserAccountControl(String username)
   6:    at Microsoft.SharePoint.Administration.SPManagedAccount.Update()
   7:    at Microsoft.SharePoint.Administration.SPProcessIdentity.Update()
   8:    at Microsoft.SharePoint.Administration.SPApplicationPool.Update()
   9:    at Microsoft.SharePoint.Administration.SPWebApplication.CreateDefaultInstance(SPWebService service, Guid id, String applicationPoolId, SPProcessAccount processAccount, String iisServerComment, Boolean secureSocketsLayer, String iisHostHeader, Int32 iisPort, Boolean iisAllowAnonymous, DirectoryInfo iisRootDirectory, Uri defaultZoneUri, Boolean iisEnsureNTLM, Boolean createDatabase, String databaseServer, String databaseName, String databaseUsername, String databasePassword, SPSearchServiceInstance searchServiceInstance, Boolean autoActivateFeatures)
  10:    at Microsoft.SharePoint.Administration.SPWebApplication.CreateDefaultInstance(SPWebService service, Guid id, String applicationPoolId, IdentityType identityType, String applicationPoolUsername, SecureString applicationPoolPassword, String iisServerComment, Boolean secureSocketsLayer, String iisHostHeader, Int32 iisPort, Boolean iisAllowAnonymous, DirectoryInfo iisRootDirectory, Uri defaultZoneUri, Boolean iisEnsureNTLM, Boolean createDatabase, String databaseServer, String databaseName, String databaseUsername, String databasePassword, SPSearchServiceInstance searchServiceInstance, Boolean autoActivateFeatures)
  11:    at Microsoft.SharePoint.Administration.SPAdministrationWebApplication.CreateDefaultInstance(SqlConnectionStringBuilder administrationContentDatabase, SPWebService adminService, IdentityType identityType, String farmUser, SecureString farmPassword)
  12:    at Microsoft.SharePoint.Administration.SPFarm.CreateAdministrationWebService(SqlConnectionStringBuilder administrationContentDatabase, IdentityType identityType, String farmUser, SecureString farmPassword)
  13:    at Microsoft.SharePoint.Administration.SPFarm.CreateBasicServices(SqlConnectionStringBuilder administrationContentDatabase, IdentityType identityType, String farmUser, SecureString farmPassword)
  14:    at Microsoft.SharePoint.Administration.SPFarm.Create(SqlConnectionStringBuilder configurationDatabase, SqlConnectionStringBuilder administrationContentDatabase, IdentityType identityType, String farmUser, SecureString farmPassword, SecureString masterPassphrase)
  15:    at Microsoft.SharePoint.Administration.SPFarm.Create(SqlConnectionStringBuilder configurationDatabase, SqlConnectionStringBuilder administrationContentDatabase, String farmUser, SecureString farmPassword, SecureString masterPassphrase)
  16:    at Microsoft.SharePoint.PostSetupConfiguration.ConfigurationDatabaseTask.CreateOrConnectConfigDb()
  17:    at Microsoft.SharePoint.PostSetupConfiguration.ConfigurationDatabaseTask.Run()
  18:    at Microsoft.SharePoint.PostSetupConfiguration.TaskThread.ExecuteTask()

值得注意的是该异常:Exception: System.InvalidOperationException: An error occurred while getting information about the user sharepoint at server xxx.com: Access is denied。

根据日志,第一反应是读写数据库权限不够,也就是数据库连接不上,查看db服务器,发现DB已经创建成功了,那么就不是这个问题了。然后怀疑配置的域账号权限不够,查看发现是域管理员,并且加入到了本地管理员组,那么就不存在权限不足的问题了。

苦思冥想加问技术群,均没找到思路,而国内没有任何关于此异常的帖子。最后通过老外的只字片语得到灵感:在运行配置向导时,虽然输入了域账号进行配置,但是配置时并不是使用所配置的域账号,而是使用的当前登录用户。也就是说,不能使用目标服务器本地管理员登录,而应该使用需要所配置的域账户进行登录服务器,然后运行配置向导。至此,折腾了大半天的问题终于解决。

相关文章推荐

配置SharePoint连接SQL Server错误的解决方案

安装SharePoint后,在进行configuration wizard填写SQL Server配置时提示错误 "Cannot cconnect to database master at SQLS...

运行SharePoint配置向导出错的一个解决办法

有很多原因导致运行配置向导失败,
  • shrenk
  • shrenk
  • 2014年09月09日 02:41
  • 1414

sharepoint 2016 学习系列篇(3)-如何部署sharepoint server 2016(2)-数据库服务器安装和部署

在前面,我们部署了Active Directory域服务器,sharepoint 2016 学习系列篇(2)-如何部署sharepoint server 2016(1)-AD域服务器安装和部署 接下来...

SharePoint Server2007 的配置以及“未能创建配置数据库”的解决方法

小贴士: 如果使用Visual Studio 2005开发SharePoint工作流应用,首先需要安装Visual Studio 2005的WF扩展——Visual Studio 2005 Exte...

配置 SharePoint 2010 使用本机默认 SQL Server 实例

         SharePoint 2010的安裝向导,仅具有极为有限的定制功能,里面有两种模式:n  “独立”模式,会安装SQL Server 2008 Express做为数据库服务。不具有任何...
  • zjcxc
  • zjcxc
  • 2011年06月08日 15:53
  • 13770

Win10或Win8下ObjectARX2015 Wizard向导创建项目失败解决方法

[原创]objectARX 2015 Wizard安装向导在Win8/win10下无法创建项目的解决方法总结 by edata @2017-5-1 objectARX 2015 Wizard安装向...

NSIS 学习(1)——安装包打开后主界面显示背景图片(使用向导创建)

 var txt_LicensePage Var TopImage Var BGImage Var ImageHandle ; 该脚本使用 HM VNISEdit 脚本编...

ADO.NET 4 快速上手(7)——强类型DataSet(向导创建)

七、    强类型DataSet(向导创建) 1.    创建DataSet 2.    数据读取 A.    使用弱类型DataAdapter,手写SQL using (SqlC...

vs2012使用向导创建和使用dll

一、制作dll 1.选择Win32项目命名为"mydll" 2.选择dll,勾选导出符号(这样就有示例模板了)。 3.会生成一系列文件,实际上用到的只有mydll.h,mydll.cpp两个...

VS2010利用MFC向导创建单个文档

1.打开vs2010,选择New Project,打开Visual C++,选择MFC->MFC Application,  选择Location。           2.Appli...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:Sharepoint之配置向导创建DB失败
举报原因:
原因补充:

(最多只允许输入30个字)