Skip to content

Selfmanage Argocd errors with argocd-redis-secret-init #3756

@nickkostov

Description

@nickkostov

Describe the bug

Trying to selfmanage argo results in errors.

❯ argocd app sync argocd

TIMESTAMP                  GROUP                            KIND                 NAMESPACE                  NAME                STATUS    HEALTH        HOOK  MESSAGE
2026-02-25T21:22:31+02:00                                Service                    argocd     argocd-dex-server              OutOfSync  Healthy              
2026-02-25T21:22:31+02:00                             ServiceAccount                argocd  argocd-notifications-controller   OutOfSync                       
2026-02-25T21:22:31+02:00                             ServiceAccount                argocd  argocd-redis-secret-init                                          
2026-02-25T21:22:31+02:00  cert-manager.io            Certificate                   argocd         argocd-server              OutOfSync  Healthy              
2026-02-25T21:22:31+02:00  rbac.authorization.k8s.io        Role                    argocd  argocd-notifications-controller   OutOfSync                       
2026-02-25T21:22:31+02:00   apps                      Deployment                    argocd     argocd-dex-server              OutOfSync  Healthy              
2026-02-25T21:22:31+02:00                                Service                    argocd    argocd-repo-server              OutOfSync  Healthy              
2026-02-25T21:22:31+02:00                              ConfigMap                    argocd  argocd-notifications-cm           OutOfSync                       
2026-02-25T21:22:31+02:00                              ConfigMap                    argocd  argocd-ssh-known-hosts-cm         OutOfSync                       
2026-02-25T21:22:31+02:00                             ServiceAccount                argocd     argocd-dex-server              OutOfSync                       
2026-02-25T21:22:31+02:00   apps                      Deployment                    argocd  argocd-applicationset-controller  OutOfSync  Healthy              
2026-02-25T21:22:31+02:00  batch                             Job                    argocd  argocd-redis-secret-init                     Healthy              
2026-02-25T21:22:31+02:00  rbac.authorization.k8s.io  ClusterRole                           argocd-application-controller     OutOfSync                       
2026-02-25T21:22:31+02:00                              ConfigMap                    argocd  argocd-cmd-params-cm              OutOfSync                       
2026-02-25T21:22:31+02:00                              ConfigMap                    argocd        argocd-rbac-cm              OutOfSync                       
2026-02-25T21:22:31+02:00  rbac.authorization.k8s.io        Role                    argocd  argocd-applicationset-controller  OutOfSync                       
2026-02-25T21:22:31+02:00  rbac.authorization.k8s.io        Role                    argocd     argocd-dex-server              OutOfSync                       
2026-02-25T21:22:31+02:00  rbac.authorization.k8s.io  RoleBinding                   argocd     argocd-dex-server              OutOfSync                       
2026-02-25T21:22:31+02:00  rbac.authorization.k8s.io  RoleBinding                   argocd         argocd-server              OutOfSync                       
2026-02-25T21:22:31+02:00                              ConfigMap                    argocd             argocd-cm              OutOfSync                       
2026-02-25T21:22:31+02:00                              ConfigMap                    argocd    argocd-gpg-keys-cm              OutOfSync                       
2026-02-25T21:22:31+02:00                              ConfigMap                    argocd   argocd-tls-certs-cm              OutOfSync                       
2026-02-25T21:22:31+02:00                                 Secret                    argocd  argocd-notifications-secret       OutOfSync                       
2026-02-25T21:22:31+02:00  apiextensions.k8s.io       CustomResourceDefinition              applications.argoproj.io            Synced   Healthy              
2026-02-25T21:22:31+02:00   apps                      Deployment                    argocd  argocd-notifications-controller   OutOfSync  Healthy              
2026-02-25T21:22:31+02:00                                Service                    argocd  argocd-applicationset-controller  OutOfSync  Healthy              
2026-02-25T21:22:31+02:00                                Service                    argocd         argocd-server              OutOfSync  Healthy              
2026-02-25T21:22:31+02:00                             ServiceAccount                argocd  argocd-applicationset-controller  OutOfSync                       
2026-02-25T21:22:31+02:00  rbac.authorization.k8s.io        Role                    argocd         argocd-server              OutOfSync                       
2026-02-25T21:22:31+02:00  rbac.authorization.k8s.io  RoleBinding                   argocd  argocd-application-controller     OutOfSync                       
2026-02-25T21:22:31+02:00  rbac.authorization.k8s.io  RoleBinding                   argocd    argocd-repo-server              OutOfSync                       
2026-02-25T21:22:31+02:00                                 Secret                    argocd         argocd-secret              OutOfSync                       
2026-02-25T21:22:31+02:00                                Service                    argocd          argocd-redis              OutOfSync  Healthy              
2026-02-25T21:22:31+02:00  apiextensions.k8s.io       CustomResourceDefinition              applicationsets.argoproj.io         Synced   Healthy              
2026-02-25T21:22:31+02:00   apps                      Deployment                    argocd    argocd-repo-server              OutOfSync  Healthy              
2026-02-25T21:22:31+02:00   apps                      Deployment                    argocd         argocd-server              OutOfSync  Healthy              
2026-02-25T21:22:31+02:00   apps                      StatefulSet                   argocd  argocd-application-controller     OutOfSync  Healthy              
2026-02-25T21:22:31+02:00  rbac.authorization.k8s.io  ClusterRole                                  argocd-server              OutOfSync                       
2026-02-25T21:22:31+02:00  rbac.authorization.k8s.io  ClusterRoleBinding                    argocd-application-controller     OutOfSync                       
2026-02-25T21:22:31+02:00                              ConfigMap                    argocd  argocd-redis-health-configmap     OutOfSync                       
2026-02-25T21:22:31+02:00                             ServiceAccount                argocd    argocd-repo-server              OutOfSync                       
2026-02-25T21:22:31+02:00  rbac.authorization.k8s.io  ClusterRoleBinding                           argocd-server              OutOfSync                       
2026-02-25T21:22:31+02:00  rbac.authorization.k8s.io        Role                    argocd  argocd-application-controller     OutOfSync                       
2026-02-25T21:22:31+02:00  rbac.authorization.k8s.io        Role                    argocd  argocd-redis-secret-init                                          
2026-02-25T21:22:31+02:00  rbac.authorization.k8s.io  RoleBinding                   argocd  argocd-applicationset-controller  OutOfSync                       
2026-02-25T21:22:31+02:00  rbac.authorization.k8s.io  RoleBinding                   argocd  argocd-notifications-controller   OutOfSync                       
2026-02-25T21:22:31+02:00                             ServiceAccount                argocd  argocd-application-controller     OutOfSync                       
2026-02-25T21:22:31+02:00                             ServiceAccount                argocd         argocd-server              OutOfSync                       
2026-02-25T21:22:31+02:00  apiextensions.k8s.io       CustomResourceDefinition              appprojects.argoproj.io             Synced   Healthy              
2026-02-25T21:22:31+02:00   apps                      Deployment                    argocd          argocd-redis              OutOfSync  Healthy              
2026-02-25T21:22:31+02:00  rbac.authorization.k8s.io  ClusterRole                           argocd-notifications-controller   OutOfSync                       
2026-02-25T21:22:31+02:00  rbac.authorization.k8s.io  ClusterRoleBinding                    argocd-notifications-controller   OutOfSync                       
2026-02-25T21:22:31+02:00  rbac.authorization.k8s.io        Role                    argocd    argocd-repo-server              OutOfSync                       
2026-02-25T21:22:31+02:00  rbac.authorization.k8s.io  RoleBinding                   argocd  argocd-redis-secret-init                                          
2026-02-25T21:22:38+02:00  rbac.authorization.k8s.io        Role          argocd  argocd-redis-secret-init    Failed  SyncFailed     PreSync  roles.rbac.authorization.k8s.io "argocd-redis-secret-init" already exists
2026-02-25T21:22:38+02:00  rbac.authorization.k8s.io  RoleBinding         argocd  argocd-redis-secret-init    Failed  SyncFailed     PreSync  rolebindings.rbac.authorization.k8s.io "argocd-redis-secret-init" already exists
2026-02-25T21:22:38+02:00  batch                             Job          argocd  argocd-redis-secret-init   Running   Synced        PreSync  job.batch/argocd-redis-secret-init created
2026-02-25T21:22:38+02:00                             ServiceAccount      argocd  argocd-redis-secret-init   Running   Synced        PreSync  serviceaccount/argocd-redis-secret-init created

Name:               argocd/argocd
Project:            argocd
Server:             https://kubernetes.default.svc
Namespace:          argocd
URL:                https://argocd.range.local/applications/argocd
Source:
- Repo:             https://github.com/nickkostov/homelab
  Target:           HEAD
  Path:             clusters/homelab/manifests/baseline/argocd/chart
  Helm Values:      values.yaml
SyncWindow:         Sync Allowed
Sync Policy:        Manual
Sync Status:        OutOfSync from HEAD (3b332c4)
Health Status:      Healthy

Operation:          Sync
Sync Revision:      3b332c4d1192820faa82db09c4a8393d745b52c7
Phase:              Failed
Start:              2026-02-25 21:22:30 +0200 EET
Finished:           2026-02-25 21:22:38 +0200 EET
Duration:           8s
Message:            one or more objects failed to apply, reason: roles.rbac.authorization.k8s.io "argocd-redis-secret-init" already exists,rolebindings.rbac.authorization.k8s.io "argocd-redis-secret-init" already exists

GROUP                      KIND                      NAMESPACE  NAME                              STATUS     HEALTH      HOOK     MESSAGE
                           ServiceAccount            argocd     argocd-redis-secret-init          Running    Synced      PreSync  serviceaccount/argocd-redis-secret-init created
rbac.authorization.k8s.io  Role                      argocd     argocd-redis-secret-init          Failed     SyncFailed  PreSync  roles.rbac.authorization.k8s.io "argocd-redis-secret-init" already exists
rbac.authorization.k8s.io  RoleBinding               argocd     argocd-redis-secret-init          Failed     SyncFailed  PreSync  rolebindings.rbac.authorization.k8s.io "argocd-redis-secret-init" already exists
batch                      Job                       argocd     argocd-redis-secret-init          Running    Synced      PreSync  job.batch/argocd-redis-secret-init created
                           ConfigMap                 argocd     argocd-cm                         OutOfSync                       
                           ConfigMap                 argocd     argocd-cmd-params-cm              OutOfSync                       
                           ConfigMap                 argocd     argocd-gpg-keys-cm                OutOfSync                       
                           ConfigMap                 argocd     argocd-notifications-cm           OutOfSync                       
                           ConfigMap                 argocd     argocd-rbac-cm                    OutOfSync                       
                           ConfigMap                 argocd     argocd-redis-health-configmap     OutOfSync                       
                           ConfigMap                 argocd     argocd-ssh-known-hosts-cm         OutOfSync                       
                           ConfigMap                 argocd     argocd-tls-certs-cm               OutOfSync                       
                           Secret                    argocd     argocd-notifications-secret       OutOfSync                       
                           Secret                    argocd     argocd-secret                     OutOfSync                       
                           Service                   argocd     argocd-applicationset-controller  OutOfSync  Healthy              
                           Service                   argocd     argocd-dex-server                 OutOfSync  Healthy              
                           Service                   argocd     argocd-redis                      OutOfSync  Healthy              
                           Service                   argocd     argocd-repo-server                OutOfSync  Healthy              
                           Service                   argocd     argocd-server                     OutOfSync  Healthy              
                           ServiceAccount            argocd     argocd-application-controller     OutOfSync                       
                           ServiceAccount            argocd     argocd-applicationset-controller  OutOfSync                       
                           ServiceAccount            argocd     argocd-dex-server                 OutOfSync                       
                           ServiceAccount            argocd     argocd-notifications-controller   OutOfSync                       
                           ServiceAccount            argocd     argocd-repo-server                OutOfSync                       
                           ServiceAccount            argocd     argocd-server                     OutOfSync                       
apiextensions.k8s.io       CustomResourceDefinition             applications.argoproj.io          Synced     Healthy              
apiextensions.k8s.io       CustomResourceDefinition             applicationsets.argoproj.io       Synced     Healthy              
apiextensions.k8s.io       CustomResourceDefinition             appprojects.argoproj.io           Synced     Healthy              
apps                       Deployment                argocd     argocd-applicationset-controller  OutOfSync  Healthy              
apps                       Deployment                argocd     argocd-dex-server                 OutOfSync  Healthy              
apps                       Deployment                argocd     argocd-notifications-controller   OutOfSync  Healthy              
apps                       Deployment                argocd     argocd-redis                      OutOfSync  Healthy              
apps                       Deployment                argocd     argocd-repo-server                OutOfSync  Healthy              
apps                       Deployment                argocd     argocd-server                     OutOfSync  Healthy              
apps                       StatefulSet               argocd     argocd-application-controller     OutOfSync  Healthy              
cert-manager.io            Certificate               argocd     argocd-server                     OutOfSync  Healthy              
rbac.authorization.k8s.io  ClusterRole                          argocd-application-controller     OutOfSync                       
rbac.authorization.k8s.io  ClusterRole                          argocd-notifications-controller   OutOfSync                       
rbac.authorization.k8s.io  ClusterRole                          argocd-server                     OutOfSync                       
rbac.authorization.k8s.io  ClusterRoleBinding                   argocd-application-controller     OutOfSync                       
rbac.authorization.k8s.io  ClusterRoleBinding                   argocd-notifications-controller   OutOfSync                       
rbac.authorization.k8s.io  ClusterRoleBinding                   argocd-server                     OutOfSync                       
rbac.authorization.k8s.io  Role                      argocd     argocd-application-controller     OutOfSync                       
rbac.authorization.k8s.io  Role                      argocd     argocd-applicationset-controller  OutOfSync                       
rbac.authorization.k8s.io  Role                      argocd     argocd-dex-server                 OutOfSync                       
rbac.authorization.k8s.io  Role                      argocd     argocd-notifications-controller   OutOfSync                       
rbac.authorization.k8s.io  Role                      argocd     argocd-repo-server                OutOfSync                       
rbac.authorization.k8s.io  Role                      argocd     argocd-server                     OutOfSync                       
rbac.authorization.k8s.io  RoleBinding               argocd     argocd-application-controller     OutOfSync                       
rbac.authorization.k8s.io  RoleBinding               argocd     argocd-applicationset-controller  OutOfSync                       
rbac.authorization.k8s.io  RoleBinding               argocd     argocd-dex-server                 OutOfSync                       
rbac.authorization.k8s.io  RoleBinding               argocd     argocd-notifications-controller   OutOfSync                       
rbac.authorization.k8s.io  RoleBinding               argocd     argocd-repo-server                OutOfSync                       
rbac.authorization.k8s.io  RoleBinding               argocd     argocd-server                     OutOfSync                       
{"level":"fatal","msg":"Operation has completed with phase: Failed","time":"2026-02-25T21:22:41+02:00"}

Related helm chart

argo-cd

Helm chart version

9.4.4

To Reproduce

I first install argocd with:

helm install argocd argo/argo-cd \
  -n argocd \
  --create-namespace \
  -f argocd-values.yaml

then try to selfmange by creating app of apps
for some reason it results in errors

Expected behavior

selfmanage argocd

Screenshots

Image

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    argo-cdbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions