Uploaded image for project: 'Puppet Agent'
  1. Puppet Agent
  2. PA-3254

agent runs failing with `Invalid or unsupported charset:ANSI_X3.4-1968`

    XMLWordPrintable

    Details

    • Template:
    • Team:
      Night's Watch
    • Story Points:
      3
    • Sprint:
      NW - 2020-07-08, NW - 2020-06-24
    • Method Found:
      Needs Assessment
    • Zendesk Ticket IDs:
      39428
    • Zendesk Ticket Count:
      1
    • Release Notes:
      Enhancement
    • Release Notes Summary:
      Hide
      Previously agent run will fail in case locale were broken (eg. by minimizing image) as leatherman logging expects working locale.

      This fix is implementing a defense for leatherman logging function.
      Show
      Previously agent run will fail in case locale were broken (eg. by minimizing image) as leatherman logging expects working locale. This fix is implementing a defense for leatherman logging function.
    • QA Risk Assessment:
      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

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dorin.pleava Dorin Pleava
              Reporter:
              martin.ewings Marty Ewings
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support