我正在尝试在新安装的Ubuntu 14.04上安装Foreman主设备。我打击和安装问题并没有产生任何可信的结果(或者我不知道正确的单词)。
在运行foreman安装程序之前,我确保' ping $(hostname -f)'导致我的IP地址,而不是127.0.1.1。
安装程序完成后,我留下了这个错误(机器名称已编辑):
Could not set 'present' on ensure: 422 Unprocessable Entity at 12:/usr/share/foreman-installer/modules/foreman_proxy/manifests/register.pp
Could not set 'present' on ensure: 422 Unprocessable Entity at 12:/usr/share/foreman-installer/modules/foreman_proxy/manifests/register.pp
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[abc.xyz.com]/ensure: change from absent to present failed: Could not set 'present' on ensure: 422 Unprocessable Entity at 12:/usr/share/foreman-installer/modules/foreman_proxy/manifests/register.pp
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[abc.xyz.com]: Failed to call refresh: missing param 'id' in parameters
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[abc.xyz.com]: missing param 'id' in parameters
从/var/log/foreman-installer/foreman-installer.log(机器名称编辑):
[DEBUG 2014-12-09 16:01:31 main] Puppet::Type::Foreman_smartproxy::ProviderRest: feature foreman_api is missing
[ INFO 2014-12-09 16:01:59 main] E, [2014-12-09T16:01:59.627479 #3981] ERROR -- : 422 Unprocessable Entity
[ INFO 2014-12-09 16:01:59 main] {
[ INFO 2014-12-09 16:01:59 main] "error"[0;37m => [0m{
[ INFO 2014-12-09 16:01:59 main] "id"[0;37m => [0m[1;31mnil[0m,
[ INFO 2014-12-09 16:01:59 main] "errors"[0;37m => [0m{
[ INFO 2014-12-09 16:01:59 main] "base"[0;37m => [0m[
[ INFO 2014-12-09 16:01:59 main] [1;37m[0] [0m[0;33m"Unable to communicate with the proxy: ERF12-2530 [ProxyAPI::ProxyException]: Unable to detect features ([RestClient::RequestTimeout]: Request Timeout) for proxy https://abc.xyz.com:8443/features"[0m,
[ INFO 2014-12-09 16:01:59 main] [1;37m[1] [0m[0;33m"Please check the proxy is configured and running on the host."[0m
[ INFO 2014-12-09 16:01:59 main] ]
[ INFO 2014-12-09 16:01:59 main] },
[ INFO 2014-12-09 16:01:59 main] "full_messages"[0;37m => [0m[
[ INFO 2014-12-09 16:01:59 main] [1;37m[0] [0m[0;33m"Unable to communicate with the proxy: ERF12-2530 [ProxyAPI::ProxyException]: Unable to detect features ([RestClient::RequestTimeout]: Request Timeout) for proxy https://abc.xyz.com:8443/features"[0m,
[ INFO 2014-12-09 16:01:59 main] [1;37m[1] [0m[0;33m"Please check the proxy is configured and running on the host."[0m
[ INFO 2014-12-09 16:01:59 main] ]
[ INFO 2014-12-09 16:01:59 main] }
[ INFO 2014-12-09 16:01:59 main] }
[ERROR 2014-12-09 16:01:59 main] Could not set 'present' on ensure: 422 Unprocessable Entity at 12:/usr/share/foreman-installer/modules/foreman_proxy/manifests/register.pp
鉴于错误的性质,我尝试使用Web UI重新创建智能代理。在那里,我遇到了这个错误(机器名称编辑):
Unable to communicate with the proxy: ERF12-2530 [ProxyAPI::ProxyException]: Unable to detect features ([RestClient::RequestTimeout]: Request Timeout) for proxy https://abc.xyz.com:8443/features
Please check the proxy is configured and running on the host.
最后,我仔细检查了代理是否正在运行:
service foreman-proxy status
* foreman-proxy is running
防火墙已关闭且已运行apt-get upgrade。除此之外,它应该是Ubuntu 14.04的非常标准的安装。
有没有人遇到过这个错误?还有其他任何疑难解答提示吗?
谢谢!
答案 0 :(得分:2)
我有相同的设置和相同的结果。刚刚安装了Foreman 1.6,没有出现这个问题。 Foreman_smartproxy register.pp在1.6和1.7之间没有变化,但显然有些东西。
感谢Dominic on irc频道#theforman, 解决方案似乎是设置的变化:
Adminster>设置>常规和检查proxy_request_timeout设置为60
重新运行安装程序
PS I还将idle_timeout更改为60
答案 1 :(得分:0)
我可以确认一下。 Foreman 1.7默认设置为奇怪的设置。我改变了Adminster>设置>常规和检查proxy_request_timeout设置为60,即使不重新运行安装程序,我也可以添加新代理。
非常感谢!