{"action":"opened","issue":{"url":"https://api.github.com/repos/opscode-cookbooks/delivery-cluster/issues/120","labels_url":"https://api.github.com/repos/opscode-cookbooks/delivery-cluster/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/opscode-cookbooks/delivery-cluster/issues/120/comments","events_url":"https://api.github.com/repos/opscode-cookbooks/delivery-cluster/issues/120/events","html_url":"https://github.com/opscode-cookbooks/delivery-cluster/issues/120","id":76142922,"number":120,"title":"chef-server-ctl reconfigure fails on AWS hosts because node.fqdn is undefined","user":{"login":"irvingpop","id":1616328,"avatar_url":"https://avatars.githubusercontent.com/u/1616328?v=3","gravatar_id":"","url":"https://api.github.com/users/irvingpop","html_url":"https://github.com/irvingpop","followers_url":"https://api.github.com/users/irvingpop/followers","following_url":"https://api.github.com/users/irvingpop/following{/other_user}","gists_url":"https://api.github.com/users/irvingpop/gists{/gist_id}","starred_url":"https://api.github.com/users/irvingpop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irvingpop/subscriptions","organizations_url":"https://api.github.com/users/irvingpop/orgs","repos_url":"https://api.github.com/users/irvingpop/repos","events_url":"https://api.github.com/users/irvingpop/events{/privacy}","received_events_url":"https://api.github.com/users/irvingpop/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-13T22:17:24Z","updated_at":"2015-05-13T22:17:24Z","closed_at":null,"body":"The nginx service is unable to start because its template depends on node.fqdn:  https://github.com/chef/chef-server/blob/master/omnibus/files/private-chef-cookbooks/private-chef/templates/default/nginx/nginx.conf.erb#L98\r\n\r\nbut this is nil because:\r\n```\r\nroot@ip-33-33-33-254:~# chef-shell \r\nloading configuration: none (standalone session)\r\nSession type: standalone\r\nLoading.done.\r\n\r\nThis is the chef-shell.\r\n Chef Version: 12.3.0\r\n http://www.chef.io/\r\n http://docs.chef.io/\r\n\r\nrun `help' for help, `exit' or ^D to quit.\r\n\r\nOhai2u!\r\nchef > node.fqdn\r\nNoMethodError: Undefined method or attribute `fqdn' on `node'\r\n\tfrom /opt/chef/embedded/apps/chef/lib/chef/node/attribute.rb:468:in `method_missing'\r\n\tfrom /opt/chef/embedded/apps/chef/lib/chef/node.rb:229:in `method_missing'\r\n\tfrom (irb):1\r\n\tfrom /opt/chef/embedded/apps/chef/lib/chef/shell.rb:76:in `block in start'\r\n\tfrom /opt/chef/embedded/apps/chef/lib/chef/shell.rb:75:in `catch'\r\n\tfrom /opt/chef/embedded/apps/chef/lib/chef/shell.rb:75:in `start'\r\n\tfrom /opt/chef/embedded/apps/chef/bin/chef-shell:37:in `<top (required)>'\r\n\tfrom /usr/bin/chef-shell:51:in `load'\r\n\tfrom /usr/bin/chef-shell:51:in `<main>'\r\nchef > `hostname -f`\r\nhostname: Name or service not known\r\n => \"\" \r\n```\r\n\r\nIn my experience you must set an FQDN before you can reconfigure successfully. "}}