trivy-operator: unexpected EOF

What steps did you take and what happened: I’m getting a quite a lot of reconciler errors in the trivy-operator log. When the error occurs the scan-vulnerability job has a Completed status but is never cleaned up and no vulnerability report is created. I don’t think it is related to the image since a rerun sometimes works.

Thanks.

1.6660767565583582e+09    ERROR   Reconciler error        {"controller": "job", "controllerGroup": "batch", "controllerKind": "Job", "Job": {"name":"scan-vulnerabilityreport-bb4cd84bb","namespace":"core-trivy-operator"}, "namespace": "core-trivy-operator", "name": "scan-vulnerabilityreport-bb4cd84bb", "reconcileID": "c9be99c0-bc9e-4f76-921a-8342371a8556", "error": "unexpected EOF"}
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
        /home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.13.0/pkg/internal/controller/controller.go:326
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
        /home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.13.0/pkg/internal/controller/controller.go:273
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
        /home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.13.0/pkg/internal/controller/controller.go:234

Anything else you would like to add:

Might be the same problem as described here https://github.com/aquasecurity/starboard/issues/1031

Environment:

  • Trivy-Operator version (use trivy-operator version): 0.3.0
  • Kubernetes version (use kubectl version): v1.23.9-gke.900
  • OS (macOS 10.15, Windows 10, Ubuntu 19.10 etc): macOS 10.15

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15

Most upvoted comments

@chen-keinan apologies for my late response. It seems to be running more stable now with the compression disabled, so let’s close it for now 🙂

@chen-keinan thanks. I haven’t got around to test it yet. Hopefully I can take a look at it later today or next week