argoproj-labs / argocd-autopilot

Argo-CD Autopilot
https://argocd-autopilot.readthedocs.io/en/stable/
Apache License 2.0
884 stars 119 forks source link

Cannot boostrap after uninstall #203

Open tetienne opened 2 years ago

tetienne commented 2 years ago

I forgot to hide the --insecure flag when boostraping the project through argocd-autopilot repo bootstrap. So as I didn’t know how exactly override the argocd configuration (to add this insecure parameter and an ingress controller by the way), I decited to uninstall the project: argocd-autopilot repo uninstall

But now I got the follow error:

❯ argocd-autopilot repo bootstrap
INFO cloning repo: https://github.com/tetienne/poc-argocd.git
Enumerating objects: 6, done.
Counting objects: 100% (6/6), done.
Compressing objects: 100% (2/2), done.
Total 6 (delta 0), reused 6 (delta 0), pack-reused 0
INFO using revision: "", installation path: ""
FATAL folder bootstrap already exist in: /bootstrap

And if I add the --insecure flag

❯ argocd-autopilot repo bootstrap --insecure
FATAL failed to build bootstrap manifests: accumulating resources: accumulation err='accumulating resources from 'manifests/insecure': evalsymlink failure on '/Users/tetienne/terraform/lke-cluster/auto-pilot2219698398/manifests/insecure' : lstat /Users/tetienne/terraform/lke-cluster/auto-pilot2219698398/manifests: no such file or directory': evalsymlink failure on '/Users/tetienne/terraform/lke-cluster/auto-pilot2219698398/manifests/insecure' : lstat /Users/tetienne/terraform/lke-cluster/auto-pilot2219698398/manifests: no such file or directory

Any idea why?

zdxn commented 2 years ago

Having this issue as well, unable to install with the --insecure flag set.

danielm-codefresh commented 2 years ago

I'll take this

danielm-codefresh commented 2 years ago

Hey @tetienne, can you please check if this issue still exists for you?

bbigras commented 2 years ago

I have a similar problem:

❯ ./cmd repo bootstrap
FATAL failed to build bootstrap manifests: accumulating resources: accumulation err='accumulating resources from 'manifests/base': evalsymlink failure on '/home/bbigras/go/src/github.com/argoproj-labs/argocd-aut
opilot/cmd/auto-pilot506658922/manifests/base' : lstat /home/bbigras/go/src/github.com/argoproj-labs/argocd-autopilot/cmd/auto-pilot506658922/manifests: no such file or directory': evalsymlink failure on '/home/bbigras/go/src/github.com/argoproj-labs/argocd-autopilot/cmd/auto-pilot506658922/manifests/base' : lstat /home/bbigras/go/src/github.com/argoproj-labs/argocd-autopilot/cmd/auto-pilot506658922/manifests: no such file or directory
bryanasdev000 commented 2 years ago

In our case (NixOS), the problem was a typo in installationManifestsURL (https://github.com/argoproj-labs/argocd-autopilot/blob/main/Makefile#L8), when in doubt add --app and a manifest URL to test it.