Hi
I have done a brand new installation of chef server, chef automate and chef node
I am trying to follow the step “Configure Chef Server to send Server Object data” in https://docs.chef.io/setup_visibility_chef_automate.html, which fails with the following error :
- directory[/etc/opscode/logrotate.d] action create (up to date)
================================================================================
Recipe Compile Error in /var/opt/opscode/local-mode-cache/cookbooks/private-chef/recipes/default.rb
RuntimeError
Error loading file: /etc/opscode/chef-server.rb:6:in from_file': undefined method
[]=’ for nil:NilClass
Cookbook Trace:
/var/opt/opscode/local-mode-cache/cookbooks/private-chef/libraries/private_chef.rb:116:in `rescue in from_file'
/var/opt/opscode/local-mode-cache/cookbooks/private-chef/libraries/private_chef.rb:113:in `from_file'
/var/opt/opscode/local-mode-cache/cookbooks/private-chef/recipes/config.rb:87:in `from_file'
/var/opt/opscode/local-mode-cache/cookbooks/private-chef/recipes/default.rb:38:in `from_file'
I have done this configuration on chef node, and that setup is successful and send data to chef automate.
However, it fails on chef-server.
Contents of /etc/opscode/chef-server.rb :
server_name = 'ec2-xx-xx-xx-xx.ap-southeast-1.compute.amazonaws.com’
nginx[‘url’] = "https://#{server_name}"
nginx[‘server_name’] = server_name
nginx[‘ssl_certificate’] = "/var/opt/opscode/nginx/ca/#{server_name}.crt"
nginx[‘ssl_certificate_key’] = "/var/opt/opscode/nginx/ca/#{server_name}.key"
data_collector[‘root_url’] = 'https://<DNS_name_of_chef_automate_server>/data-collector/v0/'
data_collector[‘token’] = ‘<default_token>’
I checked logs on chef server, and the ones updated are :
/var/log/opscode/opscode-erchef/crash.log
2016-10-04 05:28:28 =ERROR REPORT====
{<<"method=GET; path=/organizations/automate/groups/pushy_job_readers; status=404; ">>,“Not Found”}
Please suggest