IaaS 升級失敗,無法繼續升級。

問題

針對網站元件的 IaaS 升級失敗。安裝程式記錄檔中會出現下列錯誤訊息。

  • 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()

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

    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)

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

web.config 檔案的建立日期與修改日期相同或晚於修改日期時,Iaas 升級便會失敗。

程序

  1. 以管理員身分登入 IaaS 網站元件伺服器。
  2. 將目錄變更為 vRealize Automation 安裝資料夾 ...\VMware\vCAC\
  3. 使用以管理員身分執行選項啟動慣用文字編輯器。
  4. 找到並選取 web.config 檔案,儲存該檔案以變更其檔案修改日期。
  5. 檢查 web.config 檔案內容,確認檔案修改日期晚於建立日期。
  6. 升級 IaaS。