2015년 7월 3일 금요일

FIX::chef-server, ERROR: Connection refused connecting to https://127.0.0.1/users

$chef-server-ctl user-list or $chef-server-ctl user-crate ...

ERROR: Connection refused connecting to https://127.0.0.1/users, retry 1/5
ERROR: Connection refused connecting to https://127.0.0.1/users, retry 2/5
ERROR: Connection refused connecting to https://127.0.0.1/users, retry 3/5
ERROR: Connection refused connecting to https://127.0.0.1/users, retry 4/5
ERROR: Connection refused connecting to https://127.0.0.1/users, retry 5/5
ERROR: Network Error: Connection refused - Connection refused connecting to https://127.0.0.1/users, giving up
Check your knife configuration and network settings

$chef-server-ctl tail nginx

2015-07-03_07:38:21.24862 nginx: [emerg] invalid number of arguments in "server_name" directive in /var/opt/opscode/nginx/etc/chef_https_lb.conf:3
2015-07-03_07:38:22.27220 nginx: [emerg] invalid number of arguments in "server_name" directive in /var/opt/opscode/nginx/etc/chef_https_lb.conf:3
2015-07-03_07:38:23.30000 nginx: [emerg] invalid number of arguments in "server_name" directive in /var/opt/opscode/nginx/etc/chef_https_lb.conf:3
2015-07-03_07:38:24.32450 nginx: [emerg] invalid number of arguments in "server_name" directive in /var/opt/opscode/nginx/etc/chef_https_lb.conf:3

언제나 /etc/hosts는 귀찮은 존재다.
$vi /etc/hosts
add "IP HOSTNAME" onto /etc/hosts file

ex)
192.168.56.101 hostname

$chef-server-ctl reconfigure

댓글 없음:

FIX :: ssh 접속이 느리고, /var/log/messages에 systemd-logind.service failed. 메시지가 남을 때

ssh 접속이 느릴 때가 있습니다. 보통은DNS가 제대로 설정되지 않았는데 /etc/ssh/sshd_config에 UseDNS가 yes로 되어 있을 때 발생합니다. 위와 같을 경우 /etc/ssh/sshd_config파일에서 아래와 같이 수정 후 ...