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