Vagrant / Puphpet安装:无法将Fixnum转换为String

时间:2015-02-17 15:01:41

标签: vagrant puphpet

在各种机器上使用Puphpet和Vagrant试图摧毁一些开发者的主要烦恼没有成功。通常我会得到这种类型的错误:

 ==> default: Error: can't convert Fixnum into String at /tmp/vagrant-puppet/modules-8ac76db09acda5ab8c14f0bf13c0e157/mysql/manifests/server/root_password.pp:10 on node packer-virtualbox-iso-1422588891.vagrantup.com
 ==> default: Wrapped exception:
 ==> default: can't convert Fixnum into String
 ==> default: Error: can't convert Fixnum into String at /tmp/vagrant-puppet/modules-8ac76db09acda5ab8c14f0bf13c0e157/mysql/manifests/server/root_password.pp:10 on node packer-virtualbox-iso-1422588891.vagrantup.com
 The SSH command responded with a non-zero exit status. Vagrant
 assumes that this means the command failed. The output for this command
 should be in the log above. Please read the output to determine what
 went wrong.

我搜索过,无法在项目的网站或支持小组中找到任何内容。

1 个答案:

答案 0 :(得分:0)

稍后进行一点挖掘,我已经解决了这个问题并将其发布在这里,以免你撕掉所有的头发。

/puphpet/config.yaml 文件中的密码似乎并未全部引用。他们需要被引用。

例如

root_password: 123

将失败并显示错误,请更改为:

root_password: '123'

注意:

在整个config.yaml中搜索您的密码,以检查引用,它可能会在多个位置。

不会。我实际上已将密码更改为混合字母/数字,但仍然存在问题。