Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot add 2+ unit on Juju 3.6-rc1. Fatal : data directory "/var/lib/postgresql/data/pgdata" has invalid permissions 0770 (PostgreSQL/initdb expects 0750 or 0700) #760

Closed
jeffreychang911 opened this issue Nov 7, 2024 · 2 comments · Fixed by #759
Labels
bug Something isn't working as expected

Comments

@jeffreychang911
Copy link

Steps to reproduce

  1. deploy 3 units of postgresql-k8s on charmed kubernetes with juju 3.6-rc1

Expected behavior

All 3 units should settle

Actual behavior

Unit Workload Agent Address Ports Message
postgresql-k8s/0* active idle 192.168.254.136 Primary
postgresql-k8s/1 waiting executing 192.168.252.136 awaiting for member to start
postgresql-k8s/2 waiting executing 192.168.253.5 awaiting for cluster to start

Versions

postgresql-k8s stable rev 381

Operating system:

Juju CLI: 3.6-rc1

Juju agent: 3.6-rc1

Charm revision: rev 381

charmed kubernetes 1.31:

Log output

from pod log:
2024-11-06T17:07:16.104Z [postgresql] 2024-11-06 17:07:16 UTC [14698]: user=,db=,app=,client=,line=1 FATAL: data directory "/var/lib/postgresql/data/pgdata" has invalid permissions
2024-11-06T17:07:16.104Z [postgresql] 2024-11-06 17:07:16 UTC [14698]: user=,db=,app=,client=,line=2 DETAIL: Permissions should be u=rwx (0700) or u=rwx,g=rx (0750).

Additional context

Create this for SolQA tracking only, DPE-5915 has been created earlier.

@jeffreychang911 jeffreychang911 added the bug Something isn't working as expected label Nov 7, 2024
Copy link

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/DPE-5921.

This message was autogenerated

@taurus-forever
Copy link
Contributor

@jeffreychang911 thank you for the bugreport, it is a duplicate of https://warthogs.atlassian.net/browse/DPE-5915, therefor resolving as we have a PR with fix there: #759

We are planning to release the new 14/stable with this commit only ASAP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants