- 概述
- 要求
- 安装
- 安装后
- 集群管理
- 监控和警示
- 迁移和升级
- 特定于产品的配置
- 最佳实践和维护
- 故障排除
更新数据库连接字符串
确保为 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 更新连接字符串。采取以下步骤:
-
登录到 ArgoCD 并导航到“应用程序”页面,如下图所示:
-
从“搜索应用程序”栏中,选择“UiPath 存储库”。
生成的屏幕应类似于下图。
-
单击“UiPath 父节点”,然后在功能区菜单中选择“参数”选项卡。
-
单击“编辑”,更新以下参数,然后保存配置:
global.userInputs.orchestrator.sqlConnectionStringglobal.userInputs.orchestrator.testautomation.sqlConnectionStringglobal.userInputs.insights.sqlConnectionStringglobal.userInputs.orchestrator.updateserver.sqlConnectionStringglobal.userInputs.identity.sqlConnectionStringglobal.userInputs.identity.hostAdminUsernameglobal.userInputs.identity.hostAdminPassword
-
更新服务配置映射中的自定义 Identity Server 应用程序设置。为此,请运行
kubectl edit secret identity-generated-secrets -n uipath并使用原始值的 Base64 编码值更新DatabaseProtectionSettings.EncryptionKey2021值。 -
To update the identity token signing certificate, use the instructions provided in Managing the identity token signing certificate.
-
如果您使用的 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。
- 使用以下命令更改
-
-
返回到 ArgoCD 的“应用程序”页面并开始同步以下存储库:
-
平台
-
Webhooks
-
Orchestrator
-
rabbitmq-cluster(无需同步 rabbitmq-operator)
-