Uploaded image for project: 'PuppetDB'
  1. PuppetDB
  2. PDB-3058

Report not being stored in PuppetDB due to Unicode Error

    Details

    • Template:
    • Team:
      Data Platform
    • Story Points:
      3
    • Sprint:
      FF 2016-10-19, FF 2016-11-02, PuppetDB 2017-04-19, Data Platform 2017-09-06
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      PuppetDB now filters null bytes in Resource Events fields; this fixes a problem when dealing with certain entries in the Windows registry which contain the value '\0' by default.

      Description

      Not sure if this is actually a PuppetDB bug but I thought I'd raise visibility into it.
      Running a Master on Centos 7.2 / Windows Server 2012 R2 Agent.
      Upon finishing a puppet run configuring a server with the role::ecommerceweb, report isn't stored.

      PuppetDB log reports as follows:
      2016-09-20 10:39:27,766 ERROR [command-proc-53] [p.p.mq-listener] [bc073d6d-dde3-42b9-a090-f9dfe01dcb24] [store report] Retrying after attempt 10 for server2012r2a.pdx.puppet.vm, due to: org.postgresql.util.PSQLException: ERROR: unsupported Unicode escape sequence
      Detail: \u0000 cannot be converted to text.
      Where: JSON data, line 1: ...ts/init.pp","line":48,"level":"notice","message":...
      org.postgresql.util.PSQLException: ERROR: unsupported Unicode escape sequence
      Detail: \u0000 cannot be converted to text.
      Where: JSON data, line 1: ...ts/init.pp","line":48,"level":"notice","message":...

      (Full log of puppetdb foreground --debug attached).

      I'm pretty sure a module is breaking it, although I can't pinpoint which one.
      I can replicate the issue, and assist with the troubleshooting if required.

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  russell.mull Russell Mull
                  Reporter:
                  nicolas Nicolas Corrarello
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  14 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: