Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-2657

readenvfile produces weird errors when reaching max bytes.

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.11.0, 3.10.2
    • Component/s: None
    • Labels:
      None

      Description

      17:31:46 hub:vagrant ~ $ sudo /var/cfengine/bin/cf-agent -K -f ./cfengine/resources/policy/readenvfile.cf
         error: JsonParseEnvFile: failed to read ENV file '/etc/os-release'. (fread: Success)
         error: JsonParseEnvFile: failed to read ENV file '/etc/os-release'. (fread: Success)
         error: JsonParseEnvFile: failed to read ENV file '/etc/os-release'. (fread: No such file or directory)
         error: JsonParseEnvFile: failed to read ENV file '/etc/os-release'. (fread: No such file or directory)
         error: JsonParseEnvFile: failed to read ENV file '/etc/os-release'. (fread: Success)
         error: JsonParseEnvFile: failed to read ENV file '/etc/os-release'. (fread: Success)
         error: JsonParseEnvFile: failed to read ENV file '/etc/os-release'. (fread: Success)
         error: JsonParseEnvFile: failed to read ENV file '/etc/os-release'. (fread: Success)
         error: JsonParseEnvFile: failed to read ENV file '/etc/os-release'. (fread: No such file or directory)
         error: JsonParseEnvFile: failed to read ENV file '/etc/os-release'. (fread: No such file or directory)
         error: JsonParseEnvFile: failed to read ENV file '/etc/os-release'. (fread: No such file or directory)
         error: JsonParseEnvFile: failed to read ENV file '/etc/os-release'. (fread: No such file or directory)
         error: JsonParseEnvFile: failed to read ENV file '/etc/os-release'. (fread: No such file or directory)
      R: /etc/os-release converted to /tmp/os-release.json
         error: JsonParseEnvFile: failed to read ENV file '/etc/os-release'. (fread: No such file or directory)
         error: JsonParseEnvFile: failed to read ENV file '/etc/os-release'. (fread: No such file or directory)
         error: JsonParseEnvFile: failed to read ENV file '/etc/os-release'. (fread: No such file or directory)
         error: JsonParseEnvFile: failed to read ENV file '/etc/os-release'. (fread: No such file or directory)
         error: JsonParseEnvFile: failed to read ENV file '/etc/os-release'. (fread: No such file or directory)
         error: JsonParseEnvFile: failed to read ENV file '/etc/os-release'. (fread: No such file or directory)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                olehermanse Ole Herman Schumacher Elgesem
                Reporter:
                olehermanse Ole Herman Schumacher Elgesem
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel