Hi, I just upgraded my first data node from 7.1.1 to 7.5.0 and the node will not start using "systemctl start elasticsearch". This is a Centos 7.0 OS.
To upgrade I stopped the node with "systemctl stop elasticsearch"
then ran rpm -U elasticsearch-7.5.0-x86_64.rpm
ouput from command:
warning: elasticsearch-7.5.0-x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID d88e42b4: NOKEY
warning: /etc/elasticsearch/jvm.options created as /etc/elasticsearch/jvm.options.rpmnew
md5sum: /etc/elasticsearch/.elasticsearch.keystore.initial_md5sum: No such file or directory
when I first attempted to start, I found this in the journalctl file:
Exception in thread "main" org.elasticsearch.bootstrap.BootstrapException: java.nio.file.AccessDeniedException: /var/run/elasticsearch
I added the directory and gave it elasticsearh owner.
2nd attempt to start failed with this error (looks like I am missing /usr/lib64/libsystemd.so.0).
fatal error in thread [main], exiting
java.lang.ExceptionInInitializerError: null
at org.elasticsearch.systemd.SystemdPlugin.sd_notify(SystemdPlugin.java:66) ~[?:?]
at org.elasticsearch.systemd.SystemdPlugin.onNodeStarted(SystemdPlugin.java:74) ~[?:?]
at java.util.ArrayList.forEach(ArrayList.java:1507) ~[?:?]
at org.elasticsearch.node.Node.start(Node.java:762) ~[elasticsearch-7.5.0.jar:7.5.0]
at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:273) ~[elasticsearch-7.5.0.jar:7.5.0]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:358) ~[elasticsearch-7.5.0.jar:7.5.0]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) ~[elasticsearch-7.5.0.jar:7.5.0]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) ~[elasticsearch-7.5.0.jar:7.5.0]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-7.5.0.jar:7.5.0]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:125) ~[elasticsearch-cli-7.5.0.jar:7.5.0]
at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-7.5.0.jar:7.5.0]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:115) ~[elasticsearch-7.5.0.jar:7.5.0]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) ~[elasticsearch-7.5.0.jar:7.5.0]
Caused by: java.security.AccessControlException: access denied ("java.io.FilePermission" "/usr/lib64/libsystemd.so.0" "read")
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472) ~[?:?]
at java.security.AccessController.checkPermission(AccessController.java:1036) ~[?:?]
at java.lang.SecurityManager.checkPermission(SecurityManager.java:408) ~[?:?]
at java.lang.SecurityManager.checkRead(SecurityManager.java:747) ~[?:?]
at java.io.File.exists(File.java:815) ~[?:?]
at com.sun.jna.NativeLibrary.findLibraryPath(NativeLibrary.java:697) ~[jna-4.5.1.jar:4.5.1 (b0)]
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:202) ~[jna-4.5.1.jar:4.5.1 (b0)]
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:427) ~[jna-4.5.1.jar:4.5.1 (b0)]
at com.sun.jna.Native.register(Native.java:1647) ~[jna-4.5.1.jar:4.5.1 (b0)]
at org.elasticsearch.systemd.Libsystemd.lambda$static$0(Libsystemd.java:34) ~[?:?]
at java.security.AccessController.doPrivileged(AccessController.java:312) ~[?:?]
at org.elasticsearch.systemd.Libsystemd.<clinit>(Libsystemd.java:33) ~[?:?]
... 13 more
Is there some software requirements I am missing from 7.1.1 to 7.5.0?