Skip to content

argocd app logs [app] --follow no longer works in ArgoCD 2.3.1 #8947

@todaywasawesome

Description

@todaywasawesome

Checklist:

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

Describe the bug

argocd app logs [app] --follow no longer works in ArgoCD 2.3.1

After initially displaying output, around 30 seconds it will fail with an rpc code.
FATA[0032] stream read failed: rpc error: code = Unknown desc = net/http: request canceled (Client.Timeout or context cancellation while reading body)

This is in both the CLI and the UI.

To Reproduce

  • Install Argo CD 2.3.1
  • Try to stream logs with argocd app logs [app] --follow
  • Wait ~30 seconds

Expected behavior

Following logs should continue to work.

Screenshots
Screen Shot 2022-03-30 at 11 50 19 AM

Version

argocd version                   
argocd: v2.3.3+07ac038.dirty
  BuildDate: 2022-03-30T05:14:36Z
  GitCommit: 07ac038a8f97a93b401e824550f0505400a8c84e
  GitTreeState: dirty
  GoVersion: go1.18
  Compiler: gc
  Platform: darwin/arm64
argocd-server: v2.3.1+b65c169
  BuildDate: 2022-03-10T22:51:09Z
  GitCommit: b65c1699fa2a2daa031483a3890e6911eac69068
  GitTreeState: clean
  GoVersion: go1.17.6
  Compiler: gc
  Platform: linux/amd64
  Ksonnet Version: v0.13.1
  Kustomize Version: v4.4.1 2021-11-11T23:36:27Z
  Helm Version: v3.8.0+gd141386
  Kubectl Version: v0.23.1
  Jsonnet Version: v0.18.0

Logs

:"argoproj.io/v1alpha1","resourceVersion":"55685256"}, "reason": "unchanged", "message": "unchanged Application \"elite-cluster-longhorn\""}
time="2022-03-30T17:45:43Z" level=info msg="unchanged Application" app=elite-cluster-nginx-ingress appSet=elite-cluster
1.6486623438576424e+09	DEBUG	events	Normal	{"object": {"kind":"ApplicationSet","namespace":"argocd","name":"elite-cluster","uid":"d22d39bd-1d94-49ed-ad82-38c392fd2c78","apiVersion":"argoproj.io/v1alpha1","resourceVersion":"55685256"}, "reason": "unchanged", "message": "unchanged Application \"elite-cluster-nginx-ingress\""}
time="2022-03-30T17:45:43Z" level=info msg="unchanged Application" app=elite-cluster-prometheus appSet=elite-cluster
1.6486623438592565e+09	DEBUG	events	Normal	{"object": {"kind":"ApplicationSet","namespace":"argocd","name":"elite-cluster","uid":"d22d39bd-1d94-49ed-ad82-38c392fd2c78","apiVersion":"argoproj.io/v1alpha1","resourceVersion":"55685256"}, "reason": "unchanged", "message": "unchanged Application \"elite-cluster-prometheus\""}
time="2022-03-30T17:45:43Z" level=info msg="unchanged Application" app=elite-cluster-system-upgrade-controller appSet=elite-cluster
1.648662343859787e+09	DEBUG	events	Normal	{"object": {"kind":"ApplicationSet","namespace":"argocd","name":"elite-cluster","uid":"d22d39bd-1d94-49ed-ad82-38c392fd2c78","apiVersion":"argoproj.io/v1alpha1","resourceVersion":"55685256"}, "reason": "unchanged", "message": "unchanged Application \"elite-cluster-system-upgrade-controller\""}
time="2022-03-30T17:45:43Z" level=info msg="unchanged Application" app=elite-cluster-cert-manager appSet=elite-cluster
1.6486623438601198e+09	DEBUG	events	Normal	{"object": {"kind":"ApplicationSet","namespace":"argocd","name":"elite-cluster","uid":"d22d39bd-1d94-49ed-ad82-38c392fd2c78","apiVersion":"argoproj.io/v1alpha1","resourceVersion":"55685256"}, "reason": "unchanged", "message": "unchanged Application \"elite-cluster-cert-manager\""}
time="2022-03-30T17:45:43Z" level=info msg="unchanged Application" app=elite-cluster-metallb appSet=elite-cluster
1.648662343860343e+09	DEBUG	events	Normal	{"object": {"kind":"ApplicationSet","namespace":"argocd","name":"elite-cluster","uid":"d22d39bd-1d94-49ed-ad82-38c392fd2c78","apiVersion":"argoproj.io/v1alpha1","resourceVersion":"55685256"}, "reason": "unchanged", "message": "unchanged Application \"elite-cluster-metallb\""}
time="2022-03-30T17:45:43Z" level=info msg="end reconcile" requeueAfter=20s
time="2022-03-30T17:45:43Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Check grpc.request.deadline="2022-03-30T17:46:43Z" grpc.service=grpc.health.v1.Health grpc.start_time="2022-03-30T17:45:43Z" grpc.time_ms=0.041 span.kind=server system=grpc
FATA[0032] stream read failed: rpc error: code = Unknown desc = net/http: request canceled (Client.Timeout or context cancellation while reading body) 

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions