2014-12-09 2 views
0

우분투 14.04의 새로운 설치에서 포먼 마스터 설정을 얻으려고합니다. googable 결과를 얻지 못하거나 (또는 ​​올바른 단어를 모르겠다) 설치 문제가 발생합니다.포먼 1.7 우분투에서 설치 오류 14.04

포먼 설치 프로그램을 실행하기 전에 'ping $ (hostname -f)'이 내 IP 주소가 아니라 127.0.1.1이되도록했습니다. 설치 완료 후

, 나는 (컴퓨터 이름이 편집 됨)이 오류와 함께 왼쪽 된 다음 /var/log/foreman-installer/foreman-installer.log에서

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 

(컴퓨터 이름이 편집 됨) :

[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 

오류의 특성을 감안할 때 웹 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. 

을, 나는 프록시가 실행되고 있는지 확인을 두 번 : 방화벽이 꺼져 apt-get를 업그레이드으로 실행하고있다

service foreman-proxy status 
* foreman-proxy is running 

. 그것 이외의, 그것은 우분투 14.04의 꽤 표준 설치되어야합니다.

이 오류가 발생 했습니까? 다른 문제 해결 팁을 시도해보십시오.

감사합니다.

답변

2

동일한 설정과 동일한 결과가 있습니다. 이 문제없이 Foreman 1.6을 새로 설치했습니다. Foreman_smartproxy register.pp는 1.6에서 1.7 사이에서 변경되지 않았지만 분명히 뭔가가 있습니다.

Adminster> 설정> 일반 및 proxy_request_timeout 60

다시 실행 설치

로 설정되어 있는지 확인 : IRC 채널 #theforman에 도미닉에

덕분에, 솔루션은 설정에서 변경 될 것으로 보인다

PS 또한 idle_timeout을 6

+0

특히 "[RestClient :: RequestTimeout] : 요청 시간 초과"가 로그에 표시되면 나는 이것이 1.7.1에서 수정 될 수도 있다고 생각한다. –

+0

감사! 나는 그 irc 채널을 조사해야 할 것입니다. – insaneshow

0

으로 변경했습니다. Foreman 1.7에는 기본적으로 이상한 설정이 있습니다. Adminster> Settings> General을 변경하고 proxy_request_timeout이 60으로 설정되었는지 확인하고 설치 프로그램을 다시 실행하지 않고도 새 프록시를 추가 할 수있었습니다.

고맙습니다.

관련 문제