I got error alert "Caused by: java.security.AccessControlException: access denied ("java.io.FilePermission" "/usr/lib64/libsystemd.so.0" "read")." when start elasticsearch.
java.lang.ExceptionInInitializerError: null
at org.elasticsearch.systemd.SystemdPlugin.sd_notify(SystemdPlugin.java:126) ~[?:?]
at org.elasticsearch.systemd.SystemdPlugin.onNodeStarted(SystemdPlugin.java:137) ~[?:?]
at java.util.ArrayList.forEach(ArrayList.java:1511) ~[?:?]
at org.elasticsearch.node.Node.start(Node.java:902) ~[elasticsearch-7.10.1.jar:7.10.1]
at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:317) ~[elasticsearch-7.10.1.jar:7.10.1]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:402) ~[elasticsearch-7.10.1.jar:7.10.1]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:170) ~[elasticsearch-7.10.1.jar:7.10.1]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:161) ~[elasticsearch-7.10.1.jar:7.10.1]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-7.10.1.jar:7.10.1]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:127) ~[elasticsearch-cli-7.10.1.jar:7.10.1]
at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-7.10.1.jar:7.10.1]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:126) ~[elasticsearch-7.10.1.jar:7.10.1]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) ~[elasticsearch-7.10.1.jar:7.10.1]
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:818) ~[?:?]
at com.sun.jna.NativeLibrary.findLibraryPath(NativeLibrary.java:725) ~[jna-5.5.0.jar:5.5.0 (b0)]
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:202) ~[jna-5.5.0.jar:5.5.0 (b0)]
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:455) ~[jna-5.5.0.jar:5.5.0 (b0)]
at com.sun.jna.Native.register(Native.java:1722) ~[jna-5.5.0.jar:5.5.0 (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
The sollution install systemd-libs
[root@localhost elasticsearch]# yum install systemd-libs
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: kartolo.sby.datautama.net.id
* extras: mirror.papua.go.id
* updates: mirror.papua.go.id
Resolving Dependencies
--> Running transaction check
---> Package systemd-libs.x86_64 0:208-20.el7 will be updated
--> Processing Dependency: systemd-libs = 208-20.el7 for package: systemd-208-20.el7.x86_64
---> Package systemd-libs.x86_64 0:219-78.el7_9.2 will be an update
--> Processing Dependency: liblz4.so.1()(64bit) for package: systemd-libs-219-78.el7_9.2.x86_64
--> Running transaction check
---> Package lz4.x86_64 0:1.8.3-1.el7 will be installed
---> Package systemd.x86_64 0:208-20.el7 will be updated
--> Processing Dependency: systemd = 208-20.el7 for package: systemd-sysv-208-20.el7.x86_64
--> Processing Dependency: systemd = 208-20.el7 for package: libgudev1-208-20.el7.x86_64
---> Package systemd.x86_64 0:219-78.el7_9.2 will be an update
--> Processing Dependency: kmod >= 18-4 for package: systemd-219-78.el7_9.2.x86_64
--> Processing Dependency: libcryptsetup.so.12(CRYPTSETUP_2.0)(64bit) for package: systemd-219-78.el7_9.2.x86_64
--> Processing Dependency: libcryptsetup.so.12()(64bit) for package: systemd-219-78.el7_9.2.x86_64
--> Running transaction check
---> Package cryptsetup-libs.x86_64 0:1.6.6-3.el7 will be updated
---> Package cryptsetup-libs.x86_64 0:2.0.3-6.el7 will be an update
--> Processing Dependency: libdevmapper.so.1.02(DM_1_02_97)(64bit) for package: cryptsetup-libs-2.0.3-6.el7.x86_64
---> Package kmod.x86_64 0:14-10.el7 will be updated
---> Package kmod.x86_64 0:20-28.el7 will be an update
---> Package libgudev1.x86_64 0:208-20.el7 will be updated
---> Package libgudev1.x86_64 0:219-78.el7_9.2 will be an update
---> Package systemd-sysv.x86_64 0:208-20.el7 will be updated
---> Package systemd-sysv.x86_64 0:219-78.el7_9.2 will be an update
--> Running transaction check
---> Package device-mapper-libs.x86_64 7:1.02.93-3.el7 will be updated
--> Processing Dependency: device-mapper-libs = 7:1.02.93-3.el7 for package: 7:device-mapper-1.02.93-3.el7.x86_64
---> Package device-mapper-libs.x86_64 7:1.02.170-6.el7_9.3 will be an update
--> Running transaction check
---> Package device-mapper.x86_64 7:1.02.93-3.el7 will be updated
--> Processing Dependency: device-mapper = 7:1.02.93-3.el7 for package: 7:device-mapper-event-1.02.93-3.el7.x86_64
---> Package device-mapper.x86_64 7:1.02.170-6.el7_9.3 will be an update
--> Running transaction check
---> Package device-mapper-event.x86_64 7:1.02.93-3.el7 will be updated
--> Processing Dependency: device-mapper-event = 7:1.02.93-3.el7 for package: 7:lvm2-libs-2.02.115-3.el7.x86_64
---> Package device-mapper-event.x86_64 7:1.02.170-6.el7_9.3 will be an update
--> Processing Dependency: device-mapper-event-libs = 7:1.02.170-6.el7_9.3 for package: 7:device-mapper-event-1.02.170-6.el7_9.3.x86_64
--> Running transaction check
---> Package device-mapper-event-libs.x86_64 7:1.02.93-3.el7 will be updated
---> Package device-mapper-event-libs.x86_64 7:1.02.170-6.el7_9.3 will be an update
---> Package lvm2-libs.x86_64 7:2.02.115-3.el7 will be updated
--> Processing Dependency: lvm2-libs = 7:2.02.115-3.el7 for package: 7:lvm2-2.02.115-3.el7.x86_64
---> Package lvm2-libs.x86_64 7:2.02.187-6.el7_9.3 will be an update
--> Running transaction check
---> Package lvm2.x86_64 7:2.02.115-3.el7 will be updated
---> Package lvm2.x86_64 7:2.02.187-6.el7_9.3 will be an update
--> Processing Dependency: device-mapper-persistent-data >= 0.7.0-0.1.rc6 for package: 7:lvm2-2.02.187-6.el7_9.3.x86_64
--> Running transaction check
---> Package device-mapper-persistent-data.x86_64 0:0.4.1-2.el7 will be updated
---> Package device-mapper-persistent-data.x86_64 0:0.8.5-3.el7_9.2 will be an update
--> Processing Conflict: systemd-219-78.el7_9.2.x86_64 conflicts initscripts < 9.49.28-1
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package initscripts.x86_64 0:9.49.24-1.el7 will be updated
---> Package initscripts.x86_64 0:9.49.53-1.el7_9.1 will be an update
--> Processing Dependency: bc for package: initscripts-9.49.53-1.el7_9.1.x86_64
--> Running transaction check
---> Package bc.x86_64 0:1.06.95-13.el7 will be installed
--> Processing Conflict: initscripts-9.49.53-1.el7_9.1.x86_64 conflicts redhat-release < 7.5-0.11
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package centos-release.x86_64 0:7-1.1503.el7.centos.2.7 will be updated
---> Package centos-release.x86_64 0:7-9.2009.1.el7.centos will be an update
--> Processing Conflict: systemd-219-78.el7_9.2.x86_64 conflicts dracut < 033-243
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package dracut.x86_64 0:033-240.el7 will be updated
--> Processing Dependency: dracut = 033-240.el7 for package: dracut-network-033-240.el7.x86_64
--> Processing Dependency: dracut = 033-240.el7 for package: dracut-config-rescue-033-240.el7.x86_64
---> Package dracut.x86_64 0:033-572.el7 will be an update
--> Running transaction check
---> Package dracut-config-rescue.x86_64 0:033-240.el7 will be updated
---> Package dracut-config-rescue.x86_64 0:033-572.el7 will be an update
---> Package dracut-network.x86_64 0:033-240.el7 will be updated
---> Package dracut-network.x86_64 0:033-572.el7 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
==================================================================================================================================
Package Arch Version Repository Size
==================================================================================================================================
Updating:
centos-release x86_64 7-9.2009.1.el7.centos updates 27 k
dracut x86_64 033-572.el7 base 329 k
initscripts x86_64 9.49.53-1.el7_9.1 updates 440 k
systemd-libs x86_64 219-78.el7_9.2 updates 418 k
Installing for dependencies:
bc x86_64 1.06.95-13.el7 base 115 k
lz4 x86_64 1.8.3-1.el7 base 85 k
Updating for dependencies:
cryptsetup-libs x86_64 2.0.3-6.el7 base 339 k
device-mapper x86_64 7:1.02.170-6.el7_9.3 updates 297 k
device-mapper-event x86_64 7:1.02.170-6.el7_9.3 updates 192 k
device-mapper-event-libs x86_64 7:1.02.170-6.el7_9.3 updates 191 k
device-mapper-libs x86_64 7:1.02.170-6.el7_9.3 updates 325 k
device-mapper-persistent-data x86_64 0.8.5-3.el7_9.2 updates 423 k
dracut-config-rescue x86_64 033-572.el7 base 61 k
dracut-network x86_64 033-572.el7 base 103 k
kmod x86_64 20-28.el7 base 123 k
libgudev1 x86_64 219-78.el7_9.2 updates 109 k
lvm2 x86_64 7:2.02.187-6.el7_9.3 updates 1.3 M
lvm2-libs x86_64 7:2.02.187-6.el7_9.3 updates 1.1 M
systemd x86_64 219-78.el7_9.2 updates 5.1 M
systemd-sysv x86_64 219-78.el7_9.2 updates 96 k
Transaction Summary
==================================================================================================================================
Install ( 2 Dependent packages)
Upgrade 4 Packages (+14 Dependent packages)
Total download size: 11 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/20): device-mapper-event-1.02.170-6.el7_9.3.x86_64.rpm | 192 kB 00:00:02
(2/20): device-mapper-event-libs-1.02.170-6.el7_9.3.x86_64.rpm | 191 kB 00:00:00
(3/20): device-mapper-1.02.170-6.el7_9.3.x86_64.rpm | 297 kB 00:00:03
(4/20): bc-1.06.95-13.el7.x86_64.rpm | 115 kB 00:00:03
(5/20): device-mapper-libs-1.02.170-6.el7_9.3.x86_64.rpm | 325 kB 00:00:01
(6/20): centos-release-7-9.2009.1.el7.centos.x86_64.rpm | 27 kB 00:00:05
(7/20): dracut-033-572.el7.x86_64.rpm | 329 kB 00:00:02
(8/20): device-mapper-persistent-data-0.8.5-3.el7_9.2.x86_64.rpm | 423 kB 00:00:02
(9/20): cryptsetup-libs-2.0.3-6.el7.x86_64.rpm | 339 kB 00:00:07
(10/20): dracut-config-rescue-033-572.el7.x86_64.rpm | 61 kB 00:00:02
(11/20): libgudev1-219-78.el7_9.2.x86_64.rpm | 109 kB 00:00:06
(12/20): dracut-network-033-572.el7.x86_64.rpm | 103 kB 00:00:07
(13/20): kmod-20-28.el7.x86_64.rpm | 123 kB 00:00:07
(14/20): lz4-1.8.3-1.el7.x86_64.rpm | 85 kB 00:00:04
(15/20): initscripts-9.49.53-1.el7_9.1.x86_64.rpm | 440 kB 00:00:13
(16/20): systemd-libs-219-78.el7_9.2.x86_64.rpm | 418 kB 00:00:03
(17/20): lvm2-libs-2.02.187-6.el7_9.3.x86_64.rpm | 1.1 MB 00:00:08
(18/20): systemd-sysv-219-78.el7_9.2.x86_64.rpm | 96 kB 00:00:01
(19/20): lvm2-2.02.187-6.el7_9.3.x86_64.rpm | 1.3 MB 00:00:21
(20/20): systemd-219-78.el7_9.2.x86_64.rpm | 5.1 MB 00:00:24
----------------------------------------------------------------------------------------------------------------------------------
Total 294 kB/s | 11 MB 00:00:38
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : centos-release-7-9.2009.1.el7.centos.x86_64 1/38
Installing : lz4-1.8.3-1.el7.x86_64 2/38
Updating : systemd-libs-219-78.el7_9.2.x86_64 3/38
Updating : kmod-20-28.el7.x86_64 4/38
Updating : dracut-033-572.el7.x86_64 5/38
Updating : cryptsetup-libs-2.0.3-6.el7.x86_64 6/38
Updating : systemd-219-78.el7_9.2.x86_64 7/38
Updating : 7:device-mapper-libs-1.02.170-6.el7_9.3.x86_64 8/38
Updating : 7:device-mapper-1.02.170-6.el7_9.3.x86_64 9/38
Updating : 7:device-mapper-event-libs-1.02.170-6.el7_9.3.x86_64 10/38
Updating : 7:device-mapper-event-1.02.170-6.el7_9.3.x86_64 11/38
Updating : 7:lvm2-libs-2.02.187-6.el7_9.3.x86_64 12/38
Updating : device-mapper-persistent-data-0.8.5-3.el7_9.2.x86_64 13/38
Installing : bc-1.06.95-13.el7.x86_64 14/38
Updating : initscripts-9.49.53-1.el7_9.1.x86_64 15/38
Updating : 7:lvm2-2.02.187-6.el7_9.3.x86_64 16/38
Created symlink from /etc/systemd/system/sysinit.target.wants/lvm2-lvmpolld.socket to /usr/lib/systemd/system/lvm2-lvmpolld.socket.
Updating : systemd-sysv-219-78.el7_9.2.x86_64 17/38
Updating : dracut-config-rescue-033-572.el7.x86_64 18/38
Updating : dracut-network-033-572.el7.x86_64 19/38
Updating : libgudev1-219-78.el7_9.2.x86_64 20/38
Cleanup : 7:lvm2-2.02.115-3.el7.x86_64 21/38
Cleanup : systemd-sysv-208-20.el7.x86_64 22/38
Cleanup : dracut-network-033-240.el7.x86_64 23/38
Cleanup : dracut-config-rescue-033-240.el7.x86_64 24/38
Cleanup : 7:lvm2-libs-2.02.115-3.el7.x86_64 25/38
Cleanup : 7:device-mapper-event-1.02.93-3.el7.x86_64 26/38
UPGRADE: Automatically re-enabling default systemd units:
brandbot.path
rhel-autorelabel.service
rhel-autorelabel-mark.service
rhel-configure.service
rhel-dmesg.service
rhel-domainname.service
rhel-import-state.service
rhel-loadmodules.service
rhel-readonly.service
Cleanup : initscripts-9.49.24-1.el7.x86_64 27/38
Cleanup : dracut-033-240.el7.x86_64 28/38
Cleanup : libgudev1-208-20.el7.x86_64 29/38
Cleanup : 7:device-mapper-event-libs-1.02.93-3.el7.x86_64 30/38
Cleanup : 7:device-mapper-1.02.93-3.el7.x86_64 31/38
Cleanup : systemd-208-20.el7.x86_64 32/38
Cleanup : cryptsetup-libs-1.6.6-3.el7.x86_64 33/38
Cleanup : 7:device-mapper-libs-1.02.93-3.el7.x86_64 34/38
Cleanup : centos-release-7-1.1503.el7.centos.2.7.x86_64 35/38
Cleanup : systemd-libs-208-20.el7.x86_64 36/38
Cleanup : kmod-14-10.el7.x86_64 37/38
Cleanup : device-mapper-persistent-data-0.4.1-2.el7.x86_64 38/38
Verifying : lz4-1.8.3-1.el7.x86_64 1/38
Verifying : 7:lvm2-2.02.187-6.el7_9.3.x86_64 2/38
Verifying : dracut-config-rescue-033-572.el7.x86_64 3/38
Verifying : dracut-033-572.el7.x86_64 4/38
Verifying : centos-release-7-9.2009.1.el7.centos.x86_64 5/38
Verifying : bc-1.06.95-13.el7.x86_64 6/38
Verifying : libgudev1-219-78.el7_9.2.x86_64 7/38
Verifying : cryptsetup-libs-2.0.3-6.el7.x86_64 8/38
Verifying : 7:device-mapper-event-libs-1.02.170-6.el7_9.3.x86_64 9/38
Verifying : initscripts-9.49.53-1.el7_9.1.x86_64 10/38
Verifying : systemd-libs-219-78.el7_9.2.x86_64 11/38
Verifying : 7:lvm2-libs-2.02.187-6.el7_9.3.x86_64 12/38
Verifying : kmod-20-28.el7.x86_64 13/38
Verifying : 7:device-mapper-1.02.170-6.el7_9.3.x86_64 14/38
Verifying : dracut-network-033-572.el7.x86_64 15/38
Verifying : 7:device-mapper-event-1.02.170-6.el7_9.3.x86_64 16/38
Verifying : 7:device-mapper-libs-1.02.170-6.el7_9.3.x86_64 17/38
Verifying : systemd-sysv-219-78.el7_9.2.x86_64 18/38
Verifying : device-mapper-persistent-data-0.8.5-3.el7_9.2.x86_64 19/38
Verifying : systemd-219-78.el7_9.2.x86_64 20/38
Verifying : 7:device-mapper-event-1.02.93-3.el7.x86_64 21/38
Verifying : 7:device-mapper-event-libs-1.02.93-3.el7.x86_64 22/38
Verifying : dracut-network-033-240.el7.x86_64 23/38
Verifying : kmod-14-10.el7.x86_64 24/38
Verifying : centos-release-7-1.1503.el7.centos.2.7.x86_64 25/38
Verifying : cryptsetup-libs-1.6.6-3.el7.x86_64 26/38
Verifying : libgudev1-208-20.el7.x86_64 27/38
Verifying : 7:lvm2-2.02.115-3.el7.x86_64 28/38
Verifying : systemd-208-20.el7.x86_64 29/38
Verifying : initscripts-9.49.24-1.el7.x86_64 30/38
Verifying : systemd-libs-208-20.el7.x86_64 31/38
Verifying : 7:device-mapper-1.02.93-3.el7.x86_64 32/38
Verifying : dracut-config-rescue-033-240.el7.x86_64 33/38
Verifying : systemd-sysv-208-20.el7.x86_64 34/38
Verifying : dracut-033-240.el7.x86_64 35/38
Verifying : 7:lvm2-libs-2.02.115-3.el7.x86_64 36/38
Verifying : 7:device-mapper-libs-1.02.93-3.el7.x86_64 37/38
Verifying : device-mapper-persistent-data-0.4.1-2.el7.x86_64 38/38
Dependency Installed:
bc.x86_64 0:1.06.95-13.el7 lz4.x86_64 0:1.8.3-1.el7
Updated:
centos-release.x86_64 0:7-9.2009.1.el7.centos dracut.x86_64 0:033-572.el7 initscripts.x86_64 0:9.49.53-1.el7_9.1
systemd-libs.x86_64 0:219-78.el7_9.2
Dependency Updated:
cryptsetup-libs.x86_64 0:2.0.3-6.el7 device-mapper.x86_64 7:1.02.170-6.el7_9.3
device-mapper-event.x86_64 7:1.02.170-6.el7_9.3 device-mapper-event-libs.x86_64 7:1.02.170-6.el7_9.3
device-mapper-libs.x86_64 7:1.02.170-6.el7_9.3 device-mapper-persistent-data.x86_64 0:0.8.5-3.el7_9.2
dracut-config-rescue.x86_64 0:033-572.el7 dracut-network.x86_64 0:033-572.el7
kmod.x86_64 0:20-28.el7 libgudev1.x86_64 0:219-78.el7_9.2
lvm2.x86_64 7:2.02.187-6.el7_9.3 lvm2-libs.x86_64 7:2.02.187-6.el7_9.3
systemd.x86_64 0:219-78.el7_9.2 systemd-sysv.x86_64 0:219-78.el7_9.2
Complete!
[root@localhost elasticsearch]#
We can start elasticsearch
[root@localhost elasticsearch]# systemctl start elasticsearch.service
[root@localhost elasticsearch]#The sollution, update the nss, curl and libcurl