Red Hat Capsule services fail with error: could not access directory "/var/lib/pgsql/data": Permission denied

Solution Verified - Updated -

Issue

  • Services on Red Hat Capsule fails with:

    2025-08-08 21:43:07 [ERROR ] [configure] Aug 08 21:43:07 hostname.example.com systemd[1]: Starting PostgreSQL database server...
    2025-08-08 21:43:07 [ERROR ] [configure] Aug 08 21:43:07 hostname.example.com postmaster[789980]: postmaster: could not access directory "/var/lib/pgsql/data": Permission denied
    2025-08-08 21:43:07 [ERROR ] [configure] Aug 08 21:43:07 hostname.example.com systemd[1]: postgresql.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
    2025-08-08 21:43:07 [ERROR ] [configure] Aug 08 21:43:07 hostname.example.com systemd[1]: postgresql.service: Failed with result 'exit-code'.
    2025-08-08 21:43:07 [ERROR ] [configure] Aug 08 21:43:07 hostname.example.com systemd[1]: Failed to start PostgreSQL database server.
    

Environment

  • Red Hat Capsule 6.16

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