2013-07-17 63 views
0

我想搭建GAE的流浪者。我已经启动了虚拟机并且运行正常,但是在使用puppet时会失败。这是我的命令输出:流氓/ GAE规定失败,傀儡

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 ] 

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

回答

1

它看起来像Exec [npm-install]失败。如果你把参数'logoutput => on_failure'放入该exec(你应该可以在modules-0/grunt/manifests/init.pp:47中找到它),那么你可能会有更多的想法, 。

基本上puppet试图在虚拟机上运行命令,命令失败。其他的东西依赖于该命令的工作,所以整个运行失败。