{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/19297","repository_url":"https://api.github.com/repos/elastic/elasticsearch","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/19297/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/19297/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/19297/events","html_url":"https://github.com/elastic/elasticsearch/issues/19297","id":164267382,"number":19297,"title":"Init scripts reports \"OK\" when Elasticsearch fails to start from bad YAML","user":{"login":"martinb3","id":103033,"avatar_url":"https://avatars.githubusercontent.com/u/103033?v=3","gravatar_id":"","url":"https://api.github.com/users/martinb3","html_url":"https://github.com/martinb3","followers_url":"https://api.github.com/users/martinb3/followers","following_url":"https://api.github.com/users/martinb3/following{/other_user}","gists_url":"https://api.github.com/users/martinb3/gists{/gist_id}","starred_url":"https://api.github.com/users/martinb3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinb3/subscriptions","organizations_url":"https://api.github.com/users/martinb3/orgs","repos_url":"https://api.github.com/users/martinb3/repos","events_url":"https://api.github.com/users/martinb3/events{/privacy}","received_events_url":"https://api.github.com/users/martinb3/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-07T09:30:43Z","updated_at":"2016-07-07T13:09:43Z","closed_at":null,"body":"Hello! The Chef cookbook for Elasticsearch has received a bug report regarding the packaging of ES, specifically the init scripts and status reporting. Here's the actual report: https://github.com/elastic/cookbook-elasticsearch/issues/483\r\n\r\nIn short, the user is seeing the init script for Ubuntu 14.04 report \"OK\" when starting Elasticsearch, even though parsing of the YAML configuration file has failed. Perhaps Elasticsearch needs a 'configtest' akin to the way Apache and Nginx have implemented it, or perhaps the init script just needs improvement to catch when Elasticsearch has exited or failed to start.\r\n\r\n**Elasticsearch version**: 2.3.3\r\n**JVM version**: 1.8.0_91\r\n**OS version**: ubuntu 14.04\r\n\r\n**Steps to reproduce**:\r\n 1. Add `http.cors.allow-origin: *` to elasticsearch.yml\r\n 2. Attempt to start the service\r\n\r\n**Provide logs (if relevant)**:\r\nThe user reporting the issue found this in his logs:\r\n```\r\nException in thread \"main\" SettingsException[Failed to load settings from [elasticsearch.yml]]; nested: ScannerException[while scanning an alias\r\n in 'reader', line 41, column 25:\r\n    http.cors.allow-origin: *\r\n                            ^\r\nexpected alphabetic or numeric character, but found but found\r\n\r\n in 'reader', line 41, column 26:\r\n    http.cors.allow-origin: *\r\n                             ^\r\n];\r\nLikely root cause: while scanning an alias\r\n in 'reader', line 41, column 25:\r\n    http.cors.allow-origin: *\r\n                            ^\r\n```"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/231072500","html_url":"https://github.com/elastic/elasticsearch/issues/19297#issuecomment-231072500","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/19297","id":231072500,"user":{"login":"clintongormley","id":56599,"avatar_url":"https://avatars.githubusercontent.com/u/56599?v=3","gravatar_id":"","url":"https://api.github.com/users/clintongormley","html_url":"https://github.com/clintongormley","followers_url":"https://api.github.com/users/clintongormley/followers","following_url":"https://api.github.com/users/clintongormley/following{/other_user}","gists_url":"https://api.github.com/users/clintongormley/gists{/gist_id}","starred_url":"https://api.github.com/users/clintongormley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clintongormley/subscriptions","organizations_url":"https://api.github.com/users/clintongormley/orgs","repos_url":"https://api.github.com/users/clintongormley/repos","events_url":"https://api.github.com/users/clintongormley/events{/privacy}","received_events_url":"https://api.github.com/users/clintongormley/received_events","type":"User","site_admin":false},"created_at":"2016-07-07T13:09:42Z","updated_at":"2016-07-07T13:09:42Z","body":"I think this is a duplicate of https://github.com/elastic/elasticsearch/issues/12716 and Elasticsearch is failing to return the proper exit code because of the double daemonization"}}
{"actor":{"display_login":"clintongormley"}}