我尝试使用puphpet脚本设置Vagrant实例并收到以下错误消息:
Info: Loading facts in /etc/puppet/modules/git/lib/facter/git_exec_path.rb
Info: Loading facts in /etc/puppet/modules/git/lib/facter/git_version.rb
Error: Could not autoload /puppet/pops/binder/hiera2/json_backend: no such file to load -- json
Error: Could not autoload /puppet/pops/binder/hiera2/json_backend: no such file to load -- json on node devbox.local
Error: Could not autoload /puppet/pops/binder/hiera2/json_backend: no such file to load -- json on node devbox.local
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
有人提示可能出错吗? 非常感谢您的帮助!!!
答案 0 :(得分:1)
尝试在文件{vagrant path} /puphpet/shell/librarian-puppet-vagrant.sh(可能在第72行附近)的“gem install librarian-puppet”之前添加“gem install json”
我遇到了类似问题,并在https://github.com/puphpet/puphpet/issues/455找到了上述解决方案。我的问题与那里提到的代理内容无关,但json错误与我的类似。似乎对我有用。
答案 1 :(得分:0)
我已经将Vagrant更新为1.4.3并且我开始得到相同的错误,所以它可能是一个只出现在最新版本中的错误。 不确定如何回滚到1.3.5,删除并重新安装?