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

[bitnami/postgresql] Run pgsql in non root pod #31537

Closed
urbaman opened this issue Jan 23, 2025 · 2 comments
Closed

[bitnami/postgresql] Run pgsql in non root pod #31537

urbaman opened this issue Jan 23, 2025 · 2 comments
Assignees
Labels
solved tech-issues The user has a technical issue about an application triage Triage is needed

Comments

@urbaman
Copy link

urbaman commented Jan 23, 2025

Name and Version

bitnami/postgresql 16.4.5

What architecture are you using?

amd64

What steps will reproduce the bug?

  • Install the chart
  • kubectl exec into the pod
  • try any pgsql or postgresql: user 1001 does not exixst

Are you using any custom parameters or values?

no

What is the expected behavior?

Be able to run pg_upgrade or pgsql to import the backup of a previous version of the server

What do you see instead?

I have no name!@postgresql-16-0:/$ psql
psql: error: local user with ID 1001 does not exist
I have no name!@postgresql-16-0:/$ pg_upgrade

could not look up effective user ID 1001: user does not exist
Failure, exiting

Additional information

No response

@urbaman urbaman added the tech-issues The user has a technical issue about an application label Jan 23, 2025
@github-actions github-actions bot added the triage Triage is needed label Jan 23, 2025
@yukha-dw
Copy link
Contributor

yukha-dw commented Jan 24, 2025

How about adding parameter -U postgres or any PG user?
https://www.postgresql.org/docs/current/app-psql.html#APP-PSQL-OPTION-USERNAME

@urbaman
Copy link
Author

urbaman commented Jan 24, 2025

So, it's me being stupid, that obviously works great, and perfectly completed the migration.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solved tech-issues The user has a technical issue about an application triage Triage is needed
Projects
None yet
Development

No branches or pull requests

3 participants