Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to install CFEngine on Ubuntu 12.04. For simplicity's sake, I am using a virtual machine with a fresh (with updates installed) version of Ubutu Server. I installed CFEngine 3.5.1 from the CFEngine repos. However, I keep getting the error:

error: Can't stat file '/var/cfengine/inputs/lib/3.5/' for parsing. (stat: No such file or directory)

Sure enough, the file doesn't exist. In fact, there is no /var/cfengine/inputs/lib folder.

Any ideas what I might need to do to fix this?

share|improve this question
up vote 1 down vote accepted

This is a bug in 3.5.1, please see

The workaround for now is to check out the code from, and copy core/masterfiles/lib/ to /var/cfengine/masterfiles/lib/ on your machine. Then things should work fine.

share|improve this answer

First things first :D Did you bootstrap your host? If you are testing single instance of cfengine you have to set up policy server which is a policy distribution server and a client at the same time.

To set up policyserver you need to bootstrap it to itself:

/var/cfengine/bin/cf-agent -B <your IP>

Policy files are located in /var/cfengine/masterfiles/ When cfengine executes, he does a copy of this folder to all it's clients also the local one to /var/cfengine/inputs/.

Policy that does that is in file so for manual enforcing you would run this: /var/cfengine/bin/cf-agent -IKf (but if you wait a few minutes cfengine will do that automatically at the next scheduled run preformed by cf-execd)

for more info have a look on documentation site:

share|improve this answer
Yes, I did boot strap it. The boot strapping reported that it was successful, but it complained about not finding as well. – Daniel Jul 16 '13 at 20:41

I was able to fix the problem by commenting out all references to the "lib" (not the library folder) folder in It's not ideal since I am not sure what I am all disabling, but it fixed my problem and it seems that cfEngine is working as it should.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.