On Red Hat Satellite or Capsule 6 server satellite-installer command fails with error Directory /var/lib/pgsql/data is missing or empty.

Solution Verified - Updated -

Issue

  • The satellite-installer command fails with the following postgresql error.

    2023-06-30 10:58:11 [ERROR ] [configure] Jun 30 10:58:11 satellite.example.com systemd[1]: Starting PostgreSQL database server...
    2023-06-30 10:58:11 [ERROR ] [configure] Jun 30 10:58:11 satellite.example.com postgresql-check-db-dir[631951]: Directory "/var/lib/pgsql/data" is missing or empty.
    2023-06-30 10:58:11 [ERROR ] [configure] Jun 30 10:58:11 satellite.example.com postgresql-check-db-dir[631951]: Use "/usr/bin/postgresql-setup --initdb"
    

Environment

  • Red Hat Satellite 6
  • Red Hat Capsule 6

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