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

Reconciler error - database Init #3987

Open
Eric-zch opened this issue Sep 9, 2024 · 0 comments
Open

Reconciler error - database Init #3987

Eric-zch opened this issue Sep 9, 2024 · 0 comments

Comments

@Eric-zch
Copy link

Eric-zch commented Sep 9, 2024

Overview

I installed the PostgreSQL cluster c1 in dev-c1 namespace on an OpenShift environment. Recently, OpenShift was upgraded from version 4.12 to 4.14. After the upgrade, I restored data for the entire dev-c1 namespace. Once all the pods were started, I noticed the following error messages in the pgo pod logs:

time="2024-09-06T10:01:23Z" level=error msg="Reconciler error" controller=postgrescluster controllerGroup=postgres-operator.crunchydata.com controllerKind=PostgresCluster error="command terminated with exit code 3" file="internal/controller/postgrescluster/postgres.go:753" func="postgrescluster.(*Reconciler).reconcileDatabaseInitSQL" name=c1 namespace=dev-c1 postgresCluster=dev-c1/c1 reconcileID=c814d418-30aa-4032-b3d9-b1d10ceec16b version=5.2.0-0

It seems that the database initialization was being executed repeatedly, but I’m not sure why this was happening. After I commented out the databaseInitSQL section in the postgrescluster configuration, the error was gone.

Environment

  • Platform: OpenShift
  • Platform Version: 4.14
  • PGO Image Tag: ubi8-5.2.0-0
  • Postgresql version: 14.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant