Skip to content

ERROR: relation "scanner" does not exist in version 4.0.4 #1221

Description

@imaskm

Description of Problem / Feature Request

I am trying to deploy version 4.0.4 on a kubernetes cluster but the clair pod is throwing the error and then goes in "CrashLoopBackOff" state.

Expected Outcome

Pod should be in running state

Actual Outcome

clair pod is in "CrashLoopBackOff" state.
I am using istio as a sidecar which injects a proxy container in the pod
kubectl logs showing the error:

kubectl logs clair-748c59f954-jq24n -c clair 2021/04/06 15:56:04 initialized failed: failed to initialize libindex: failed to register configured scanners: failed to get scanner id for scnr dpkg: ERROR: relation "scanner" does not exist (SQLSTATE 42P01)

Environment

  • Clair version/image: 4.0.4
  • Clair client name/version:
  • Host OS:
  • Kernel (e.g. uname -a):
  • Kubernetes version (use kubectl version): v1.20.4
  • Network/Firewall setup: Istio

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions