2013-07-17 137 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試圖在虛擬機上運行命令,命令失敗。其他的東西依賴於該命令的工作,所以整個運行失敗。