Clair pods report ctxlock error

Solution Verified - Updated -

Issue

Clair logs report lock failed when debug mode is enabled:

{"level":"debug","component":"libvuln/updates/Manager.Run","error":"ctxlock: lock acquisition failed","key":"garbage-collection","time":"2022-12-13T07:32:38Z","message":"lock failed"}
{"level":"debug","component":"libvuln/updates/Manager.Run","error":"context canceled","time":"2022-12-13T07:32:38Z","message":"lock context canceled, garbage collection already running"}
{"level":"debug","component":"libvuln/updates/Manager.Run","error":"ctxlock: lock acquisition failed","key":"garbage-collection","time":"2022-12-13T08:02:56Z","message":"lock failed"}
{"level":"debug","component":"libvuln/updates/Manager.Run","error":"context canceled","time":"2022-12-13T08:02:56Z","message":"lock context canceled, garbage collection already running"}

Environment

  • Red Hat Quay 3.x
  • Clair 4.x

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