Clair container fails to start with error: failed to initialize notifier on RHEL 8

Solution Verified - Updated -

Issue

  • Experience error when trying to set up clairv4 as a container with podman:

    {"level":"error","component":"main","error":"service initialization failed: failed to initialize notifier: failed to connect to `host=/tmp user=nobody database=`: dial error (dial unix /tmp/.s.PGSQL.5432: connect: no such file or directory)","time":"2023-02-07T09:35:29Z","message":"fatal error"}
    

Environment

  • Red Hat Quay (Quay)
    • 3
  • Red Hat Enterprise Linux (RHEL)
    • 8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content