argoproj / argo-cd

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

argocd-repo-server gpg --no-permission-warning #18502

Open zhj-hx opened 4 months ago

zhj-hx commented 4 months ago

argocd 2.9.11 argocd-repo-server cannot be started and reports an error Version

argocd v2.9.11+91bb155

Logs

Defaulted container "argocd-repo-server" out of: argocd-repo-server, copyutil (init)
time="2024-06-05T03:06:52Z" level=info msg="ArgoCD Repository Server is starting" built="2024-04-04T23:59:39Z" commit=91bb155ed200c33093d368c2c9d74a914e93356c port=8081 version=v2.9.11+91bb155
time="2024-06-05T03:06:52Z" level=info msg="Generating self-signed TLS certificate for this session"
time="2024-06-05T03:06:52Z" level=info msg="Initializing GnuPG keyring at /app/config/gpg/keys"
time="2024-06-05T03:06:52Z" level=info msg="gpg --no-permission-warning --logger-fd 1 --batch --gen-key /tmp/gpg-key-recipe2582822878" dir= execID=37a32
time="2024-06-05T03:06:58Z" level=error msg="`gpg --no-permission-warning --logger-fd 1 --batch --gen-key /tmp/gpg-key-recipe2582822878` failed exit status 2" execID=37a32
time="2024-06-05T03:06:58Z" level=info msg=Trace args="[gpg --no-permission-warning --logger-fd 1 --batch --gen-key /tmp/gpg-key-recipe2582822878]" dir= operation_name="exec gpg" time_ms=6005.797186
time="2024-06-05T03:06:58Z" level=fatal msg="`gpg --no-permission-warning --logger-fd 1 --batch --gen-key /tmp/gpg-key-recipe2582822878` failed exit status 2"
zhj-hx commented 4 months ago

Is this problem related to the kubernetes version? I currently have this problem in kubernetes v1.20, and it is normal in kubernetes v1.26 and v1.27...

Is there a matching relationship between argocd and kubernetes versions?

agaudreault commented 3 months ago

Hey @zhj-hx , perhaps you can try running gpg inside the container manually to have more details than the exit code. GNUPGHOME=/app/config/gpg/keys gpg ...

Also make sure this path is mounted in your container.