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

set encoding when creating the DB #359

Merged
merged 1 commit into from
May 7, 2024

Conversation

elfranne
Copy link
Contributor

According to the docs you should specify the encoding when creating the database. The database encoding will be set depending on your locale (I got LATIN1) unless specified.

I am getting some errors is the PuppetDB logs:

ERROR: unsupported Unicode escape sequence Detail: Unicode escape values cannot be used for code point values above 007F when the server encoding is not UTF8.

and filling up few gig of additional log at /opt/puppetlabs/server/data/puppetdb/stockpile/discard

@elfranne elfranne requested a review from a team as a code owner October 17, 2022 12:01
@puppet-community-rangefinder
Copy link

puppetdb::database::postgresql is a class

that may have no external impact to Forge modules.

This module is declared in 33 of 579 indexed public Puppetfiles.


These results were generated with Rangefinder, a tool that helps predict the downstream impact of breaking changes to elements used in Puppet modules. You can run this on the command line to get a full report.

Exact matches are those that we can positively identify via namespace and the declaring modules' metadata. Non-namespaced items, such as Puppet 3.x functions, will always be reported as near matches only.

@CLAassistant
Copy link

CLAassistant commented Oct 17, 2022

CLA assistant check
All committers have signed the CLA.

@elfranne
Copy link
Contributor Author

elfranne commented Nov 4, 2022

This only applies on newly created puppetdb. If you don t care about the data in the db you can:

sudo service puppetdb stop
sudo -i -u postgres psql
DROP DATABASE puppetdb;

puppet apply manifest/site.pp

@elfranne elfranne marked this pull request as draft November 10, 2022 13:08
@h0tw1r3 h0tw1r3 added the bugfix label May 7, 2024
@h0tw1r3 h0tw1r3 marked this pull request as ready for review May 7, 2024 02:26
@bastelfreak bastelfreak merged commit 8505a7c into puppetlabs:main May 7, 2024
26 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants