0

我正在尝试使用 GAE 设置 vagrant。我已经让虚拟机启动并运行良好,但使用 puppet 时失败。这是我的命令输出:

Bringing machine 'default' up with 'virtualbox' provider...
[default] Setting the name of the VM...
[default] Running provisioner: puppet...
Running Puppet with default.pp...
stdin: is not a tty
←[0;33mwarning: Could not retrieve fact fqdn←[0m
←[0;36mnotice: /Stage[main]/Grunt/Exec[aptitude-update-1]/returns: executed succe ssfully←[0m
←[0;36mnotice: /Stage[main]/Grunt/Exec[add-apt-repository]/returns: executed suc
cessfully←[0m
←[0;36mnotice: /Stage[main]/Grunt/Exec[aptitude-update-2]/returns: executed succ
essfully←[0m
←[0;36mnotice: /Stage[main]/Grunt/Exec[npm-grunt-cli]/returns: executed successf
ully←[0m
←[1;35merr: /Stage[main]/Grunt/Exec[npm-install]/returns: change from notrun to
0 failed: /usr/bin/npm install returned 255 instead of one of [0] at /tmp/vagran
t-puppet/modules-0/grunt/manifests/init.pp:47←[0m
←[0;36mnotice: /Stage[main]/Grunt/File[/usr/bin/grunt-compile]: Dependency Exec[
npm-install] has failures: true←[0m
←[0;33mwarning: /Stage[main]/Grunt/File[/usr/bin/grunt-compile]: Skipping becaus
e of failed dependencies←[0m

(然后加载更多“由于依赖项失败而跳过”)然后:

←[0;36mnotice: Finished catalog run in 29.71 seconds←[0m
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
puppet apply --modulepath '/etc/puppet/modules:/tmp/vagrant-puppet/modules-0' --
detailed-exitcodes /tmp/vagrant-puppet/manifests/default.pp || [ $? -eq 2 ]

这是我第一次尝试使用 Vagrant;任何想法从哪里开始?

4

1 回答 1

1

看起来 Exec[npm-install] 失败了。如果您将参数 'logoutput => on_failure' 放入该 exec 中(您应该能够在 modules-0/grunt/manifests/init.pp:47 中找到它),那么您可能对它失败的原因有更多的了解.

基本上 puppet 试图在 VM 上运行命令并且命令失败。其他东西依赖于该命令的工作,因此整个运行失败。

于 2013-07-18T03:33:21.193 回答