Fixes #39187 - Ensure PostgreSQL locale on Debian - #1288
Merged
Merged
Conversation
Install locales-all before creating the Foreman database so the required en_US.utf8 locale is available. Assisted-By: Codex 5.6 Sol High
ekohl
approved these changes
Aug 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Ensure the
en_US.utf8locale is available on Debian-family systems before creating the Foreman PostgreSQL database.Foreman passes
locale => 'en_US.utf8'topostgresql::server::db. A fresh Debian or Ubuntu installation may not provide that locale, leaving the PostgreSQL role created but the database missing and causingdb:migrateto fail. Installinglocales-allfollows the recommendation frompuppetlabs-postgresqland mirrors the existingglibc-langpack-enhandling on EL.The reported Apache port 443 symptom is a consequence of the failed catalog: the SSL vhost is written, but the dependent Apache service refresh is skipped. Allowing the initial database setup to finish also allows that refresh to run normally.
Fixes: https://projects.theforeman.org/issues/39187
Test coverage
locales-allis installed beforePostgresql::Server::Db[foreman]on Debian-family systems.This pull request was assisted by Codex 5.6 Sol High. The resulting changes were reviewed before submitting, and the commit includes an
Assisted-Bytrailer.