Uploaded image for project: 'PuppetDB'
  1. PuppetDB
  2. PDB-4509

Fresh install of puppetdb will not start ERROR: invalid byte sequence for encoding "UTF8"

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • PDB 6.5.0
    • PDB 5.2.10, PDB 6.3.5, PDB 6.7.1
    • PuppetDB
    • PuppetDB
    • Customer Feedback
    • Bug Fix
    • PuppetDB migrations require the postgres database the setting `standard_conforming_strings` to be `true`. Before a Postgres exception would terminate startup, now we will verify that setting before checking if any migrations are necessary.
    • Needs Assessment

    Description

      On first start of puppetdb after install it is failing with error: 

      2019-09-18T13:31:10.415-04:00 INFO [p.p.s.migrate] Applying database migration version 43
      2019-09-18T13:31:10.456-04:00 ERROR [p.p.s.migrate] Caught SQLException during migration
      java.sql.BatchUpdateException: Batch entry 1 CREATE AGGREGATE sha1_agg (BYTEA)
      (
      sfunc = dual_sha1,
      stype = bytea,
      initcond = '\x00'
      ) was aborted: ERROR: invalid byte sequence for encoding "UTF8": 0x00 Call getNextException to see other errors in the batch.

      Attachments

        1. psql -l output.PNG
          psql -l output.PNG
          16 kB
        2. puppetdb.log
          402 kB

        Issue Links

          Activity

            People

              austin.blatt Austin Blatt
              skreien Scot Kreienkamp
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support