Unable to login with admin password or reset devtron admin password

Unable to login with admin password or reset devtron admin password

Debug:

Run the command for admin credentials and use it for login in dashboard:
  1. kubectl -n devtroncd get secret devtron-secret -o jsonpath='{.data.ADMIN_PASSWORD}' | base64 -d
If you are getting an error message of "invalid username or password" or you want to "reset admin password", follow the steps given below:

Solution:

1. Make sure you are on latest version or atleast you are using devtron version v0.6.9 or above. You can check your devtron version using
  1. kubectl -n devtroncd get installers installer-devtron -o jsonpath='{.status.sync.data}' | grep "^LTAG=" | cut -d"=" -f2-
2. Take a backup of devtron secret using
  1. kubectl get secret devtron-secret -n devtroncd -o yaml > devtron-secret-backup.yaml
3. Edit devtron secret using
  1. kubectl edit secret devtron-secret -n devtroncd
    and remove the key value pairs of ADMIN_PASSWORD, admin.password and admin.passwordMtime

4. Restart argocd dex server to create new admin password for devtron using
  1. kubectl delete po -n devtroncd -l app.kubernetes.io/name=argocd-dex-server
Run the command given above to get the new admin password



    • Related Articles

    • After installing Devtron using Helm, getting the admin password does not work.(if using windows)

      Debug: 'base64' is not recognized as an internal or external command, operable program or batch file. Solution: The first way to debug is either install base64 encode and decode into your windows machine and use the appropriate cmd to get the admin ...
    • Getting UPGRADE FAILED: cannot patch "postgresql-postgresql" while upgrading Devtron to newer versions

      Debug: Make sure to annotate and label all the Devtron resources. Description of error Error: UPGRADE FAILED: cannot patch "postgresql-postgresql" with kind StatefulSet: StatefulSet.apps "postgresql-postgresql" is invalid: spec: Forbidden: updates to ...
    • Devtron Enterprise DT-36 Release Note

      The latest release of Devtron is here, with new features and enhancements. Here's a summary of the DT-36 release and related updates. Highlights: Provision EKS Cluster Through Devtron Devtron now allows you to provision Amazon EKS Kubernetes clusters ...
    • Opening a Support Ticket with Devtron

      This guide provides step-by-step instructions for opening a support ticket with Devtron from Dashboard. By following these steps, you can easily log issues, track concerns, and receive timely assistance from the Devtron support team. Prerequisites ...
    • Devtron Enterprise DT-33 Release Note

      The latest release of Devtron is here, with new features and enhancements. Here's a summary of the DT-33 release and related updates. Highlights: Exception in Configuration Approval Policies (Beta) When urgent releases are needed, teams often face ...