Vagrant / GAE规定因木偶而失败

时间:2013-07-17 20:53:11

标签: google-app-engine provisioning vagrant puppet

我正在尝试用GAE设置流浪汉。我已经让VM运行良好,但在使用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;任何想法从哪里开始?

1 个答案:

答案 0 :(得分:1)

看起来Exec [npm-install]失败了。如果你把参数'logoutput => on_failure'进入那个exec(你应该能够在modules-0 / grunt / manifests / init.pp:47中找到它)然后你可能会更多地了解它失败的原因。

基本上puppet尝试在VM上运行命令,命令失败。其他东西依赖于该命令,因此整个运行失败。

相关问题