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