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
- 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
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