Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

[stable/postgresql/] ‘/bitnami/postgresql/data’: Permission denied #14127

Closed
ceastman-ibm opened this issue May 24, 2019 · 6 comments
Closed
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.

Comments

@ceastman-ibm
Copy link

Describe the bug
Trying to use the latest stable/postgresql helm chart, the pods stay in a crashed loop back state: due to:

kubectl logs postgresql-postgresql-master-0
15:38:03.02
15:38:03.02 Welcome to the Bitnami postgresql container
15:38:03.02 Subscribe to project updates by watching https://github.com/bitnami/bitnami-docker-postgresql
15:38:03.02 Submit issues and feature requests at https://github.com/bitnami/bitnami-docker-postgresql/issues
15:38:03.03 Send us your feedback at [email protected]
15:38:03.03
15:38:03.06 INFO ==> ** Starting PostgreSQL setup **
15:38:03.16 INFO ==> Validating settings in POSTGRESQL_* env vars..
15:38:03.17 INFO ==> Initializing PostgreSQL database...
15:38:03.19 INFO ==> postgresql.conf file not detected. Generating it...
15:38:03.20 INFO ==> pg_hba.conf file not detected. Generating it...
mkdir: cannot create directory ‘/bitnami/postgresql/data’: Permission denied
15:38:03.22 INFO ==> Stopping PostgreSQL...

Version of Helm and Kubernetes:
helm version
Client: &version.Version{SemVer:"v2.9.1", GitCommit:"20adb27c7c5868466912eebdf6664e7390ebe710", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.9.1", GitCommit:"20adb27c7c5868466912eebdf6664e7390ebe710", GitTreeState:"clean"}

v1.12.8+IKS

Which chart:
https://github.com/helm/charts/tree/master/stable/postgresql

What happened:
kube pods fail to start

What you expected to happen:
kube pods to successfully start

How to reproduce it (as minimally and precisely as possible):
IBM Cloud, create new cluster, helm install this chart with storage persistence enabled

Anything else we need to know:

@tompizmor
Copy link
Collaborator

Hi @ceastman-ibm,

Currently, IBM Cloud Kubernetes Service has some limitations regarding non-root containers and persistent storage permissions.

You can read more about the issues and the possible workarounds here:

@docktermj
Copy link

I'm getting the same error on minikube using the instructions at https://github.com/Senzing/kubernetes-demo/blob/master/docs/helm-kafka-postgresql/README.md. Specifically, it fails on this step: https://github.com/Senzing/kubernetes-demo/blob/master/docs/helm-kafka-postgresql/README.md#install-postgresql-helm-chart

The instructions worked about 2 weeks ago, so I'm suspecting a recent change.

Note: I also experienced a similar error with bitnami/rabbitmq Helm chart yesterday. Again, that chart worked 2 weeks ago.

@docktermj
Copy link

I opened bitnami/charts#1210

@tompizmor
Copy link
Collaborator

@docktermj I don't think the issue is the same. By default, the postgressql chart should work in Minikube so better to handle your case in the issue you opened in the Bitnami repo.

@stale
Copy link

stale bot commented Jun 29, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions.

@stale stale bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jun 29, 2019
@stale
Copy link

stale bot commented Jul 13, 2019

This issue is being automatically closed due to inactivity.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.
Projects
None yet
Development

No branches or pull requests

3 participants