{"record":{"id":"29642bcf59643511","repo":"hashicorp/vagrant","slug":"vagrant-cfengine-cant-detect","errorCode":null,"errorMessage":"vagrant.cfengine_cant_detect","messagePattern":"vagrant\\.cfengine_cant_detect","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"plugins/provisioners/cfengine/provisioner.rb","lineNumber":113,"sourceCode":"                                policy_server: policy_server_address))\n        result = cfagent(\"--bootstrap #{policy_server_address}\", error_check: false)\n        raise Vagrant::Errors::CFEngineBootstrapFailed if result != 0\n\n        # Policy hubs need to do additional things before they're ready\n        # to accept agents. Force that run now...\n        if @config.am_policy_hub\n          @machine.ui.info(I18n.t(\"vagrant.cfengine_bootstrapping_policy_hub\"))\n          cfagent(\"-KI -f /var/cfengine/masterfiles/failsafe.cf#{cfagent_classes_args}\")\n          cfagent(\"-KI #{cfagent_classes_args}#{cfagent_extra_args}\")\n        end\n      end\n\n      # This handles verifying the CFEngine installation, installing it\n      # if it was requested, and so on. This method will raise exceptions\n      # if things are wrong.\n      def handle_cfengine_installation\n        if !@machine.guest.capability?(:cfengine_installed)\n          @machine.ui.warn(I18n.t(\"vagrant.cfengine_cant_detect\"))\n          return\n        end\n\n        installed = @machine.guest.capability(:cfengine_installed)\n        if !installed || @config.install == :force\n          raise Vagrant::Errors::CFEngineNotInstalled if !@config.install\n\n          @machine.ui.info(I18n.t(\"vagrant.cfengine_installing\"))\n          @machine.guest.capability(:cfengine_install, @config)\n\n          if !@machine.guest.capability(:cfengine_installed)\n            raise Vagrant::Errors::CFEngineInstallFailed\n          end\n        end\n      end\n\n      # This installs a set of files into the CFEngine folder within\n      # the machine.","sourceCodeStart":95,"sourceCodeEnd":131,"githubUrl":"https://github.com/hashicorp/vagrant/blob/35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5/plugins/provisioners/cfengine/provisioner.rb#L95-L131","documentation":"Error \"vagrant.cfengine_cant_detect\" thrown in hashicorp/vagrant.","triggerScenarios":"Thrown at plugins/provisioners/cfengine/provisioner.rb:113 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5","analyzedAt":"2026-08-21T13:34:32.514Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}