Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The sync status of the application and git is stuck at unknown due to an error in the repo server #19920

Closed
derekcha opened this issue Sep 13, 2024 · 3 comments
Labels
bug Something isn't working component:git Interaction with GitHub, Gitlab etc component:repo-server

Comments

@derekcha
Copy link

Checklist:

  • [V] I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
  • [V] I've included steps to reproduce the bug.
  • [V] I've pasted the output of argocd version.

Describe the bug

I tried upgrading from ArgoCD chart 7.3.11 to 7.4.4. However, after the upgrade, when I accessed ArgoCD, the sync status of all applications was stuck in Unknown status.
So I checked the log of argocd repo server, and the error log was output as below.

I thought it was a problem with the 7.4.4 chart only, so I upgraded to 7.5.2, but the same problem occurred. I think the same problem occurred when the Application Version became v2.12.X.

To Reproduce

  1. Upgrade argo-cd to helm 7.4.4 version
  2. Check argocd

Expected behavior

Normal sync status with git repository is tracked.

Screenshots
스크린샷 2024-09-11 오후 5 41 50

Version

v2.12.1

Logs

time="2024-09-11T08:39:26Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Check grpc.service=grpc.health.v1.Health grpc.start_time="2024-09-11T08:39:26Z" grpc.time_ms=0.018 span.kind=server system=grpc
time="2024-09-11T08:39:27Z" level=error msg="finished unary call with code Unknown" error="authentication required" grpc.code=Unknown grpc.method=GenerateManifest grpc.service=repository.RepoServerService grpc.start_time="2024-09-11T08:39:24Z" grpc.time_ms=2215.417 span.kind=server system=grpc
time="2024-09-11T08:39:27Z" level=error msg="finished unary call with code Unknown" error="authentication required" grpc.code=Unknown grpc.method=GenerateManifest grpc.service=repository.RepoServerService grpc.start_time="2024-09-11T08:39:27Z" grpc.time_ms=210.566 span.kind=server system=grpc
time="2024-09-11T08:39:28Z" level=error msg="finished unary call with code Unknown" error="authentication required" grpc.code=Unknown grpc.method=GenerateManifest grpc.service=repository.RepoServerService grpc.start_time="2024-09-11T08:39:24Z" grpc.time_ms=3215.644 span.kind=server system=grpc
time="2024-09-11T08:39:29Z" level=error msg="finished unary call with code Unknown" error="authentication required" grpc.code=Unknown grpc.method=GenerateManifest grpc.service=repository.RepoServerService grpc.start_time="2024-09-11T08:39:26Z" grpc.time_ms=3214.31 span.kind=server system=grpc
time="2024-09-11T08:39:29Z" level=error msg="Failed to get git client for repo https://github.com/dunamu-fd/kubekube-dev: authentication required"
time="2024-09-11T08:39:29Z" level=error msg="finished unary call with code Unknown" error="failed to get git client for repo https://github.com/{My Repository}" grpc.code=Unknown grpc.method=GenerateManifest grpc.service=repository.RepoServerService grpc.start_time="2024-09-11T08:39:28Z" grpc.time_ms=1303.294 span.kind=server system=grpc
@derekcha derekcha added the bug Something isn't working label Sep 13, 2024
@alesz
Copy link

alesz commented Sep 13, 2024

check if your repo secret contains project key or application is assigned to different project than referenced in secret

@reggie-k reggie-k added component:git Interaction with GitHub, Gitlab etc component:repo-server labels Sep 15, 2024
@blakepettersson
Copy link
Member

Indeed, as alesz says it could be a permutation of #19587

@derekcha
Copy link
Author

@alesz @blakepettersson
I looked at the advice and links you gave and fixed the problem by modifying the secret containing the repo information (removing the project specification part). Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component:git Interaction with GitHub, Gitlab etc component:repo-server
Projects
None yet
Development

No branches or pull requests

4 participants