Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
None
-
Night's Watch
-
3
-
NW - 2020-07-08, NW - 2020-06-24
-
Needs Assessment
-
39428
-
1
-
Enhancement
-
-
Needs Assessment
Description
Summary
Customer has on going issue on suse 11 clients where by Puppet where by Puppet will not run due to an error with facter stating charset and locale issues, it should be noted that `facter` will run independently unless the -p switch is set, in which case it fails with the same error. As a result of this i believe there to be an encoding issue with a custom fact.
Error message:
```
hypuhmfk20007:~ # export LANG=en_US.utf8; export LANGUAGE=''; export LC_ALL=''; puppet agent -t --color=false 2020-06-02 13:31:00.607593 WARN puppetlabs.facter - Could not initialize locale, even with LC_* variables cleared. Continuing without localization support
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Loading facts
terminate called after throwing an instance of 'boost::locale::conv::invalid_charset_error'
what(): Invalid or unsupported charset:ANSI_X3.4-1968
Aborted
```
System details
Pe 2018.1.9
`Linux hypuhdfk20007 3.0.93-0.8-default #1 SMP Wed Jun 20 01:33:05 UTC 2018 (cb46231) x86_64 x86_64 x86_64 GNU/Linux`
|
|
facter os
|
2020-06-02 13:33:14.240492 WARN puppetlabs.facter - Could not initialize locale, even with LC_* variables cleared. Continuing without localization support
|
{
|
architecture => "x86_64",
|
family => "Suse",
|
hardware => "x86_64",
|
name => "SLES",
|
release => {
|
full => "11.3",
|
major => "11",
|
minor => "3"
|
},
|
selinux => {
|
enabled => false
|
}
|
}
|
hypuhmfk20007:~ # idn --debug --quiet " "
|
Charset `UTF-8'.
|
input[0] = U+0020
|
tld[0] = U+0020
|
output[0] = U+0020
|
hypuhmfk20007:~ # su -l -c locale
|
LANG=POSIX
|
LC_CTYPE=en_US.UTF-8
|
LC_NUMERIC="POSIX"
|
LC_TIME="POSIX"
|
LC_COLLATE="POSIX"
|
LC_MONETARY="POSIX"
|
LC_MESSAGES="POSIX"
|
LC_PAPER="POSIX"
|
LC_NAME="POSIX"
|
LC_ADDRESS="POSIX"
|
LC_TELEPHONE="POSIX"
|
LC_MEASUREMENT="POSIX"
|
LC_IDENTIFICATION="POSIX"
|
LC_ALL=
|
hypuhmfk20007:~ # localedef -i en_US -f UTF-8 en_US.UTF-8
|
character map file `UTF-8' not found: No such file or directory
|
cannot read character map directory `/usr/share/i18n/charmaps': No such file or directory
|
hypuhmfk20007:~ # locale -a
|
C
|
POSIX
|
en_US.utf8
|
hypuhmfk20007:~ # locale charmap
|
UTF-8
|
|
straces of facter - p attached hypuhmfk20007.2020-06-08.timeout_600_strace_-f_-e_trace=open_facter_-p.log attached