So far so good. But when I start up the node I get errors from SSLConfigurationReloader.java:76 because it's trying to access /usr/share/elasticsearch/config/tls/ca-bundle.crt. This is an error because on my system /etc/pki/tls/certs/ca-bundle.crt is a symlink to another folder (the same with ca-bundle.trust.crt). If I change the symlinks to be a regular file then everything boots correctly.
I'm surprised by this because my configuration does not reference that file anywhere and the documentation that I could find doesn't indicate that this is a default setting. I'd prefer to not have to change configuration of my host system, is there a way to prevent X-Pack from trying to access these two files? If not, for my education, is there a configuration setting that can alter these paths or is X-Pack hardcoded to look for these paths?
o.e.p.PluginsService loaded plugin [x-pack]
o.e.b.ElasticsearchUncaughtExceptionHandler uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.security.AccessControlException: access denied ("java.io.FilePermission", "/usr/share/elasticsearch/config/tls/certs/ca-bundle.crt", "read')
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:127)
at org.elasticsearch.bootstrap.Elasticserach.execute(Elasticsearch.java:114)
...
Caused by java.security.AccessControlException: access denied ("java.io.FilePermission", "/usr/share/elasticsearch/config/tls/certs/ca-bundle.crt", "read')
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
...
at org.elasticsearch.watcher.FileWatcher$FileObserver.init(FileWatcher.java:157)
...
at org.elasticsearch.watcher.FileWatcher.doInit(FileWatcher.java:65)
at org.elasticsearch.watcher.AbstractResourceWatcher.init(AbstractResourceWatcher.java:36)
at org.elasticsearch.watcher.ResourceWatcherService.add(ResourceWatcherService.java:143)
at org.elasticsearch.xpack.ssl.SSLConfigurationReloader.lambda#startWatching#0(SSLConfigurationReloader.java:6)
at java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1853)
at org.elasticsearch.xpack.ssl.SSLConfigurationReloader.startWatching(SSLConfigurationReloader.java:65)
at org.elasticsearch.xpack.ssl.SSLConfigurationReloader.<init>(SSLConfigurationReloader.java:55)
at org.elasticsearch.xpack.XPackPlugin.createComponents(XPackPlugin.java:291)
at org.elasticsearch.node.Node.lambda$new$7(Node.java:411)
....
at org.elasticsearch.bootstrap.Elasticsearch.inig(Elasticsearch.java:123)
... 6 more
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.