IaaS 升级失败,无法继续升级。

IaaS Website 组件升级失败。安装程序日志文件中显示以下错误消息。

  • System.Data.Services.Client.DataServiceQueryException:

    An error occurred while processing this request. --->

    System.Data.Services.Client.DataServiceClientException: <!DOCTYPE html>

  • <b> Description: </b>An application error

    occurred on the server. The current custom error settings for this application

    prevent the details of the application error from being viewed remotely (for

    security reasons). It could, however, be viewed by browsers running on the

    local server machine.

  • Warning: Non-zero return code. Command failed.

  • Done Building Project "C:\Program Files

    (x86)\VMware\vCAC\Server\Model Manager Data\DeployRepository.xml"

    (InstallRepoModel target(s)) -- FAILED.

存储库日志文件中显示以下错误消息。

  • [Error]: [sub-thread-Id="20"

    context="" token=""] Failed to start repository service. Reason:

    System.InvalidOperationException: Configuration section encryptionKey is not

    protected

    at

    DynamicOps.Common.Utils.EncryptionHelpers.ReadKeyFromConfiguration(Configuration

    config)

    at DynamicOps.Common.Utils.EncryptionHelpers.Decrypt(String value)

    at DynamicOps.Repository.Runtime.CoreModel.GlobalPropertyItem.Decrypt(Func`2

    decryptFunc)

    at

    DynamicOps.Common.Entity.ContextHelpers.OnObjectMaterializedCallbackEncryptable(Object

    sender, ObjectMaterializedEventArgs e)

    at

    System.Data.Common.Internal.Materialization.Shaper.RaiseMaterializedEvents()

    at

    System.Data.Common.Internal.Materialization.Shaper`1.SimpleEnumerator.MoveNext()

    at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)

    at System.Linq.Queryable.FirstOrDefault[TSource](IQueryable`1 source)

    at

    DynamicOps.Repository.Runtime.Common.GlobalPropertyHelper.GetGlobalPropertyItemValue(CoreModelEntities

    coreModelContext, String propertyName, Boolean throwIfPropertyNotFound)

    at

    DynamicOps.Repository.Runtime.CafeClientAbstractFactory.LoadSolutionUserCertificate()

    at

    DynamicOps.Repository.Runtime.CafeClientAbstractFactory.InitializeFromDb(String

    coreModelConnectionString)

    at DynamicOps.Repository.Runtime.Common.RepositoryRuntime.Initialize().

web.config 文件的创建日期不早于修改日期时,IaaS 升级失败。

过程

  1. 以管理员身份登录到 IaaS Website 组件服务器。
  2. 将目录更改为 vRealize Automation 安装文件夹 ...\VMware\vCAC\
  3. 使用以管理员身份运行选项启动首选的文本编辑器。
  4. 找到并选择 web.config 文件,然后保存文件以更改其文件修改日期。
  5. 检查 web.config 文件属性,确认文件修改日期晚于创建日期。
  6. 升级 IaaS。