UiPath Documentation
automation-suite
2022.4
false
Guia de instalação do Automation Suite
Importante :
A tradução automática foi aplicada parcialmente neste conteúdo. A localização de um conteúdo recém-publicado pode levar de 1 a 2 semanas para ficar disponível.

Manual: atualização online

Preparação​

Importante:

Execute as seguintes etapas no primeiro nó do servidor e depois em todos os outros nós (tanto do servidor como do agente) no cluster.

Certifique-se de ter 10 GiB de espaço livre na pasta /opt/UiPathAutomationSuite em todos os nós. Se não tiver espaço suficiente, você pode aumentar a capacidade dessa pasta ou remover todos os arquivos de instalador anteriores, exceto por cluster_config.json. Sempre é possível baixar o instalador anterior novamente.

Para verificar o espaço disponível, execute o comando a seguir: df -h /opt/UiPathAutomationSuite.

Para se preparar para a atualização, siga as seguintes etapas:

  1. Log into any server machine using SSH. In the case of single-node evaluation profile, where you have only one server node, log into that node.

  2. Torne-se o usuário raiz:

    sudo su -
    sudo su -
    
  3. Crie uma pasta de instalação no diretório /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
    
  4. Download sf-installer.zip and copy it to /opt/UiPathAutomationSuite/{version}/installer. For download instructions, see sf-installer.zip.

    cp /path/to/sf-installer.zip /opt/UiPathAutomationSuite/{version}/installer
    cp /path/to/sf-installer.zip /opt/UiPathAutomationSuite/{version}/installer
    
  5. Descompacte sf-installer.zip:

    cd /opt/UiPathAutomationSuite/{version}/installer
    unzip sf-installer.zip -d .
    cd /opt/UiPathAutomationSuite/{version}/installer
    unzip sf-installer.zip -d .
    
  6. Forneça permissão para o instalador:

    chmod 755 -R /opt/UiPathAutomationSuite/{version}/installer
    chmod 755 -R /opt/UiPathAutomationSuite/{version}/installer
    
  7. Gere o arquivo mais recente cluster_config.json no primeiro nó servidor e o copie para os outros nós.

    Observação:

    For details on how to configure the cluster_config.json parameters, see Advanced installation experience.

    • Se você tiver o cluster_config.json antigo, gere o arquivo de configuração a partir do cluster:

      cd /opt/UiPathAutomationSuite/{version}/installer
      
      ./configureUiPathAS.sh config get -i /path/to/old/cluster_config.json -o ./cluster_config.json
      cd /opt/UiPathAutomationSuite/{version}/installer
      
      ./configureUiPathAS.sh config get -i /path/to/old/cluster_config.json -o ./cluster_config.json
      
    • Se você não tiver o arquivo cluster_config.json antigo, gere qualquer substituição de algum valor padrão, que você pode ter feito no momento da instalação da versão anterior:

      cd /opt/UiPathAutomationSuite/{version}/installer
      
      ./configureUiPathAS.sh config get -o ./cluster_config.json
      cd /opt/UiPathAutomationSuite/{version}/installer
      
      ./configureUiPathAS.sh config get -o ./cluster_config.json
      
  8. (Opcional) Se você ainda usa um certificado autoassinado gerado pelo instalador, execute o seguinte comando. Esta etapa é necessária no primeiro nó do servidor, onde você realizará a atualização dos produtos UiPath.

    ### Please replace /path/to/cert with path to location where you want to store certificates.
    ./configureUiPathAS.sh tls-cert get --outpath /path/to/cert
    
    ### Now copy the ca.crt file generated in above location to trust store location
    sudo cp --remove-destination /part/to/cert/ca.crt /etc/pki/ca-trust/source/anchors/
    
    ### Update the trust store
    sudo update-ca-trust
    ### Please replace /path/to/cert with path to location where you want to store certificates.
    ./configureUiPathAS.sh tls-cert get --outpath /path/to/cert
    
    ### Now copy the ca.crt file generated in above location to trust store location
    sudo cp --remove-destination /part/to/cert/ca.crt /etc/pki/ca-trust/source/anchors/
    
    ### Update the trust store
    sudo update-ca-trust
    

Execução​

Importante:

If any errors or issues occur during or following the upgrade, you can rollback to the previous version, provided that you previously configured a backup. For instructions, see Rollback on error.

Configuring the backup​

Para configurar o backup, execute as seguintes etapas:

  1. Make sure you have enabled the backup on the cluster. You must create the backup using the same version of the installer as the one you used for the current deployment. For instructions, see the backup and restore documentation corresponding to the Automation Suite version from which you plan to upgrade. For instance, if you plan to upgrade from Automation Suite 2021.10, follow the instructions in the 2021.10 guide.

  2. Conecte-se a um dos nós do servidor via SSH.

  3. Para verificar se todos os volumes desejados têm backups no cluster, execute:

    /path/to/old-installer/configureUiPathAS.sh verify-volumes-backup
    /path/to/old-installer/configureUiPathAS.sh verify-volumes-backup
    
    Observação:

    O backup pode levar algum tempo, portanto, aguarde aproximadamente 15 a 20 minutos e verifique o backup dos volumes novamente.

Após a criação do backup, continue com as próximas etapas.

Putting the cluster in maintenance mode​

Colocar o cluster no modo de manutenção encerrará o controlador de ingresso e todos os serviços da UiPath, bloqueando todo o tráfego de entrada para o cluster do Automation Suite.

Importante:

This operation will cause downtime, and your business automation will be suspended during the entire upgrade process.

  1. Para colocar o cluster no modo de manutenção, execute:

    cd /opt/UiPathAutomationSuite/{version}/installer
    ./configureUiPathAS.sh enable-maintenance-mode
    cd /opt/UiPathAutomationSuite/{version}/installer
    ./configureUiPathAS.sh enable-maintenance-mode
    
  2. Para verificar se o cluster está no modo de manutenção, execute:

    ./configureUiPathAS.sh is-maintenance-enabled
    ./configureUiPathAS.sh is-maintenance-enabled
    
    Importante:

    Create a backup of your SQL Server after enabling maintenance mode so that no further transactions are recorded in your SQL database.

Updating Kubernetes and other infrastructure components​

Importante:

Você deve executar a atualização de infraestrutura em todos nós do cluster.

Você não pode executar essa etapa em vários nós ao mesmo tempo; é necessário aguardar o término da atualização em cada nó antes de passar para o próximo.

  1. Faça login em cada nó em que queira realizar a atualização de infraestrutura.

  2. Torne-se root executando sudo su -.

  3. Certifique-se de que rke service está habilitado nos nós servidores e agentes.

    Se o serviço estiver desativado, habilite ele com o comando a seguir:

    • Para um nó servidor:

      [[ $(systemctl is-enabled rke2-server.service) != "enabled" ]] && systemctl enable rke2-server.service
      [[ $(systemctl is-enabled rke2-server.service) != "enabled" ]] && systemctl enable rke2-server.service
      
    • Para um nó agente:

      [[ $(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. Para iniciar a atualização, execute o comando a seguir:

    Importante:

    Make sure you have updated cluster_config.json generated as described in the Preparation steps.

    # 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 --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 --accept-license-agreement
    
    Importante:

    If you get the following error, follow the instructions in Downgrading Ceph from 16.2.6 to 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

Como atualizar componentes compartilhados e serviços de produtos UiPath​

Esta etapa atualiza os componentes de base e serviço em execução com o cluster. Você deve seguir essas etapas apenas uma vez de qualquer um dos nós de servidor.

  1. Conecte-se a qualquer nó de servidor.

  2. Torne-se root executando sudo su -.

  3. Execute o seguinte comando:

    # replace {version} with the version you are upgrading to
    cd /opt/UiPathAutomationSuite/{version}/installer
    
    ./install-uipath.sh --upgrade -f -s -i ./cluster_config.json --accept-license-agreement -o ./output.json
    # replace {version} with the version you are upgrading to
    cd /opt/UiPathAutomationSuite/{version}/installer
    
    ./install-uipath.sh --upgrade -f -s -i ./cluster_config.json --accept-license-agreement -o ./output.json
    
    Importante:

    Depois de atualizado, o modo de manutenção será desabilitado automaticamente.

    After manually upgrading from Automation Suite 2021.10 to 2022.4, you must also migrate to Cilium CNI. For instructions, see Migrating from Canal to Cilium CNI.

Após realizar a atualização, você pode seguir as seguintes etapas adicionais:

  • Para verificar se o Automation Suite está íntegro, execute:

    kubectl get applications -n argocd
    kubectl get applications -n argocd
    
  • If you experience issues with image vulnerabilities or storage consumption after performing an upgrade, delete the images from the old installer. For details, see the Troubleshooting section.

Enabling the backup post-upgrade​

Importante:

Make sure Automation Suite is up and running and your automation continues as expected before proceeding with the next steps.

Antes de iniciar a atualização do cluster, o script de atualização cria automaticamente um backup do cluster e o desabilita temporariamente. Pode ser do seu interesse habilitar o backup manualmente após o término da atualização.

Para habilitar o backup, execute o comando a seguir de qualquer nó de servidor:

# replace {version} with the version you are upgrading to
cd /opt/UiPathAutomationSuite/{version}/installer

./configureUiPathAS.sh resume-scheduled-backups
# replace {version} with the version you are upgrading to
cd /opt/UiPathAutomationSuite/{version}/installer

./configureUiPathAS.sh resume-scheduled-backups

Esta página foi útil?

Conectar

Precisa de ajuda? Suporte(opens in new window)

Quer aprender? Academia UiPath(opens in new window)

Tem perguntas? Fórum do UiPath(opens in new window)

Fique por dentro das novidades