工头 UI 木偶 运行 失败
foreman UI puppet run fails
我在端口 8000 上有工头代理 运行ning。
工头 运行宁在端口 3000
puppetmaster 服务 运行在 8140 端口上。
此外,我配置了 3 个 puppet 代理,
- localhost 傀儡代理
- 远程主机代理 1
- 远程主机代理 2
当我从工头 GUI 执行 puppet 运行 时,localhost 工作正常,我可以在我的主控主机上制作 puppet 运行。因为我在 /etc/sudoers 文件中添加了工头代理并且一切正常。
但是在对这两个远程主机的 puppet 类 进行配置更改后,我尝试从工头 GUI 运行 puppet 运行,但以以下错误结束。
我认为它无法连接到远程主机...你怎么看?
Error: failed to execute puppetrun: ERF12-4252
[ProxyAPI::ProxyException]: Unable to execute Puppet run
([RestClient::RequestTimeout]: Request Timeout) for proxy
http://domain.com:8000/puppet
更新 1:
我按照这篇文章打开了 8139 端口,并在 /etc/puppet/puppet.conf[= 中添加了 listen=true 54=]。
现在我收到这个错误
Error: failed to execute puppetrun: ERF12-4252
[ProxyAPI::ProxyException]: Unable to execute Puppet run
([RestClient::InternalServerError]: 500 Internal Server Error) for
proxy http://lhdgameslab.com:8000/puppet
内容来自 /var/log/foreman-proxy/proxy.log
E, [2016-09-27T10:53:41.585056 #17092] ERROR -- : Failed puppet run: Check Log files
E, [2016-09-27T10:54:33.020211 #17092] ERROR -- : Failed puppet run: Check Log files
E, [2016-09-27T10:58:50.908303 #17092] ERROR -- : Failed puppet run: Check Log files
E, [2016-09-27T11:02:37.603161 #17092] ERROR -- : Failed puppet run: Check Log files
E, [2016-09-27T11:29:27.946510 #23644] ERROR -- : Failed puppet run: Check Log files
E, [2016-09-27T11:29:36.748147 #23644] ERROR -- : Failed puppet run: Check Log files
服务器人偶版本:3.0.1
特工傀儡版本:2.7.11
更新 2:
[2016-09-27T12:05:35.403274 #26943] DEBUG -- : close: xxx.xxx.xx.xx:39355
D, [2016-09-27T12:05:44.330022 #26943] DEBUG -- : accept: xxx.xxx.xx.xx:39386
D, [2016-09-27T12:05:44.331547 #26943] DEBUG -- : Rack::Handler::WEBrick is invoked.
D, [2016-09-27T12:05:44.336316 #26943] DEBUG -- : verifying remote client xxx.xxx.xx.xx against trusted_hosts ["xxx.com"]
D, [2016-09-27T12:05:44.337116 #26943] DEBUG -- : require_ssl_client_verification: skipping, non-HTTPS request
D, [2016-09-27T12:05:44.338831 #26943] DEBUG -- : about to execute: ["/usr/bin/sudo", "/usr/sbin/puppetrun", "--host", "yyyy.com"]
W, [2016-09-27T12:05:45.270639 #26943] WARN -- : Non-null exit code when executing '["/usr/bin/sudo", "/usr/sbin/puppetrun", "--host", "yyyy.com"]'
E, [2016-09-27T12:05:45.271021 #26943] ERROR -- : Failed puppet run: Check Log files
D, [2016-09-27T12:05:45.271080 #26943] DEBUG -- : Failed puppet run: Check Log files
I, [2016-09-27T12:05:45.271835 #26943] INFO -- : xxx.xxx.xx.xx - - [27/Sep/2016 12:05:45] "POST /puppet/run HTTP/1.1" 500 34 0.9376
在 /etc/puppet 位置创建 auth.conf 解决了问题....
/etc/puppet/auth.conf
path /run
method save
auth any
allow *
我在端口 8000 上有工头代理 运行ning。
工头 运行宁在端口 3000
puppetmaster 服务 运行在 8140 端口上。
此外,我配置了 3 个 puppet 代理,
- localhost 傀儡代理
- 远程主机代理 1
- 远程主机代理 2
当我从工头 GUI 执行 puppet 运行 时,localhost 工作正常,我可以在我的主控主机上制作 puppet 运行。因为我在 /etc/sudoers 文件中添加了工头代理并且一切正常。
但是在对这两个远程主机的 puppet 类 进行配置更改后,我尝试从工头 GUI 运行 puppet 运行,但以以下错误结束。
我认为它无法连接到远程主机...你怎么看?
Error: failed to execute puppetrun: ERF12-4252 [ProxyAPI::ProxyException]: Unable to execute Puppet run ([RestClient::RequestTimeout]: Request Timeout) for proxy http://domain.com:8000/puppet
更新 1: 我按照这篇文章打开了 8139 端口,并在 /etc/puppet/puppet.conf[= 中添加了 listen=true 54=]。 现在我收到这个错误
Error: failed to execute puppetrun: ERF12-4252 [ProxyAPI::ProxyException]: Unable to execute Puppet run ([RestClient::InternalServerError]: 500 Internal Server Error) for proxy http://lhdgameslab.com:8000/puppet
内容来自 /var/log/foreman-proxy/proxy.log
E, [2016-09-27T10:53:41.585056 #17092] ERROR -- : Failed puppet run: Check Log files
E, [2016-09-27T10:54:33.020211 #17092] ERROR -- : Failed puppet run: Check Log files
E, [2016-09-27T10:58:50.908303 #17092] ERROR -- : Failed puppet run: Check Log files
E, [2016-09-27T11:02:37.603161 #17092] ERROR -- : Failed puppet run: Check Log files
E, [2016-09-27T11:29:27.946510 #23644] ERROR -- : Failed puppet run: Check Log files
E, [2016-09-27T11:29:36.748147 #23644] ERROR -- : Failed puppet run: Check Log files
服务器人偶版本:3.0.1
特工傀儡版本:2.7.11
更新 2:
[2016-09-27T12:05:35.403274 #26943] DEBUG -- : close: xxx.xxx.xx.xx:39355
D, [2016-09-27T12:05:44.330022 #26943] DEBUG -- : accept: xxx.xxx.xx.xx:39386
D, [2016-09-27T12:05:44.331547 #26943] DEBUG -- : Rack::Handler::WEBrick is invoked.
D, [2016-09-27T12:05:44.336316 #26943] DEBUG -- : verifying remote client xxx.xxx.xx.xx against trusted_hosts ["xxx.com"]
D, [2016-09-27T12:05:44.337116 #26943] DEBUG -- : require_ssl_client_verification: skipping, non-HTTPS request
D, [2016-09-27T12:05:44.338831 #26943] DEBUG -- : about to execute: ["/usr/bin/sudo", "/usr/sbin/puppetrun", "--host", "yyyy.com"]
W, [2016-09-27T12:05:45.270639 #26943] WARN -- : Non-null exit code when executing '["/usr/bin/sudo", "/usr/sbin/puppetrun", "--host", "yyyy.com"]'
E, [2016-09-27T12:05:45.271021 #26943] ERROR -- : Failed puppet run: Check Log files
D, [2016-09-27T12:05:45.271080 #26943] DEBUG -- : Failed puppet run: Check Log files
I, [2016-09-27T12:05:45.271835 #26943] INFO -- : xxx.xxx.xx.xx - - [27/Sep/2016 12:05:45] "POST /puppet/run HTTP/1.1" 500 34 0.9376
在 /etc/puppet 位置创建 auth.conf 解决了问题....
/etc/puppet/auth.conf
path /run
method save
auth any
allow *