{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/14573","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/14573/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/14573/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/14573/events","html_url":"https://github.com/elastic/elasticsearch/issues/14573","id":115413338,"number":14573,"title":"elasticsearch fails to start tribe node","user":{"login":"kt97679","id":3466350,"avatar_url":"https://avatars.githubusercontent.com/u/3466350?v=3","gravatar_id":"","url":"https://api.github.com/users/kt97679","html_url":"https://github.com/kt97679","followers_url":"https://api.github.com/users/kt97679/followers","following_url":"https://api.github.com/users/kt97679/following{/other_user}","gists_url":"https://api.github.com/users/kt97679/gists{/gist_id}","starred_url":"https://api.github.com/users/kt97679/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kt97679/subscriptions","organizations_url":"https://api.github.com/users/kt97679/orgs","repos_url":"https://api.github.com/users/kt97679/repos","events_url":"https://api.github.com/users/kt97679/events{/privacy}","received_events_url":"https://api.github.com/users/kt97679/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/:Packaging","name":":Packaging","color":"009800"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/:Tribe%20Node","name":":Tribe Node","color":"009800"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/bug","name":"bug","color":"9e2c2c"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/v2.1.0","name":"v2.1.0","color":"dddddd"}],"state":"open","locked":false,"assignee":{"login":"javanna","id":832460,"avatar_url":"https://avatars.githubusercontent.com/u/832460?v=3","gravatar_id":"","url":"https://api.github.com/users/javanna","html_url":"https://github.com/javanna","followers_url":"https://api.github.com/users/javanna/followers","following_url":"https://api.github.com/users/javanna/following{/other_user}","gists_url":"https://api.github.com/users/javanna/gists{/gist_id}","starred_url":"https://api.github.com/users/javanna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javanna/subscriptions","organizations_url":"https://api.github.com/users/javanna/orgs","repos_url":"https://api.github.com/users/javanna/repos","events_url":"https://api.github.com/users/javanna/events{/privacy}","received_events_url":"https://api.github.com/users/javanna/received_events","type":"User","site_admin":false},"milestone":null,"comments":20,"created_at":"2015-11-06T01:17:02Z","updated_at":"2015-11-20T01:12:16Z","closed_at":null,"body":"Hi folks,\r\n\r\nI'm trying to start tribe node using following config:\r\n<pre>\r\ntransport.tcp.port: 9301\r\nhttp.port: 9201\r\nnetwork.host: 0.0.0.0\r\npath.data: /var/lib/elasticsearch/\r\npath.logs: /var/log/elasticsearch/\r\n\r\ntribe:\r\n    kibana:\r\n        cluster.name: logstash-kibana\r\n        discovery.zen.ping.multicast.enabled: false\r\n        discovery.zen.ping.unicast.hosts: [\"127.0.0.1\"]\r\n    els:\r\n        cluster.name: logstash-data\r\n        discovery.zen.ping.multicast.enabled: false\r\n        discovery.zen.ping.unicast.hosts: [\"10.128.69.48\", \"10.128.75.237\"]\r\n</pre>\r\nThis config resides in the file /etc/tribe-elasticseach/elasticsearch.yml. I'm starting it using following command:\r\n<pre>\r\nsudo -u elasticsearch /usr/share/elasticsearch/bin/elasticsearch -Ddefault.path.conf=/etc/tribe-elasticsearch/\r\n</pre>\r\nElasticsearch fails with following output:\r\n<pre>\r\n[2015-11-05 17:07:42,433][INFO ][node                     ] [Bucky] version[2.0.0], pid[25943], build[de54438/2015-10-22T08:09:48Z]\r\n[2015-11-05 17:07:42,434][INFO ][node                     ] [Bucky] initializing ...\r\n[2015-11-05 17:07:42,596][INFO ][plugins                  ] [Bucky] loaded [], sites []\r\nException in thread \"main\" java.security.AccessControlException: access denied (\"java.io.FilePermission\" \"/usr/share/elasticsearch/config/elasticsearch.yml\" \"read\")\r\n        at java.security.AccessControlContext.checkPermission(AccessControlContext.java:457)\r\n        at java.security.AccessController.checkPermission(AccessController.java:884)\r\n        at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)\r\n        at java.lang.SecurityManager.checkRead(SecurityManager.java:888)\r\n        at sun.nio.fs.UnixPath.checkRead(UnixPath.java:795)\r\n        at sun.nio.fs.UnixFileSystemProvider.checkAccess(UnixFileSystemProvider.java:290)\r\n        at java.nio.file.Files.exists(Files.java:2385)\r\n        at org.elasticsearch.node.internal.InternalSettingsPreparer.prepareEnvironment(InternalSettingsPreparer.java:87)\r\n        at org.elasticsearch.node.Node.<init>(Node.java:128)\r\n        at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:145)\r\n        at org.elasticsearch.tribe.TribeService.<init>(TribeService.java:136)\r\n        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\r\n        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)\r\n        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\r\n        at java.lang.reflect.Constructor.newInstance(Constructor.java:422)\r\n        at <<<guice>>>\r\n        at org.elasticsearch.node.Node.<init>(Node.java:198)\r\n        at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:145)\r\n        at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:170)\r\n        at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:270)\r\n        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)\r\n</pre>\r\nI'm not sure why it tries to access /usr/share/elasticsearch/config/elasticsearch.yml. There is no such file in the elasticsearch deb package. I created this file, but command above still fails with same output. Please advise how this can be resolved.\r\n\r\nI'm running elasticsearch 2.0.0 installed from the debian package downloaded from the official site. I'm using ubuntu 14.\r\n\r\nThanks,\r\nKirill."},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/158248822","html_url":"https://github.com/elastic/elasticsearch/issues/14573#issuecomment-158248822","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/14573","id":158248822,"user":{"login":"ppf2","id":7216393,"avatar_url":"https://avatars.githubusercontent.com/u/7216393?v=3","gravatar_id":"","url":"https://api.github.com/users/ppf2","html_url":"https://github.com/ppf2","followers_url":"https://api.github.com/users/ppf2/followers","following_url":"https://api.github.com/users/ppf2/following{/other_user}","gists_url":"https://api.github.com/users/ppf2/gists{/gist_id}","starred_url":"https://api.github.com/users/ppf2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppf2/subscriptions","organizations_url":"https://api.github.com/users/ppf2/orgs","repos_url":"https://api.github.com/users/ppf2/repos","events_url":"https://api.github.com/users/ppf2/events{/privacy}","received_events_url":"https://api.github.com/users/ppf2/received_events","type":"User","site_admin":false},"created_at":"2015-11-20T01:12:15Z","updated_at":"2015-11-20T01:12:15Z","body":"@rjernst sounds good, thx!"}}