我安装了Puppet + Passenger并正常工作。
然后我在木偶大师身上安装了Dashboard。
我必须更改apache配置文件并替换我在安装Passenger时使用的虚拟主机包含:
<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-daemonize --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' .... .... .... .... ....
并且在木偶大师的仪表板中没有节点。
我该如何解决这个问题? 谢谢。
答案 0 :(得分:0)
原来的VirtualHost实际上应与新乘客保持一致。这是虚拟主机的core concept。
要让主服务器再次工作,请在端口8140上重新引入Passenger / SSL VHost,如the example中那样。
如果你能找到以前的apache配置的备份副本,那么这当然会更容易。