UiPath Documentation
automation-suite
2023.10
false
Linux 版 Automation Suite 安装指南
重要 :
新发布内容的本地化可能需要 1-2 周的时间才能完成。

预服务脚本执行期间服务升级失败

在 Automation Suite 中升级到 2023.10.x 时,由于升级前脚本退出并显示非零代码而导致服务升级失败。

描述​

当您从较早版本升级到 2023.10.x 时,服务升级脚本可能会突然结束,并显示非零退出代码。当一个预升级脚本(即scale-down-insights-looker-deployment.sh )在某些情况下失败时,会发生此问题。

终止输出如下所示:

[INFO] [2025-03-05T12:32:39+0000]: Syncing cronjobs in app argocd/webhook
[INFO] [2025-03-05T12:32:42+0000]: Removing maintenance label from the nodes
[INFO] [2025-03-05T12:32:43+0000]: Deprecating app of apps in upgrade hooks
[INFO] [2025-03-05T12:32:43+0000]: Disabling auto-sync for uipath...
The request is invalid: the server rejected our request due to an error in our request
[INFO] [2025-03-05T12:32:43+0000]: Stopping any running sync operation for uipath...

Name:               argocd/uipath
Project:            default
Server:             https://kubernetes.default.svc
Namespace:
URL:                https://alm.sfdev8263570-cluster.infra-sf-ea.infra.uipath-dev.com/applications/uipath
Repo:               sfbrdevhelmweacr.azurecr.io
Target:             2023.10.2
Path:
SyncWindow:         Sync Allowed
Sync Policy:        <none>
Sync Status:        Synced to 2023.10.2 (2023.10)
Health Status:      Healthy

Operation:          Sync
Sync Revision:      2022.10.4
Phase:              Succeeded
Start:              2025-03-05 10:20:36 +0000 UTC
Finished:           2025-03-05 10:20:38 +0000 UTC
Duration:           2s
Message:            successfully synced (all tasks run)
[INFO] [2025-03-05T12:32:43+0000]: Done. Will resume pruning after the upgrade.
[root@server0 UiPath_Installer]# echo $?
1
[INFO] [2025-03-05T12:32:39+0000]: Syncing cronjobs in app argocd/webhook
[INFO] [2025-03-05T12:32:42+0000]: Removing maintenance label from the nodes
[INFO] [2025-03-05T12:32:43+0000]: Deprecating app of apps in upgrade hooks
[INFO] [2025-03-05T12:32:43+0000]: Disabling auto-sync for uipath...
The request is invalid: the server rejected our request due to an error in our request
[INFO] [2025-03-05T12:32:43+0000]: Stopping any running sync operation for uipath...

Name:               argocd/uipath
Project:            default
Server:             https://kubernetes.default.svc
Namespace:
URL:                https://alm.sfdev8263570-cluster.infra-sf-ea.infra.uipath-dev.com/applications/uipath
Repo:               sfbrdevhelmweacr.azurecr.io
Target:             2023.10.2
Path:
SyncWindow:         Sync Allowed
Sync Policy:        <none>
Sync Status:        Synced to 2023.10.2 (2023.10)
Health Status:      Healthy

Operation:          Sync
Sync Revision:      2022.10.4
Phase:              Succeeded
Start:              2025-03-05 10:20:36 +0000 UTC
Finished:           2025-03-05 10:20:38 +0000 UTC
Duration:           2s
Message:            successfully synced (all tasks run)
[INFO] [2025-03-05T12:32:43+0000]: Done. Will resume pruning after the upgrade.
[root@server0 UiPath_Installer]# echo $?
1

解决方案​

为了缓解这种情况,您必须修改位于安装程序目录中的有问题的脚本。脚本路径为: Upgrade/scripts/scale-down-insights-looker-deployment.sh 。您必须从脚本中删除第 41 行,然后再次启动升级。要删除该行,您必须运行以下命令:

sed -i '41d' Upgrade/scripts/scale-down-insights-looker-deployment.sh
sed -i '41d' Upgrade/scripts/scale-down-insights-looker-deployment.sh
  • 描述​
  • 解决方案​

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新