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

ArgoCD 登录失败

有关错误 12001 的故障排除指南,其中由于 Automation Suite 中的管理员密码和 Kubernetes 密码不匹配,ArgoCD 登录失败。

错误详情

此问题的错误代码为 12001。

描述

使用管理员密码时,您可能无法登录 ArgoCD,或者安装程序可能会失败,并显示以下错误消息:

当您通过用户界面更新 ArgoCD 管理员密码而不更改相应的 Kubernetes 密码时,可能会发生此问题。

解决方案

要解决此问题,您可以使用以下方法之一:

  • 从 Automation Suite 2023.10.7 和 23.4.10 版本开始,您可以通过 cluster_config.json 传递新密码,如下所示:
    {
      "fabric": { "argocd_admin_password": "<NEW_PASSWORD>" }
    }
    {
      "fabric": { "argocd_admin_password": "<NEW_PASSWORD>" }
    }
    

  • 输入您的密码,创建 bcrypt 密码,然后运行以下部分中描述的命令:
    password="<enter_your_password>"
    bcryptPassword=<generate bcrypt password using link https://www.browserling.com/tools/bcrypt >
    
    # Enter your bcrypt password and run below command
    kubectl -n argocd patch secret argocd-secret \
      -p '{"stringData": {
        "admin.password": "<enter you bcryptPassword here>",
        "admin.passwordMtime": "'$(date +%FT%T%Z)'"
      }}'
    
    # Run below commands
    argocdInitialAdminSecretPresent=$(kubectl -n argocd get secret argocd-initial-admin-secret --ignore-not-found )
    if [[ -n ${argocdInitialAdminSecretPresent} ]]; then
       echo "Start updating argocd-initial-admin-secret"
       kubectl -n argocd patch secret argocd-initial-admin-secret \
       -p "{
          \"stringData\": {
             \"password\": \"$password\"
          }
       }"
    fi
    
    argocAdminSecretName=$(kubectl -n argocd get secret argocd-admin-password --ignore-not-found )
    if [[ -n ${argocAdminSecretName} ]]; then
       echo "Start updating argocd-admin-password"
       kubectl -n argocd patch secret argocd-admin-password \
       -p "{
          \"stringData\": {
             \"password\": \"$password\"
          }
       }"
    fi
    password="<enter_your_password>"
    bcryptPassword=<generate bcrypt password using link https://www.browserling.com/tools/bcrypt >
    
    # Enter your bcrypt password and run below command
    kubectl -n argocd patch secret argocd-secret \
      -p '{"stringData": {
        "admin.password": "<enter you bcryptPassword here>",
        "admin.passwordMtime": "'$(date +%FT%T%Z)'"
      }}'
    
    # Run below commands
    argocdInitialAdminSecretPresent=$(kubectl -n argocd get secret argocd-initial-admin-secret --ignore-not-found )
    if [[ -n ${argocdInitialAdminSecretPresent} ]]; then
       echo "Start updating argocd-initial-admin-secret"
       kubectl -n argocd patch secret argocd-initial-admin-secret \
       -p "{
          \"stringData\": {
             \"password\": \"$password\"
          }
       }"
    fi
    
    argocAdminSecretName=$(kubectl -n argocd get secret argocd-admin-password --ignore-not-found )
    if [[ -n ${argocAdminSecretName} ]]; then
       echo "Start updating argocd-admin-password"
       kubectl -n argocd patch secret argocd-admin-password \
       -p "{
          \"stringData\": {
             \"password\": \"$password\"
          }
       }"
    fi
    
  • 错误详情
  • 描述
  • 解决方案

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新