1

我在我的机器上运行了一个本地 Vagrant 设置,构建了一个带有 LAMP 堆栈的 Ubuntu 14.04 盒子。Vagrant 启动了初始化盒子的过程,然后它启动了一个 puppet 脚本来构建和配置盒子以满足我的要求。

我已经多次破坏并重建了这个盒子,没有任何问题,但是从昨天开始,我开始收到一个错误(见下面的输出)抱怨无法获得事实事实。什么都没有改变,所以我不确定为什么会这样。我有其他同事可以检查相同的代码库并毫无问题地构建此框。希望能得到一些帮助或指导,以了解如何深入了解这一点。

vagrant@rentpro-web:~$ puppet apply -vv --debug --environment development --modulepath=/etc/modules/ /etc/manifests/site.pp
Debug: Runtime environment: puppet_version=3.8.4, ruby_version=1.9.3, run_mode=user, default_encoding=UTF-8
Debug: Evicting cache entry for environment 'development'
Debug: Caching environment 'development' (ttl = 0 sec)
Debug: Evicting cache entry for environment 'development'
Debug: Caching environment 'development' (ttl = 0 sec)
Info: Loading facts
Debug: Loading facts from /etc/puppet/modules/serverdensity_agent/lib/facter/sd.rb
Debug: Loading facts from /etc/puppet/modules/serverdensity_agent/lib/facter/agent_key.rb
Info: Loading facts
Debug: Loading facts from /etc/puppet/modules/stdlib/lib/facter/root_home.rb
Debug: Loading facts from /etc/puppet/modules/stdlib/lib/facter/pe_version.rb
Debug: Loading facts from /etc/puppet/modules/stdlib/lib/facter/puppet_vardir.rb
Debug: Loading facts from /etc/puppet/modules/stdlib/lib/facter/facter_dot_d.rb
Info: Loading facts
Debug: Loading facts from /etc/puppet/modules/apt/lib/facter/apt_updates.rb
Debug: Loading facts from /etc/puppet/modules/apt/lib/facter/apt_update_last_success.rb
Info: Loading facts
Debug: Loading facts from /etc/puppet/modules/concat/lib/facter/concat_basedir.rb
Info: Loading facts
Debug: Loading facts from /etc/puppet/modules/git/lib/facter/git_version.rb
Debug: Loading facts from /etc/puppet/modules/git/lib/facter/git_html_path.rb
Debug: Loading facts from /etc/puppet/modules/git/lib/facter/git_exec_path.rb
Info: Loading facts
Debug: Loading facts from /etc/puppet/modules/collectd/lib/facter/collectd_version.rb
Error: Could not run: Could not retrieve facts for rentpro-web.rentpro.local: Invalid facter option(s) timeout

更新:木偶踪迹

vagrant@rentpro-web:~$ sudo puppet apply -vv --debug --environment development --modulepath=/etc/puppet/modules/ /etc/puppet/manifests/site.pp --trace

Warning: Setting templatedir is deprecated. See http://links.puppetlabs.com/env-settings-deprecations 
    (at /usr/lib/ruby/vendor_ruby/puppet/settings.rb:1139:in `issue_deprecation_warning'; /usr/lib/ruby/vendor_ruby/puppet/settings.rb:1126:in `block in issue_deprecations'; /usr/lib/ruby/vendor_ruby/puppet/settings.rb:1125:in `each'; /usr/lib/ruby/vendor_ruby/puppet/settings.rb:1125:in `issue_deprecations'; /usr/lib/ruby/vendor_ruby/puppet/settings.rb:347:in `initialize_app_defaults'; /usr/lib/ruby/vendor_ruby/puppet.rb:157:in `do_initialize_settings_for_run_mode'; /usr/lib/ruby/vendor_ruby/puppet.rb:141:in `initialize_settings'; /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:87:in `block in execute'; /usr/lib/ruby/vendor_ruby/puppet/util.rb:496:in `exit_on_fail'; /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:86:in `execute'; /usr/bin/puppet:8:in `<main>')
Debug: Runtime environment: puppet_version=3.8.4, ruby_version=1.9.3, run_mode=user, default_encoding=UTF-8
Debug: Evicting cache entry for environment 'development'
Debug: Caching environment 'development' (ttl = 0 sec)
Debug: Evicting cache entry for environment 'development'
Debug: Caching environment 'development' (ttl = 0 sec)
Info: Loading facts
Debug: Loading facts from /etc/puppet/modules/serverdensity_agent/lib/facter/sd.rb
Debug: Loading facts from /etc/puppet/modules/serverdensity_agent/lib/facter/agent_key.rb
Info: Loading facts
Debug: Loading facts from /etc/puppet/modules/stdlib/lib/facter/root_home.rb
Debug: Loading facts from /etc/puppet/modules/stdlib/lib/facter/pe_version.rb
Debug: Loading facts from /etc/puppet/modules/stdlib/lib/facter/puppet_vardir.rb
Debug: Loading facts from /etc/puppet/modules/stdlib/lib/facter/facter_dot_d.rb
Info: Loading facts
Debug: Loading facts from /etc/puppet/modules/apt/lib/facter/apt_updates.rb
Debug: Loading facts from /etc/puppet/modules/apt/lib/facter/apt_update_last_success.rb
Info: Loading facts
Debug: Loading facts from /etc/puppet/modules/concat/lib/facter/concat_basedir.rb
Info: Loading facts
Debug: Loading facts from /etc/puppet/modules/git/lib/facter/git_version.rb
Debug: Loading facts from /etc/puppet/modules/git/lib/facter/git_html_path.rb
Debug: Loading facts from /etc/puppet/modules/git/lib/facter/git_exec_path.rb
Info: Loading facts
Debug: Loading facts from /etc/puppet/modules/collectd/lib/facter/collectd_version.rb
Error: Could not run: Could not retrieve facts for rentpro-web.rentpro.local: Invalid facter option(s) timeout
/usr/lib/ruby/vendor_ruby/facter/util/collection.rb:60:in `add'
/usr/lib/ruby/vendor_ruby/facter.rb:128:in `add'
/etc/puppet/modules/serverdensity_agent/lib/facter/agent_key.rb:5:in `<top (required)>'
/usr/lib/ruby/vendor_ruby/facter/util/loader.rb:95:in `load'
/usr/lib/ruby/vendor_ruby/facter/util/loader.rb:95:in `load_file'
/usr/lib/ruby/vendor_ruby/facter/util/loader.rb:46:in `block (2 levels) in load_all'
/usr/lib/ruby/vendor_ruby/facter/util/loader.rb:41:in `each'
/usr/lib/ruby/vendor_ruby/facter/util/loader.rb:41:in `block in load_all'
/usr/lib/ruby/vendor_ruby/facter/util/loader.rb:38:in `each'
/usr/lib/ruby/vendor_ruby/facter/util/loader.rb:38:in `load_all'
/usr/lib/ruby/vendor_ruby/facter/util/collection.rb:115:in `load_all'
/usr/lib/ruby/vendor_ruby/facter.rb:118:in `block (2 levels) in singletonclass'
/usr/lib/ruby/vendor_ruby/puppet/indirector/facts/facter.rb:23:in `find'
/usr/lib/ruby/vendor_ruby/puppet/indirector/indirection.rb:201:in `find'
/usr/lib/ruby/vendor_ruby/puppet/node.rb:116:in `fact_merge'
/usr/lib/ruby/vendor_ruby/puppet/indirector/node/plain.rb:17:in `find'
/usr/lib/ruby/vendor_ruby/puppet/indirector/indirection.rb:201:in `find'
/usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:200:in `block in main'
/usr/lib/ruby/vendor_ruby/puppet/context.rb:64:in `override'
/usr/lib/ruby/vendor_ruby/puppet.rb:246:in `override'
/usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:198:in `main'
/usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:159:in `run_command'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:381:in `block (2 levels) in run'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:507:in `plugin_hook'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:381:in `block in run'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:496:in `exit_on_fail'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:381:in `run'
/usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:146:in `run'
/usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:92:in `execute'
/usr/bin/puppet:8:in `<main>'
4

0 回答 0