Project

General

Profile

Actions

Bug #13496

open

foreman-installer error when locale is not en_US.utf8

Added by Grégoire Bellon-Gervais about 8 years ago. Updated about 8 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Foreman modules
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Hello,

I'm under debian 8 and my locales are set to en_GB.UTF-8.
I have followed the debian dedicated documentation, I just add the repositories and I install 'foreman-installer', then I execute the command :

foreman-installer

Then, I got the following errors :

 /Stage[main]/Foreman::Database::Postgresql/Postgresql::Server::Db[foreman]/Postgresql::Server::Database[foreman]/Exec[/usr/lib/postgresql/9.4/bin/createdb --port='5432' --owner='foreman' --template=template0 --encoding 'utf8' --locale=en_US.utf8  'foreman']: Failed to call refresh: /usr/lib/postgresql/9.4/bin/createdb --port='5432' --owner='foreman' --template=template0 --encoding 'utf8' --locale=en_US.utf8  'foreman' returned 1 instead of one of [0]

In postgresl error log, we can see this error :

2016-02-01 12:10:49 CET [4258-1] postgres@postgres ERROR:  invalid locale name: "en_US.utf8" 

Just adding locale 'en_US.utf8' using the command :

dpkg-reconfigure locales

And selecting "en_US.UTF-8 UTF-8" in the first screen "Locales to be generated" do the trick.

Thanks for your great tool.


Related issues 1 (0 open1 closed)

Related to Installer - Bug #11681: foreman, candlepin, gutterball databases use default encoding vs explicit UTF8ClosedIvan Necas09/03/2015Actions
Actions

Also available in: Atom PDF