1
我安裝了Puppet + Passenger並正在運行。安裝儀表板後,傀儡代理未連接到主設備
然後我在儀表板上安裝了Dashboard。
我不得不改變Apache的配置文件,並替換虛擬主機我有,當我安裝乘客與包含:
<VirtualHost *:80>
ServerName puppetsrv.domain.com
DocumentRoot /usr/share/puppet-dashboard/public/
<Directory /usr/share/puppet-dashboard/public/>
Options None
AllowOverride AuthConfig
Order Allow,Deny
Allow from All
</Directory>
ErrorLog /etc/httpd/logs/dashboard_error.log
LogLevel warn
CustomLog /etc/httpd/logs/dashboard_access.log Combined
ServerSignature On
</VirtualHost>
現在,當我在代理運行:僞軍 代理--no-守護進程 - -verbose
我得到了錯誤:
Notice: Starting Puppet client version 3.3.1
Error: Failed to apply catalog: Connection refused - connect(2)
Error: Could not send report: Connection refused - connect(2)
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:89:in `exit': no implicit conversion from nil to integer (TypeError)
from /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:89:in `run_in_fork'
from /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:86:in `fork'
from /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:86:in `run_in_fork'
from /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:41:in `run' .... .... .... .... ....
,並在對傀儡師的儀表盤沒有節點。
我該如何解決這個問題? 謝謝。
您的客戶端上配置的主機或端口無法從該服務器訪問。這就是爲什麼你會收到Connection refused錯誤。你需要找出它想要連接和重新配置的地方。 – phoet
現在我認爲這個問題是因爲我不得不在Apache配置文件中更改虛擬主機定義。我必須定義一個不同的DocumentRoot。但我仍然不知道如何解決它。有沒有人成功地做到了? – user1980099