Central pod stuck in crashloopbackoff with error " failed to configure TLS (unable to add CA to cert pool) "

Solution Verified - Updated -

Issue

  • Central pod stuck in crashloopbackoff with below error message.
 Info: Migrator failed: Could not parse postgres config: cannot parse `host=central-db.stackrox.svc port=5432 user=postgres sslmode=verify-full sslrootcert=/run/secrets/stackrox.io/certs/ca.pem statement_timeout=1.2e+06 pool_min_conns=10 pool_max_conns=90 client_encoding=UTF8 password=xxxxx`: failed to configure TLS (unable to add CA to cert pool)
  • Central CR unable to reconciled the secret PEM details.
'reconciling central-tls secret failed: error generating data for invalid
        (loading CA failed: tls: failed to find any PEM data in certificate input)
        central-tls secret: invalid CA in the existing secret, please delete it to
        allow re-generation: tls: failed to find any PEM data in certificate input'

Environment

  • Red Hat Advanced Cluster Security (RHACS) / StackRox

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