SharePoint Configuration Wizard - Unable to upgrade SharePoint Products and Technologies because an upgrade is already in progress

故障描述

当要运行SharePonit Products and Technologies Configuration Wizard的时候,出现了如下图所示的错误提示。

错误信息为: Unable to upgrade SharePoint Products and Technologies because an upgrade is already in progress. Upgrade progress can be monitored using the Central Administration Web Application or by monitoring the upgrade log on server <server name>

 

 

故障原因

我尝试着做iisreset,重启services timer service,甚至重启服务器,但是都无效。

经过网上搜索,找到了这篇文章http://blogs.technet.com/b/manjesh/archive/2012/03/07/3292954.aspx

文章作者认为是负责upgrade的timer job卡住了(got stuck),所以使SharePoint认为这个wizard已经在运行中了,因而拒绝再启动一个新的wizard实例。

解决方法

  1. 停掉 Windows SharePoint Services Timer Service
  2. 打开路径:C:\Documents and Settings\All Users\Application Data\Microsoft\SharePoint\Config\<guid>
    (这个路径下存放的其实是SharePointConfiguration Cache,简单的说就是缓存了Config DB中的一些配置信息,这样可以减少对于Config DB的查询次数,提高性能。)
  3. 备份所有文件到其它地方。然后删除此路径下的所有XML文件,但要保留cache.ini文件
  4. 编辑cache.ini文件,打开后会发现里面是一个数字,把它改成1,保存关闭
  5. 启动在第1步停掉的Windows SharePoint Services Timer Service。
    大约1分钟左右,第2步打开的 Config Cache路径下就会生成出新的XML文件来
  6. 重新打开cache.ini文件,只要里面的数字不是-1就可以。
  7. 打开CMD命令行,切换到12hive的bin文件夹下,运行下面的命令
    stsadm -o setproperty -pn command-line-upgrade-running -pv no
  8. 再运行这条指令
    stsadm -o execadmsvcjobs

  9. 运行最后一条指令
    psconfig -cmd upgrade -inplace b2b -wait –force
    (这步的指令其实是在运行psconfig.exe。有可能会出错,但是没有关系)
  10. 重新运行SharePonit Products and Technologies Configuration Wizard
posted @ 2014-07-07 00:10  Naralee  阅读(434)  评论(0编辑  收藏  举报