Jira (PDB-4509) Fresh install of puppetdb will not start ERROR: invalid byte sequence for encoding "UTF8"

29 views
Skip to first unread message

Scot Kreienkamp (JIRA)

unread,
Sep 18, 2019, 2:40:03 PM9/18/19
to puppe...@googlegroups.com
Scot Kreienkamp commented on Bug PDB-4509
 
Re: Fresh install of puppetdb will not start ERROR: invalid byte sequence for encoding "UTF8"

Manual steps ran:
createuser -DRSP puppetdb
createdb -E UTF8 -O puppetdb puppetdb
psql puppetdb -c 'create extension pg_trgm'

As a troubleshooting step I configured puppetdb to connect using the postgres user. No change.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Austin Blatt (JIRA)

unread,
Sep 18, 2019, 2:40:03 PM9/18/19
to puppe...@googlegroups.com
Austin Blatt updated an issue
 
PuppetDB / Bug PDB-4509
Change By: Austin Blatt
Team: PuppetDB
Summary: Puppetdb 6.5, PG9.6.15, fresh Fresh install of puppetdb service will not start ERROR: invalid byte sequence for encoding "UTF8"
Method Found: Needs Assessment Customer Feedback

Austin Blatt (JIRA)

unread,
Sep 18, 2019, 4:54:03 PM9/18/19
to puppe...@googlegroups.com
Austin Blatt commented on Bug PDB-4509
 
Re: Fresh install of puppetdb will not start ERROR: invalid byte sequence for encoding "UTF8"

Scot Kreienkamp it seems like this is not the first time someone has hit it, and this Puppet Users thread has the same error that your encountered, but alas, no resolution. But we can start off where they were.

Can you attach the output of psql -c '\l+'?

Scot Kreienkamp (JIRA)

unread,
Sep 19, 2019, 10:57:04 AM9/19/19
to puppe...@googlegroups.com

Scot Kreienkamp (JIRA)

unread,
Sep 19, 2019, 10:57:04 AM9/19/19
to puppe...@googlegroups.com

Scot Kreienkamp (JIRA)

unread,
Sep 19, 2019, 10:58:03 AM9/19/19
to puppe...@googlegroups.com
Scot Kreienkamp commented on Bug PDB-4509
 
Re: Fresh install of puppetdb will not start ERROR: invalid byte sequence for encoding "UTF8"

It would be difficult to read due to the formatting so I put in a screenshot of it.

Scot Kreienkamp (JIRA)

unread,
Sep 19, 2019, 10:58:03 AM9/19/19
to puppe...@googlegroups.com

Scot Kreienkamp (JIRA)

unread,
Sep 19, 2019, 11:06:02 AM9/19/19
to puppe...@googlegroups.com
 
Re: Fresh install of puppetdb will not start ERROR: invalid byte sequence for encoding "UTF8"

That thread was me when I was trying to set up PuppetDB the first time around on the server I'm now trying to replace... I switched from Oracle Linux to Redhat Linux and it magically worked. I never knew why, which is why I never posted a resolution. This time I started with RH thinking that I wouldn't see that problem again only to have it resurface. These are very vanilla installs of RHEL7 and PuppetDB, was then and is now. That's what has me puzzled.

Scot Kreienkamp (JIRA)

unread,
Sep 23, 2019, 3:14:02 PM9/23/19
to puppe...@googlegroups.com

Figured it out... went back and compared all the database settings in the old server and the new server, and one settings change broke it:

standard_conforming_strings = off

That's in our standard postgres template because one of our primary internal applications requires it. Once I changed that to on it worked fine. Maybe a check could be added before the migrations that outputs an error message if that setting is off?

Austin Blatt (JIRA)

unread,
Sep 23, 2019, 4:14:03 PM9/23/19
to puppe...@googlegroups.com
Austin Blatt commented on Bug PDB-4509

Scot Kreienkamp that's awesome, yes! We will definitely add a check for this since we've been stumped by it at least a couple of times.

Austin Blatt (JIRA)

unread,
Oct 3, 2019, 4:19:04 PM10/3/19
to puppe...@googlegroups.com

Austin Blatt (JIRA)

unread,
Oct 3, 2019, 6:39:03 PM10/3/19
to puppe...@googlegroups.com
Austin Blatt updated an issue
Change By: Austin Blatt
Fix Version/s: PDB 6.3.5
Fix Version/s: PDB 5.2.10
Fix Version/s: PDB 6.7.1

Austin Blatt (JIRA)

unread,
Oct 8, 2019, 4:45:03 PM10/8/19
to puppe...@googlegroups.com

Austin Blatt (JIRA)

unread,
Oct 8, 2019, 4:47:02 PM10/8/19
to puppe...@googlegroups.com
Austin Blatt updated an issue
Change By: Austin Blatt
Release Notes Summary: 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 migrations are necessary.
Release Notes: Not Needed Bug Fix

Austin Blatt (JIRA)

unread,
Oct 8, 2019, 4:48:04 PM10/8/19
to puppe...@googlegroups.com
Austin Blatt updated an issue
Change By: Austin Blatt
Release Notes Summary: 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.

Heston Hoffman (JIRA)

unread,
Oct 11, 2019, 7:21:03 PM10/11/19
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages