UiPath Documentation
automation-suite
2021.10
false
Automation Suite 安装指南
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

更新数据库连接字符串

重要提示:

确保为 Automation Suite 部署的原始 Orchestrator 和 Identity Server 数据库连接字符串创建备份。为防止在创建备份时丢失数据,请关闭所有打开的会话或与 UiPath 产品和服务的连接。

在某些情况下,多个服务(例如,Orchestrator 和身份服务器)在您的独立设置中共享同一个数据库,而作为迁移过程的一部分,Automation Suite 会自动为它们创建单独的数据库。

在这种情况下,在独立环境中备份共享数据库后,您需要为 Automation Suite 中新创建的单独数据库提供其连接字符串。 这应该会导致两个不同的数据库具有相同的连接字符串。

确保您对平台服务使用多个数据库,而不是单个数据库。为此,请使用高级部署选项。简化的 Automation Suite 部署可为 Automation Suite 的所有共享服务和功能(例如,Identity Server、位置、审核等)创建一个数据库,而独立部署仅具有 Identity Server 功能,并不知道其他服务。

将独立 Orchestrator 数据库备份还原到 Automation Suite 的 SQL Server 后,您需要使用 ArgoCD 更新连接字符串。采取以下步骤:

  1. 登录到 ArgoCD 并导航到“应用程序”页面,如下图所示:

  2. 从“搜索应用程序”栏中,选择“UiPath 存储库”。

    生成的屏幕应类似于下图。

  3. 单击“UiPath 父节点”,然后在功能区菜单中选择“参数”选项卡。

  4. 单击“编辑”,更新以下参数,然后保存配置:

    • global.userInputs.orchestrator.sqlConnectionString
    • global.userInputs.orchestrator.testautomation.sqlConnectionString
    • global.userInputs.insights.sqlConnectionString
    • global.userInputs.orchestrator.updateserver.sqlConnectionString
    • global.userInputs.identity.sqlConnectionString
    • global.userInputs.identity.hostAdminUsername
    • global.userInputs.identity.hostAdminPassword
  5. 更新服务配置映射中的自定义 Identity Server 应用程序设置。为此,请运行 kubectl edit secret identity-generated-secrets -n uipath 并使用原始值的 Base64 编码值更新 DatabaseProtectionSettings.EncryptionKey2021 值。

  6. To update the identity token signing certificate, use the instructions provided in Managing the identity token signing certificate.

  7. 如果您使用的 SAML 或身份提供程序证书与最初提供的证书不同,请再次单击“编辑”,更新以下参数,然后保存配置:

    • global.userInputs.certificate.identity.saml.currentServiceCert(将其替换为服务证书的 Base64 序列化,服务证书需要私钥)。

    • global.userInputs.certificate.identity.saml.currentServiceCertPassword(将其替换为 SAML 证书密码的 Base64 序列化)

    • global.userInputs.certificate.identity.saml.futureServiceCert(如果需要轮换服务证书,请将参数替换为服务证书的 Base64 序列化;服务证书需要私钥)。

    • global.userInputs.certificate.identity.saml.futureServiceCertPassword(如果需要轮换服务证书,请将参数替换为证书密码的 Base64 序列化)

      备注:

      或者,您可以使用以下脚本更新证书值。

      • 使用以下命令更改 global.userInputs.certificate.identity.saml.futureServiceCert 和 global.userInputs.certificate.identity.saml.futureServiceCertPassword 的值:sudo ./configureUiPathAS identity saml2-cert update --cert-file-path </path/to/cert> --password。
      • 使用以下命令交换未来和当前的服务证书:sudo ./configureUiPathAS identity saml2-cert rotate。
  8. 返回到 ArgoCD 的“应用程序”页面并开始同步以下存储库:

    • 平台

    • Webhooks

    • Orchestrator

    • rabbitmq-cluster(无需同步 rabbitmq-operator)

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新