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

Not enough context given when mustache template rendering fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.0
    • Component/s: Promise type: files
    • Labels:
      None
    • Platform:
      Linux
    • Found in version (details):
      1989

      Description

      I get the following error trying to render a template
      <pre>
      2014-03-28T16:14:07+0000 error: /default/sshkeys/methods/'deploy public keys'/default/deploypubkeys/files/'/var/ssh/public/nickanderson/authorized_keys'[0]: Error rendering mustache template '/var/cfengine/inputs/templates/authorized_keys.mustache'
      </pre>

      Is there any additional information we can include with this error? Maybe specifically where rendering failed, or better yet what data it choked on?

      It looks like it partially rendered the template. as the static content @#DO NOT EDIT - MANAGED SSH KEY FILE@ appears in the rendered template.

      Template:
      <pre>
      #DO NOT EDIT - MANAGED SSH KEY FILE
      #public .
      /public
      </pre>

      It also seems somewhat dangerous to perform the template edit directly on the target file in the event of this kind of failure.
      I can provide specific replication data privately.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                a10025 Volker Hilsheimer (Inactive)
                Reporter:
                a10042 Nick Anderson
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel