Skip to content

mkdir: cannot create directory '/var/lib/pgsql/data/userdata': Permission denied #17714

Description

@coreydaley

Looks like maybe an issue writing to the persistent volume.

https://ci.openshift.redhat.com/jenkins/job/test_branch_origin_extended_image_ecosystem/314/testReport/junit/(root)/Extended/_image_ecosystem__postgresql__Slow__local__openshift_postgresql_replication__postgresql_replication_works_for_postgresql_9_2__Suite_openshift_/

Version

oc v3.6.0-rc.0+d1561b6-2902
kubernetes v1.8.1+0d5291c
features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://192.168.50.14:8443
openshift v3.6.0-rc.0+d1561b6-2902
kubernetes v1.8.1+0d5291c

Steps To Reproduce
  1. oc new-app -f https://raw.githubusercontent.com/sclorg/postgresql-container/master/examples/replica/postgresql_replica.json -p IMAGESTREAMTAG=postgresql:9.2
  2. [step 2]
Current Result

mkdir: cannot create directory '/var/lib/pgsql/data/userdata': Permission denied
Application is not exposed. You can expose services to the outside world by executing one or more of the commands below:
'oc expose svc/postgresql-master'
'oc expose svc/postgresql-slave'

Expected Result
Additional Information

[try to run $ oc adm diagnostics (or oadm diagnostics) command if possible]
[if you are reporting issue related to builds, provide build logs with BUILD_LOGLEVEL=5]
[consider attaching output of the $ oc get all -o json -n <namespace> command to the issue]
[visit https://docs.openshift.org/latest/welcome/index.html]

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions