Code Monkey home page Code Monkey logo

Comments (3)

fmulero avatar fmulero commented on July 24, 2024

Hi @BruceDu521, thanks for using bitnami/charts.

With the information provided is not easy to reproduce the failure. It seems you are facing any kind of deadlock. Do you know how you reached that situation? Have you upgraded the images or your configuration? Could you share the values/configuration you are using?

from charts.

BruceDu521 avatar BruceDu521 commented on July 24, 2024

Hi @fmulero , thanks for help.

I found the reason last night.
The pg-ha pods we deployed by a program, and the program would assign username and password to postgres cluster. For a stupid bug, program got wrong username and password. So we cleared pvc, fixed program's bug, and restart the whole progress, pg-ha pods was running as normal.

What confused me is, why it was because of wrong username and password, but pg printed log as this:

[2024-02-19 07:57:17] [DETAIL]
could not translate host name "lake-sql-postgres-gis-7bc4d3b9c8-postgresql-2.lake-sql-postgres-gis-7bc4d3b9c8-postgresql-headless.default.svc.cluster.local" to address: Name or service not known

from charts.

fmulero avatar fmulero commented on July 24, 2024

Great @BruceDu521! it shouldn't have been easy. Thanks a lot for sharing your findings.

The DNS error appears because the pod never gets ready and it isn't attached to the headless service.

I agree about the error, it should be clearer, with that information is not easy to find the root cause. If it happens again, please enable the debug mode in the image to get more logs.

from charts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.