Chef Server return 404 for all knife and chef-client request -


i trying setup chef-server , chef-client automatic deployment of packages on virtual machines run on openstack.

i following instructions on https://docs.chef.io/install_server.html. version of package chef-server 12.0.8, on ubuntu 14.04 server (chef-server-core_12.0.8-1_amd64.deb). several attempts have been made, clean machine, , same result, older chef-server version (12.0.3, believe). user gets created, organization gets created. i've pulled chef client directly chef site, via install.sh script provided (12.3.something).

symptoms:

knife ssl check returns success, however:

knife client list returns http error 404:

error: object looking not found ...

404 - not found

sorry, can't find looking for.

doesn't matter if run server directly, or machine (knife bootstrap fails, install manually). server (fqdn: chef.cluster.internal) resolvable machines, , server_url used client.rb/knife.rb. self-signed certificate pulled everywhere needed.

nginx access logs chef-server machine:

192.168.10.85 - - [15/may/2015:12:16:56 +0000]  "get /clients http/1.1" 404 "0.001" 617 "-" "chef knife/12.3.0 (ruby-2.1.4-p265; ohai-8.3.0; x86_64-linux; +http://opscode.com)" "-" "-" "-" "12.3.0" "algorithm=sha1;version=1.0;" "ubuntu" "2015-05-15t12:16:56z" "2jmj7l5rsw0yvb/vlwaykk/ybwk=" 995 192.168.10.85 - - [15/may/2015:11:38:50 +0000]  "post /nodes http/1.1" 404 "0.001" 617 "-" "chef knife/12.3.0 (ruby-2.1.4-p265; ohai-8.3.0; x86_64-linux; +http://opscode.com)" "-" "-" "-" "12.3.0" "algorithm=sha1;version=1.0;" "ubuntu" "2015-05-15t11:38:50z" "5fbetmym0tm05estesshbgjrumi=" 1047 192.168.10.86 - - [15/may/2015:11:37:36 +0000]  "post /nodes http/1.1" 404 "0.001" 617 "-" "chef knife/12.3.0 (ruby-2.1.4-p265; ohai-8.3.0; x86_64-linux; +http://opscode.com)" "-" "-" "-" "12.3.0" "algorithm=sha1;version=1.0;" "ubuntu" "2015-05-15t11:37:36z" "5fbetmym0tm05estesshbgjrumi=" 1047 192.168.10.85 - - [15/may/2015:11:38:50 +0000]  "put /nodes/dns-server http/1.1" 404 "0.001" 617 "-" "chef knife/12.3.0 (ruby-2.1.4-p265; ohai-8.3.0; x86_64-linux; +http://opscode.com)" "-" "-" "-" "12.3.0" "algorithm=sha1;version=1.0;" "ubuntu" "2015-05-15t11:38:50z" "5fbetmym0tm05estesshbgjrumi=" 1057 

... , on. so, server request, , suggestion chef-client chef_server_url might invalid not true.

all other settings have been left default. strange thing have older chef setup, 2 or 3 months ago, works without problems.

i'm out of ideas. welcome , highly appreciated.

edit 1: i've imported created user certificate, , chef nginx certificate mentioned knife older installation, , able run knife client list. so, seems local version includes /organizations/orgname/nodes request. why missing on blank client?

ok, able make progress reconfiguring knife , chef-client on server full chef_server_url generated on older machine.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -