argoproj / argo-cd

Declarative Continuous Deployment for Kubernetes
https://argo-cd.readthedocs.io
Apache License 2.0
18.01k stars 5.49k forks source link

Argocd restore from backup not working #16225

Open nitinkeswani opened 1 year ago

nitinkeswani commented 1 year ago

Discussed in https://github.com/argoproj/argo-cd/discussions/16155

Originally posted by **nitinkeswani** October 30, 2023 Hi, Am trying to take a backup of argocd using the command : argocd admin -n argocd export > backup.yaml and then trying to restore argocd from this backup using the command : argocd admin -n argocd import - < backup.yaml. In both the above scenarios am logging into argocd before running the export and import command. However when running the import command am getting the following error : **FATA[0001] the server could not find the requested resource** Argo CD Version : v2.7.4+a33baa3.dirty Am not sure what is missing. Any assistance is much appreciated. Thanks
shyukri commented 1 year ago

Can you increase log level and post them here ?

nitinkeswani commented 1 year ago

@shyukri I changed the log level to debug (default is info) and ran the below command, I still get the same one line error message. Any help would be much appreciated

Command : argocd --loglevel debug admin -n argocd import - < backup.yaml

Error : FATA[0001] the server could not find the requested resource

sudhirkumarnayak commented 11 months ago

argocd --loglevel debug admin -n argocd import - < argocd-backup-2023-12-18_19:22.yml

/ConfigMap argocd-cm updated /ConfigMap argocd-rbac-cm updated /ConfigMap argocd-ssh-known-hosts-cm updated /ConfigMap argocd-tls-certs-cm updated /Secret argocd-secret updated argoproj.io/Application argotestapp created

I am also facing import issues. I got above output, still import does not work

reggie-k commented 2 months ago

Do those issues persist in ArgoCD supported versions (2.9 - 2.12)?