https://www.puppet.com/community logo
Join Slack
Powered by
# puppet
  • r

    ramindk

    01/25/2023, 4:39 PM
    puppetdb logs are usually pretty chatty too.
  • l

    Lumiere

    01/25/2023, 4:39 PM
    I had to roll back a puppetdb update
  • l

    Lumiere

    01/25/2023, 4:40 PM
    but it will really depend on the error
  • l

    Les Shiner

    01/25/2023, 5:54 PM
    Copy code
    ERROR [p.p.c.services] Will retry database connection after temporary failure: java.sql.SQLTransientConnectionException: PDBMigrationsPool: default - Connection is not available
  • l

    Les Shiner

    01/25/2023, 5:54 PM
    so many lines lol
  • l

    Lumiere

    01/25/2023, 7:05 PM
    that's the error I was getting
  • l

    Lumiere

    01/25/2023, 7:06 PM
    try disabling ssl on the connection string in /etc/puppetlabs/puppetdb/config.d/database.ini (iirc) and ensuring there's a proper host (not hostssl) line on the postgres pg_hba and see if it starts
  • l

    Lumiere

    01/25/2023, 7:06 PM
    if it fails for you, we should probably file a bug report
  • b

    bastelfreak

    01/25/2023, 7:08 PM
    @Les Shiner did you check the postgres logs?
  • l

    Lumiere

    01/25/2023, 7:15 PM
    @bastelfreak for me, it was something about the migrationspool and ssl, backing off ssl made it work immediately
  • b

    bastelfreak

    01/25/2023, 7:16 PM
    yeah. If the puppetdb module is used, it usually sets up ssl/plaintext comnections correctly
  • l

    Lumiere

    01/25/2023, 7:16 PM
    both of us are using the puppetdb module
  • l

    Lumiere

    01/25/2023, 7:17 PM
    I am betting Les is using puppet 6
  • b

    Brian Schonecker

    01/25/2023, 7:21 PM
    The jetty.ini file was pretty important, too. Here's my jetty.ini sanitized of junk: [jetty] host = 0.0.0.0 port = 8080 ssl-host = 0.0.0.0 ssl-port = 8081 ssl-key = /etc/puppetlabs/puppetdb/ssl/private.pem ssl-cert = /etc/puppetlabs/puppetdb/ssl/public.pem ssl-ca-cert = /etc/puppetlabs/puppetdb/ssl/ca.pem access-log-config = /etc/puppetlabs/puppetdb/request-logging.xml client-auth = want ssl-cert-chain = /etc/puppetlabs/puppetdb/ssl/cert.pem ssl-protocols = TLSv1.2
  • l

    Lumiere

    01/25/2023, 7:21 PM
    yea, in this case it's the database connection that's the problem
  • b

    Brian Schonecker

    01/25/2023, 7:22 PM
    But I am pretty sure I am using SSL.
  • l

    Lumiere

    01/25/2023, 7:22 PM
    puppetdb doesn't even get started for that file to matter
  • c

    CVQuesty

    01/25/2023, 7:23 PM
    in AWS the PostgreSQL instance does not use SSL by default. You have to manually turn it on with a parameter group
  • l

    Les Shiner

    01/25/2023, 7:27 PM
    @Lumiere you're talking about this setting in database.ini?
    Copy code
    subname = //Master.ksmxe13yf34ergehjclg4kj1vh.bx.internal.cloudapp.net:5432/puppetdb?ssl=true&sslfactory=org.postgresql.ssl.LibPQFactory&sslmode=verify-full&sslrootcert=/etc/puppetlabs/puppetdb/ssl/ca.pem&sslkey=/etc/puppetlabs/puppetdb/ssl/private.pk8&sslcert=/etc/puppetlabs/puppetdb/ssl/public.pem
  • c

    CVQuesty

    01/25/2023, 7:27 PM
    @Lumiere I sent you a PM
  • l

    Lumiere

    01/25/2023, 7:28 PM
    yes
  • l

    Les Shiner

    01/25/2023, 7:30 PM
    just change true to false?
  • l

    Les Shiner

    01/25/2023, 7:30 PM
    or remove everything after puppetdb?
  • l

    Lumiere

    01/25/2023, 8:05 PM
    I would remove everything after puppetdb
  • l

    Lumiere

    01/25/2023, 8:05 PM
    comment the line and then copy it honestly
  • l

    Les Shiner

    01/25/2023, 8:31 PM
    will do
  • l

    Les Shiner

    01/25/2023, 9:07 PM
    Copy code
    2023-01-25 21:05:40.169 UTC [36668] puppetdb@puppetdb LOG:  no match in usermap "puppetdb-puppetdb-map" for user "puppetdb" authenticated as "<http://master.ksmxe13yf34ergehjclg4kj1vh.bx.internal.cloudapp.net|master.ksmxe13yf34ergehjclg4kj1vh.bx.internal.cloudapp.net>"
    2023-01-25 21:05:40.169 UTC [36668] puppetdb@puppetdb FATAL:  certificate authentication failed for user "puppetdb"
    This is the postgresql log that i'm reading, which is full of this error
  • l

    Les Shiner

    01/25/2023, 9:07 PM
    @Lumiere i tried your suggestion and that didn't resolve the issue
  • l

    Les Shiner

    01/25/2023, 9:10 PM
    what's crazy is that i've stood this up before, with the exact same code. No issue. This time though... it doesn't like me
  • c

    csharpsteen

    01/25/2023, 9:42 PM
    Likely missing an entry in
    pg_ident.conf
    that associates the
    <http://master.ksmxe13yf34ergehjclg4kj1vh.bx.internal.cloudapp.net|master.ksmxe13yf34ergehjclg4kj1vh.bx.internal.cloudapp.net>
    certificate CN with the
    puppetdb
    database user.
1...285286287...428Latest