Automation Suite
2022.10
False
横幅背景图像
Automation Suite 安装指南
上次更新日期 2024年4月24日

手动:离线升级

准备

重要提示:
确保所有节点上的/opt/UiPathAutomationSuite文件夹中都有 10GiB 的可用空间。 如果空间不足,您可以增加此文件夹的容量,也可以删除除cluster_config.json之外的所有以前的安装程序文件。 您始终可以再次下载以前的安装程序。
要验证可用空间,请运行以下命令: df -h /opt/UiPathAutomationSuite

要准备升级,请执行以下步骤:

  1. 识别在 /uipath 装载点附加了其他 UiPath bundle 磁盘的服务器(而非代理)节点。此节点在整个文档中被称为主服务器节点。对于其中只有一个服务器节点的单节点评估配置文件,您必须登录该节点。
    注意:在集群中的所有节点上执行以下步骤。首先是服务器节点,然后是代理节点。
  2. 使用 SSH 连接到节点。
  3. 成为根用户:
    sudo su -sudo su -
  4. /opt/UiPathAutomationSuite目录下创建安装文件夹:
    # Please replace {version} with installer version
    mkdir -p /opt/UiPathAutomationSuite/{version}/installer# Please replace {version} with installer version
    mkdir -p /opt/UiPathAutomationSuite/{version}/installer
  5. 下载 sf-installer.zip 并将其复制到 /opt/UiPathAutomationSuite/{version}/installer。 有关下载说明,请参阅 sf-installer.zip
    cp /path/to/sf-installer.zip /opt/UiPathAutomationSuite/{version}/installercp /path/to/sf-installer.zip /opt/UiPathAutomationSuite/{version}/installer
  6. 下载 sf-infra.tar.gz 并将其复制到 /opt/UiPathAutomationSuite/{version}。有关下载说明,请参阅 sf-infra.tar.gz
    cp /path/to/sf-infra.tar.gz /opt/UiPathAutomationSuite/{version}cp /path/to/sf-infra.tar.gz /opt/UiPathAutomationSuite/{version}
  7. (仅在主服务器节点上)。下载 sf.tar.gz 并将其复制到 /uipath/{version}。有关下载说明,请参阅 sf.tar.gz
    cp /path/to/sf.tar.gz /uipath/{version}cp /path/to/sf.tar.gz /uipath/{version}
  8. 解压缩sf-installer.zip :
    cd /opt/UiPathAutomationSuite/{version}/installer
    unzip sf-installer.zip -d .cd /opt/UiPathAutomationSuite/{version}/installer
    unzip sf-installer.zip -d .
  9. 为安装程序提供必要的权限:
    chmod 755 -R /opt/UiPathAutomationSuite/{version}/installerchmod 755 -R /opt/UiPathAutomationSuite/{version}/installer
  10. 在第一个服务器节点上生成最新的 cluster_config.json,并将其复制到其余节点。有关如何配置 cluster_config.json 参数的详细信息,请参阅高级安装体验
    • 如果您有旧版cluster_config.json ,请通过运行以下命令从集群生成配置文件:
      cd /opt/UiPathAutomationSuite/{version}/installer
      
      ./configureUiPathAS.sh config get -i /path/to/old/cluster_config.json -o ./cluster_config.jsoncd /opt/UiPathAutomationSuite/{version}/installer
      
      ./configureUiPathAS.sh config get -i /path/to/old/cluster_config.json -o ./cluster_config.json
    • 如果您没有旧的cluster_config.json文件,请生成一个覆盖,以覆盖您在安装先前版本时可能已完成的任何默认值:
      cd /opt/UiPathAutomationSuite/{version}/installer
      
      ./configureUiPathAS.sh config get -o ./cluster_config.jsoncd /opt/UiPathAutomationSuite/{version}/installer
      
      ./configureUiPathAS.sh config get -o ./cluster_config.json
    • 如果要从以前版本的 AI CenterTM 独立版升级,并且需要将 2022.10 版本的 AI Center 连接到外部 Orchestrator, 请将 Orchestrator 证书复制到虚拟机。 复制证书后, cluster_config.json中需要以下配置详细信息:
      "aicenter": {
          "enabled": true,
          "orchestrator_url": "https://orchestrator.example.com", //Specify the Orchestrator URL for AI Center
          "identity_server_url": "https://orchestrator.example.com/identity", //Specify the Identiy URL for AI Center
          "orchestrator_cert_file_path": "/opt/UiPathAutomationSuite/UiPath_Installer/orch.cer", //Specify the path to the Orchestrator certificate
          "identity_cert_file_path": "/opt/UiPathAutomationSuite/UiPath_Installer/orch.cer", //Specify the path to Identity certificate file
          "metering_api_key": "test" //Specify the metering API key
        }"aicenter": {
          "enabled": true,
          "orchestrator_url": "https://orchestrator.example.com", //Specify the Orchestrator URL for AI Center
          "identity_server_url": "https://orchestrator.example.com/identity", //Specify the Identiy URL for AI Center
          "orchestrator_cert_file_path": "/opt/UiPathAutomationSuite/UiPath_Installer/orch.cer", //Specify the path to the Orchestrator certificate
          "identity_cert_file_path": "/opt/UiPathAutomationSuite/UiPath_Installer/orch.cer", //Specify the path to Identity certificate file
          "metering_api_key": "test" //Specify the metering API key
        }
      注意:如果 AI Center 需要外部 Orchestrator,请在 cluster_config.json 文件中添加 sql_connection_string_templatesql_connection_string_template_odbc
    • 如果要从先前版本升级 Automation Suite,并且现在还要启用 Process Mining,则必须更新 sql_connection_string_template_sqlalchemy_pyodbc。以下是一个示例。
      "sql_connection_string_template_sqlalchemy_pyodbc": "mssql+pyodbc://testadmin@sfmfup20211043125452-8926d153-sql.database.windows.net:sgTQrg%40R%40dvoYddYBoKn045ncoC9WhWU@sfmfup20211043125452-8926d153-sql.database.windows.net:1433/DB_NAME_PLACEHOLDER?driver=ODBC+Driver+17+for+SQL+Server""sql_connection_string_template_sqlalchemy_pyodbc": "mssql+pyodbc://testadmin@sfmfup20211043125452-8926d153-sql.database.windows.net:sgTQrg%40R%40dvoYddYBoKn045ncoC9WhWU@sfmfup20211043125452-8926d153-sql.database.windows.net:1433/DB_NAME_PLACEHOLDER?driver=ODBC+Driver+17+for+SQL+Server"

执行

重要提示:如果在升级期间或之后发生任何错误或问题,只要您之前配置了备份,就可以回滚到以前的版本。有关说明,请参阅出错时回滚

结合使用 Docker 注册表和 Containerd

为了最大程度地缩短所需的停机时间,请执行以下步骤,在升级之前将 docker-registrycontainerd 与容器映像结合使用,以用于新版产品。
重要提示:
  • 确保在升级前 10 个小时内不要结合使用容器和/或其他基础架构映像。

  • 如果升级 Document Understanding 和 Computer Vision,则必须下载与升级后的 Automation Suite 版本匹配的基本映像(使用与 ML 包版本对应的基本映像),并在升级前将其与 Docker 注册表结合使用,以避免中断正在运行 DU 技能。要下载 Document Understanding 和 Computer Vision 安装包,请参阅下载安装包

  1. 要水合docker-registry ,请在第一个服务器节点上运行以下命令:
    cd /opt/UiPathAutomationSuite/{version}/installer
    
    ./configureUiPathAS.sh registry upload --offline-bundle /uipath/{version}/sf.tar.gz --offline-tmp-folder /uipath/tmpcd /opt/UiPathAutomationSuite/{version}/installer
    
    ./configureUiPathAS.sh registry upload --offline-bundle /uipath/{version}/sf.tar.gz --offline-tmp-folder /uipath/tmp
  2. 备注:
    确保已安装 zstd。要安装 zstd,请运行以下命令:dnf install zstd
    要对containerd进行水合,请在所有节点上运行以下命令:
    cd /opt/UiPathAutomationSuite/{version}/installer
    
    ./configureUiPathAS.sh containerd --offline-bundle ../sf-infra.tar.gz --offline-tmp-folder ../../tmpcd /opt/UiPathAutomationSuite/{version}/installer
    
    ./configureUiPathAS.sh containerd --offline-bundle ../sf-infra.tar.gz --offline-tmp-folder ../../tmp

配置备份

要配置备份,请执行以下步骤:

  1. 确保您在集群上启用了备份。您必须使用与当前部署所用版本相同的安装程序版本创建备份。有关说明,请参阅与您计划升级的 Automation Suite 版本对应的备份和还原文档。例如,如果您计划从 Automation Suite 2021.10 进行升级,请按照 2021.10 指南中的说明进行操作。
  2. 通过 SSH 连接到其中一个服务器节点。
  3. 通过运行以下命令,验证所有所需的卷在集群中是否都有备份:
    /path/to/old-installer/configureUiPathAS.sh verify-volumes-backup/path/to/old-installer/configureUiPathAS.sh verify-volumes-backup
    注意:备份可能需要一些时间,因此请等待大约 15 至 20 分钟,然后再次验证卷备份。

创建备份后,请继续执行以下步骤。

将集群置于维护模式

将集群置于维护模式将关闭入口控制器和所有 UiPath 服务,并阻止进入 Automation Suite 集群的所有传入流量。

重要提示:此操作将导致停机,并且在整个升级过程中,您的业务自动化将暂停。
  1. 要将集群置于维护模式,请运行:
    cd /opt/UiPathAutomationSuite/{version}/installer
    ./configureUiPathAS.sh enable-maintenance-modecd /opt/UiPathAutomationSuite/{version}/installer
    ./configureUiPathAS.sh enable-maintenance-mode
  2. 要验证集群是否处于维护模式,请运行:
    ./configureUiPathAS.sh is-maintenance-enabled./configureUiPathAS.sh is-maintenance-enabled
    重要提示:启用维护模式后,请创建 SQL Server 的备份,以便 SQL 数据库不再记录任何事务。

更新 Kubernetes 和其他基础架构组件

重要提示:

您必须在集群中的所有节点上执行基础架构升级。

您不能同时在多个节点上执行此步骤;您必须等待每个节点上的升级完成,然后才能移动到另一个节点。

  1. 登录到要执行基础架构升级的每个节点。
  2. 通过运行 sudo su - 成为根用户。
  3. 确保在服务器和代理节点上启用rke service

    如果该服务已禁用,请通过运行以下命令启用该服务:

    • 对于服务器节点:

      [[ $(systemctl is-enabled rke2-server.service) != "enabled" ]] && systemctl enable rke2-server.service[[ $(systemctl is-enabled rke2-server.service) != "enabled" ]] && systemctl enable rke2-server.service
    • 对于代理节点:

      [[ $(systemctl is-enabled rke2-agent.service) != "enabled" ]] && systemctl enable rke2-agent.service[[ $(systemctl is-enabled rke2-agent.service) != "enabled" ]] && systemctl enable rke2-agent.service
  4. 要开始升级,请运行以下命令:
    重要提示:请确保已按照准备步骤中的说明更新生成的 cluster_config.json
    # replace {version} with the version you are upgrading to
    cd /opt/UiPathAutomationSuite/{version}/installer
    
    ./install-uipath.sh --upgrade -k -i ./cluster_config.json -o ./output.json --offline-bundle ../sf-infra.tar.gz --offline-tmp-folder /opt/UiPathAutomationSuite/tmp --install-offline-prereqs --accept-license-agreement# replace {version} with the version you are upgrading to
    cd /opt/UiPathAutomationSuite/{version}/installer
    
    ./install-uipath.sh --upgrade -k -i ./cluster_config.json -o ./output.json --offline-bundle ../sf-infra.tar.gz --offline-tmp-folder /opt/UiPathAutomationSuite/tmp --install-offline-prereqs --accept-license-agreement
    重要提示:

    如果收到以下错误,请按照将 Ceph 从 16.2.6 降级到 15.2.9中的说明进行操作。

    Ceph cluster is running on version: 16.2.6 with known bug(https://docs.ceph.com/en/quincy/releases/pacific/#v16-2-6-pacific). Please provide temporary backup directory (via environment variable 'TMP_CEPH_BACKUP_PATH') to downgrade ceph

更新共享组件和 UiPath 产品服务

此步骤将升级与集群一起运行的结构和服务组件。 您只能在主服务器节点上执行此步骤。

  1. 连接到主服务器节点。
  2. 通过运行 sudo su - 成为根用户。
  3. 运行以下命令:
    # replace {version} with the version you are upgrading to in both the commands
    cd /opt/UiPathAutomationSuite/{version}/installer
    ./install-uipath.sh --upgrade -f -s -i ./cluster_config.json -o ./output.json --install-type offline --accept-license-agreement# replace {version} with the version you are upgrading to in both the commands
    cd /opt/UiPathAutomationSuite/{version}/installer
    ./install-uipath.sh --upgrade -f -s -i ./cluster_config.json -o ./output.json --install-type offline --accept-license-agreement
    重要提示:

    升级完成后,维护模式将自动禁用。

    从 Automation Suite 2021.10 手动升级后,您还必须迁移到 Cilium CNI。有关说明,请参阅从 Canal 迁移到 Cilium CNI

执行升级后,您可以执行以下附加步骤:

  • 要验证 Automation Suite 是否运行正常,请运行:

    kubectl get applications -n argocdkubectl get applications -n argocd
  • 如果在执行升级后遇到映像漏洞或存储消耗问题,请从旧的安装程序中删除映像。有关详细信息,请参阅故障排除部分。

启用升级后备份

重要提示:

请确保 Automation Suite 已启动并正在运行,并且您的自动化按预期继续运行,然后再继续执行后续步骤。

在开始升级集群之前,升级脚本会自动创建集群的备份,然后暂时将其禁用。 升级完成后,您可能需要手动启用备份。

要启用备份,请按照备份和还原集群文档中所述的说明进行操作。

此页面是否有帮助?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath 白色徽标
信任与安全
© 2005-2024 UiPath. All rights reserved.