Facing permission issue when creating application using postgres image

Solution Verified - Updated -


  • When postrgres image is used with persistent storage it always fails with below errors :
waiting for server to start....FATAL:  data directory "/var/lib/pgsql/data/userdata" has wrong ownership
HINT:  The server must be started by the user that owns the data directory.
pg_ctl: could not start server
Examine the log output.
 stopped waiting


chmod: changing permissions of '/var/lib/pgsql/data/userdata': Operation not permitted


  • Openshift Container Platform
    • 3.x
    • 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