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

Hard-coded masterfiles path prevents bootstrapping

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.10.0
    • Component/s: Bootstrap
    • Labels:
      None

      Description

      I installed 3.5.1-3 using homebrew + patch from https://cfengine.com/dev/issues/3167

      When I try to bootstrap to my server "va16.esl.lan", I get this error :

      acme:cfengine adminesl$ sudo cf-agent --bootstrap va16.esl.lan
      2013-08-14T17:07:50+0200 notice: R: This autonomous node assumes the role of voluntary client
      2013-08-14T17:07:50+0200 notice: R: Failed to copy policy from policy server at 10.0.85.48:/var/cfengine/masterfiles
      Please check

      • cf-serverd is running on 10.0.85.48
      • network connectivity to 10.0.85.48 on port 5308
      • masterfiles 'body server control' - in particular allowconnects, trustkeysfrom and skipverify
      • masterfiles 'bundle server' -> access: -> masterfiles -> admit/deny
        It is often useful to restart cf-serverd in verbose mode (cf-serverd -v) on 10.0.85.48 to diagnose connection issues.
        When updating masterfiles, wait (usually 5 minutes) for files to propagate to inputs on 10.0.85.48 before retrying.
        2013-08-14T17:07:50+0200 notice: R: Did not start the scheduler
        2013-08-14T17:07:50+0200 error: Bootstrapping failed, no input file at '/usr/local/var/cfengine/inputs/promises.cf' after bootstrap
        acme:cfengine adminesl$

      We found that homebrew uses a different path "/usr/local/var/cfengine/masterfiles/" while on ubuntu dpkg it is "/var/cfengine/masterfiles/". As the path is hardcoded in the bootstrapping process, It fails. Unfortunately there's no useful error showing up in logs that could help troubleshooting it.

      => solved by sudo ln -s /var/cfengine/ /usr/local/var/cfengine on server

      REFERENCE: https://groups.google.com/forum/?fromgroups&hl=en#!topic/help-cfengine/rvB1gfluPkM

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                a10038 jimis (Dimitrios Apostolou)
                Reporter:
                francois@esl-education.org Francois TIFFREAU
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel