Skip to content

Kubernetes Postgres pod - cannot create directory: Permission denied #22033

Answered by bdunne
kTipSSIoYv asked this question in Q&A
Discussion options

You must be logged in to vote

This is usually due to the PV permissions being too restrictive (something like root/root 700). Since the postgres container runs as the postgres user (id 26) it doesn't have permissions to write in this case. I'd recommend making the permissions less restrictive on the PV (chmod 777 should work).

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@kTipSSIoYv
Comment options

@kTipSSIoYv
Comment options

@kTipSSIoYv
Comment options

@kTipSSIoYv
Comment options

@bdunne
Comment options

Answer selected by kTipSSIoYv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants