UNCLASSIFIED - NO CUI

argocd-repo-server component fails

The argocd-repo-server component fails, it seems a script cannot be referenced, see below for log output:

time="2020-10-05T17:04:44Z" level=info msg="Initializing GnuPG keyring at /app/config/gpg/keys"
time="2020-10-05T17:04:44Z" level=info msg="gpg --no-permission-warning --logger-fd 1 --batch --generate-key /tmp/gpg-key-recipe237538545" dir= execID=4IR1S
time="2020-10-05T17:04:44Z" level=info msg="Populating GnuPG keyring with keys from /app/config/gpg/source"
time="2020-10-05T17:04:44Z" level=info msg="gpg --no-permission-warning --list-public-keys" dir= execID=yKf25
time="2020-10-05T17:04:44Z" level=info msg="gpg --no-permission-warning -a --export DDC2FAD24E3972B6" dir= execID=DWhYk
time="2020-10-05T17:04:44Z" level=info msg="gpg-wrapper.sh --no-permission-warning --list-secret-keys DDC2FAD24E3972B6" dir= execID=XMTCb
time="2020-10-05T17:04:44Z" level=fatal msg="exec: \"gpg-wrapper.sh\": executable file not found in $PATH"

From the official/public dockerfile I believe this section below is what makes it available:

COPY hack/git-ask-pass.sh /usr/local/bin/git-ask-pass.sh
COPY hack/gpg-wrapper.sh /usr/local/bin/gpg-wrapper.sh
COPY hack/git-verify-wrapper.sh /usr/local/bin/git-verify-wrapper.sh

In the case of repo1, it seems theres a dockerfile entry that copies everything from scripts/* to /usr/local/bin. Strangely enough its not there. I've modified the entrypoint to just list the contents of /usr/local/bin and some files are missing:

drwxr-xr-x. 1 root root     4096 Sep 21 20:05 .
drwxr-xr-x. 1 root root       32 Sep 21 19:57 ..
-rwxr-xr-x. 1 root root 72270459 Sep 19 00:52 argocd
-rwxr-xr-x. 1 root root 70449351 Sep 19 00:52 argocd-application-controller
-rwxr-xr-x. 1 root root 71643456 Sep 19 00:54 argocd-darwin-amd64
-rwxr-xr-x. 1 root root 63395297 Sep 19 00:52 argocd-repo-server
-rwxr-xr-x. 1 root root 77603683 Sep 19 00:52 argocd-server
-rwxr-xr-x. 1 root root 71543193 Sep 19 00:52 argocd-util
-rwxr-xr-x. 1 root root 72091648 Sep 19 00:56 argocd-windows-amd64.exe
lrwxrwxrwx. 1 root root       37 Sep 21 20:05 aws -> /usr/local/aws-cli/v2/current/bin/aws
lrwxrwxrwx. 1 root root       47 Sep 21 20:05 aws_completer -> /usr/local/aws-cli/v2/current/bin/aws_completer
-rwxr-xr-x. 1 root root      295 Sep 19 00:40 git-ask-pass.sh
-rwxr-xr-x. 1 root root 40378368 Sep 19 00:42 helm
-rwxr-xr-x. 1 root root 38789120 Sep 19 00:42 helm2
-rwxr-xr-x. 1 root root 67363768 Sep 19 00:42 ks
-rwxr-xr-x. 1 root root 43503616 Sep 19 00:42 kubectl
-rwxr-xr-x. 1 root root 40595456 May 27 20:51 kustomize
-rwxr-xr-x. 1 root root      377 Sep 21 19:45 uid_entrypoint.sh

I have no idea why uid_entrypoint.sh and git-ask-pass.sh are there but not the others. based on that COPY scripts/* entry they should all be there. I will try to look further into this.

Edited by jperez2
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information