The insights-client service fails with "OSError: [Errno 22] Invalid argument" error.

Solution Verified - Updated -

Issue

  • The insights-client service fails with OSError: [Errno 22] Invalid argument error.
  • Updating insights-client package fails with the following error:

    error: lsetfilecon: (46 /var/cache/insights, system_u:object_r:insights_client_cache_t:s0) Invalid argument
    error: Plugin selinux: hook fsm_file_prepare failed
    

Environment

  • Red Hat Enterprise Linux
  • Red Hat Lightspeed
  • insights-client

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