Jumat, 29 Januari 2021

Minggu, 17 Januari 2021

How to install apache 2.4.46 from source on centos 7

  Tidak ada komentar

Download apache source

[root@147 ~]# wget https://github.com/apache/httpd/archive/2.4.46.tar.gz -O httpd-2.4.46.tar.gz
--2021-01-17 10:30:53--  https://github.com/apache/httpd/archive/2.4.46.tar.gz
Resolving github.com (github.com)... 13.229.188.59
Connecting to github.com (github.com)|13.229.188.59|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/apache/httpd/tar.gz/2.4.46 [following]
--2021-01-17 10:30:53--  https://codeload.github.com/apache/httpd/tar.gz/2.4.46
Resolving codeload.github.com (codeload.github.com)... 54.251.140.56
Connecting to codeload.github.com (codeload.github.com)|54.251.140.56|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘httpd-2.4.46.tar.gz’

    [         <=>                                                                             ] 12,007,558  7.02MB/s   in 1.6s

2021-01-17 10:30:55 (7.02 MB/s) - ‘httpd-2.4.46.tar.gz’ saved [12007558]

[root@147 ~]#

Download Apr

[root@147 ~]# wget https://github.com/apache/apr/archive/1.7.0.tar.gz -O apr-1.7.0.tar.gz
--2021-01-17 10:31:55--  https://github.com/apache/apr/archive/1.7.0.tar.gz
Resolving github.com (github.com)... 52.74.223.119
Connecting to github.com (github.com)|52.74.223.119|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/apache/apr/tar.gz/1.7.0 [following]
--2021-01-17 10:31:55--  https://codeload.github.com/apache/apr/tar.gz/1.7.0
Resolving codeload.github.com (codeload.github.com)... 13.250.162.133
Connecting to codeload.github.com (codeload.github.com)|13.250.162.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘apr-1.7.0.tar.gz’

    [ <=>                                                                                     ] 751,416     --.-K/s   in 0.1s

2021-01-17 10:31:56 (5.48 MB/s) - ‘apr-1.7.0.tar.gz’ saved [751416]

[root@147 ~]#

Download Apr Utils

[root@147 ~]# wget https://github.com/apache/apr-util/archive/1.6.1.tar.gz -O apr-utils-1.6.1.tar.gz
--2021-01-17 10:32:33--  https://github.com/apache/apr-util/archive/1.6.1.tar.gz
Resolving github.com (github.com)... 13.229.188.59
Connecting to github.com (github.com)|13.229.188.59|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/apache/apr-util/tar.gz/1.6.1 [following]
--2021-01-17 10:32:33--  https://codeload.github.com/apache/apr-util/tar.gz/1.6.1
Resolving codeload.github.com (codeload.github.com)... 13.229.189.0
Connecting to codeload.github.com (codeload.github.com)|13.229.189.0|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘apr-utils-1.6.1.tar.gz’

    [ <=>                                                                                     ] 432,752     --.-K/s   in 0.09s

2021-01-17 10:32:34 (4.50 MB/s) - ‘apr-utils-1.6.1.tar.gz’ saved [432752]

[root@147 ~]#
Configure the apache 
[root@147 httpd-2.4.46]# ./configure --prefix=/usr/local/apache2 --enable-mpms-shared=all --with-mpm=event --enable-mods-shared=all --with-ssl=/usr/local/ssl111 --enable-ssl --with-nghttp2=/usr/local/nghttp2 --enable-http2 --with-included-apr --enable-so
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
configure:
configure: Configuring Apache Portable Runtime library...
configure:
configuring package in srclib/apr now

Fastcgi buffer will store responses up to 4K+64*4K=260K in memory.

Selasa, 05 Januari 2021

How to solved elasticsearch error Caused by: java.security.AccessControlException: access denied ("java.io.FilePermission" "/usr/lib64/libsystemd.so.0" "read")

  Tidak ada komentar

 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 

How to solved "Peer reports incompatible or unsupported protocol version."

  Tidak ada komentar

I got error alert "Peer reports incompatible or unsupported protocol version." when installing elasticsearch packages.

[root@localhost ~]# rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
curl: (35) Peer reports incompatible or unsupported protocol version.
error: https://artifacts.elastic.co/GPG-KEY-elasticsearch: import read failed(2).
[root@localhost ~]#
The sollution, update the nss, curl and libcurl 
[root@localhost ~]# yum update -y nss curl libcurl
Loaded plugins: fastestmirror
base                                                                                                       | 3.6 kB  00:00:00
extras                                                                                                     | 2.9 kB  00:00:00
updates                                                                                                    | 2.9 kB  00:00:04
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 curl.x86_64 0:7.29.0-19.el7 will be updated
---> Package curl.x86_64 0:7.29.0-59.el7_9.1 will be an update
---> Package libcurl.x86_64 0:7.29.0-19.el7 will be updated
---> Package libcurl.x86_64 0:7.29.0-59.el7_9.1 will be an update
--> Processing Dependency: nss-pem(x86-64) >= 1.0.3-5 for package: libcurl-7.29.0-59.el7_9.1.x86_64
--> Processing Dependency: libssh2(x86-64) >= 1.8.0 for package: libcurl-7.29.0-59.el7_9.1.x86_64
---> Package nss.x86_64 0:3.16.2.3-5.el7 will be updated
--> Processing Dependency: nss = 3.16.2.3-5.el7 for package: nss-sysinit-3.16.2.3-5.el7.x86_64
--> Processing Dependency: nss(x86-64) = 3.16.2.3-5.el7 for package: nss-tools-3.16.2.3-5.el7.x86_64
---> Package nss.x86_64 0:3.53.1-3.el7_9 will be an update
--> Processing Dependency: nss-util >= 3.53.1-1 for package: nss-3.53.1-3.el7_9.x86_64
--> Processing Dependency: nss-softokn(x86-64) >= 3.53.1-2 for package: nss-3.53.1-3.el7_9.x86_64
--> Processing Dependency: nspr >= 4.25.0 for package: nss-3.53.1-3.el7_9.x86_64
--> Processing Dependency: libnssutil3.so(NSSUTIL_3.39)(64bit) for package: nss-3.53.1-3.el7_9.x86_64
--> Processing Dependency: libnssutil3.so(NSSUTIL_3.38)(64bit) for package: nss-3.53.1-3.el7_9.x86_64
--> Processing Dependency: libnssutil3.so(NSSUTIL_3.31)(64bit) for package: nss-3.53.1-3.el7_9.x86_64
--> Processing Dependency: libnssutil3.so(NSSUTIL_3.24)(64bit) for package: nss-3.53.1-3.el7_9.x86_64
--> Processing Dependency: libnssutil3.so(NSSUTIL_3.21)(64bit) for package: nss-3.53.1-3.el7_9.x86_64
--> Running transaction check
---> Package libssh2.x86_64 0:1.4.3-8.el7 will be updated
---> Package libssh2.x86_64 0:1.8.0-4.el7 will be an update
---> Package nspr.x86_64 0:4.10.6-3.el7 will be updated
---> Package nspr.x86_64 0:4.25.0-2.el7_9 will be an update
---> Package nss-pem.x86_64 0:1.0.3-7.el7 will be installed
---> Package nss-softokn.x86_64 0:3.16.2.3-9.el7 will be updated
---> Package nss-softokn.x86_64 0:3.53.1-6.el7_9 will be an update
--> Processing Dependency: nss-softokn-freebl(x86-64) >= 3.53.1-6.el7_9 for package: nss-softokn-3.53.1-6.el7_9.x86_64
---> Package nss-sysinit.x86_64 0:3.16.2.3-5.el7 will be updated
---> Package nss-sysinit.x86_64 0:3.53.1-3.el7_9 will be an update
---> Package nss-tools.x86_64 0:3.16.2.3-5.el7 will be updated
---> Package nss-tools.x86_64 0:3.53.1-3.el7_9 will be an update
---> Package nss-util.x86_64 0:3.16.2.3-2.el7 will be updated
---> Package nss-util.x86_64 0:3.53.1-1.el7_9 will be an update
--> Running transaction check
---> Package nss-softokn-freebl.x86_64 0:3.16.2.3-9.el7 will be updated
---> Package nss-softokn-freebl.x86_64 0:3.53.1-6.el7_9 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================================================
 Package                             Arch                    Version                               Repository                Size
==================================================================================================================================
Updating:
 curl                                x86_64                  7.29.0-59.el7_9.1                     updates                  271 k
 libcurl                             x86_64                  7.29.0-59.el7_9.1                     updates                  223 k
 nss                                 x86_64                  3.53.1-3.el7_9                        updates                  869 k
Installing for dependencies:
 nss-pem                             x86_64                  1.0.3-7.el7                           base                      74 k
Updating for dependencies:
 libssh2                             x86_64                  1.8.0-4.el7                           base                      88 k
 nspr                                x86_64                  4.25.0-2.el7_9                        updates                  127 k
 nss-softokn                         x86_64                  3.53.1-6.el7_9                        updates                  354 k
 nss-softokn-freebl                  x86_64                  3.53.1-6.el7_9                        updates                  322 k
 nss-sysinit                         x86_64                  3.53.1-3.el7_9                        updates                   65 k
 nss-tools                           x86_64                  3.53.1-3.el7_9                        updates                  535 k
 nss-util                            x86_64                  3.53.1-1.el7_9                        updates                   79 k

Transaction Summary
==================================================================================================================================
Install             ( 1 Dependent package)
Upgrade  3 Packages (+7 Dependent packages)

Total download size: 2.9 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/11): nspr-4.25.0-2.el7_9.x86_64.rpm                                                                     | 127 kB  00:00:00
(2/11): libssh2-1.8.0-4.el7.x86_64.rpm                                                                     |  88 kB  00:00:00
(3/11): libcurl-7.29.0-59.el7_9.1.x86_64.rpm                                                               | 223 kB  00:00:01
(4/11): nss-softokn-freebl-3.53.1-6.el7_9.x86_64.rpm                                                       | 322 kB  00:00:01
(5/11): nss-softokn-3.53.1-6.el7_9.x86_64.rpm                                                              | 354 kB  00:00:01
(6/11): nss-3.53.1-3.el7_9.x86_64.rpm                                                                      | 869 kB  00:00:02
(7/11): nss-sysinit-3.53.1-3.el7_9.x86_64.rpm                                                              |  65 kB  00:00:00
(8/11): nss-util-3.53.1-1.el7_9.x86_64.rpm                                                                 |  79 kB  00:00:00
(9/11): nss-tools-3.53.1-3.el7_9.x86_64.rpm                                                                | 535 kB  00:00:00
(10/11): curl-7.29.0-59.el7_9.1.x86_64.rpm                                                                 | 271 kB  00:00:04
(11/11): nss-pem-1.0.3-7.el7.x86_64.rpm                                                                    |  74 kB  00:00:06
----------------------------------------------------------------------------------------------------------------------------------
Total                                                                                             406 kB/s | 2.9 MB  00:00:07
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : nspr-4.25.0-2.el7_9.x86_64                                                                                    1/21
  Updating   : nss-util-3.53.1-1.el7_9.x86_64                                                                                2/21
  Updating   : nss-softokn-freebl-3.53.1-6.el7_9.x86_64                                                                      3/21
  Updating   : nss-softokn-3.53.1-6.el7_9.x86_64                                                                             4/21
  Updating   : nss-sysinit-3.53.1-3.el7_9.x86_64                                                                             5/21
  Updating   : nss-3.53.1-3.el7_9.x86_64                                                                                     6/21
  Installing : nss-pem-1.0.3-7.el7.x86_64                                                                                    7/21
  Updating   : libssh2-1.8.0-4.el7.x86_64                                                                                    8/21
  Updating   : libcurl-7.29.0-59.el7_9.1.x86_64                                                                              9/21
  Updating   : curl-7.29.0-59.el7_9.1.x86_64                                                                                10/21
  Updating   : nss-tools-3.53.1-3.el7_9.x86_64                                                                              11/21
  Cleanup    : nss-tools-3.16.2.3-5.el7.x86_64                                                                              12/21
  Cleanup    : curl-7.29.0-19.el7.x86_64                                                                                    13/21
  Cleanup    : libcurl-7.29.0-19.el7.x86_64                                                                                 14/21
  Cleanup    : nss-sysinit-3.16.2.3-5.el7.x86_64                                                                            15/21
  Cleanup    : nss-3.16.2.3-5.el7.x86_64                                                                                    16/21
  Cleanup    : nss-softokn-3.16.2.3-9.el7.x86_64                                                                            17/21
  Cleanup    : nss-util-3.16.2.3-2.el7.x86_64                                                                               18/21
  Cleanup    : nspr-4.10.6-3.el7.x86_64                                                                                     19/21
  Cleanup    : nss-softokn-freebl-3.16.2.3-9.el7.x86_64                                                                     20/21
  Cleanup    : libssh2-1.4.3-8.el7.x86_64                                                                                   21/21
  Verifying  : curl-7.29.0-59.el7_9.1.x86_64                                                                                 1/21
  Verifying  : nss-pem-1.0.3-7.el7.x86_64                                                                                    2/21
  Verifying  : libssh2-1.8.0-4.el7.x86_64                                                                                    3/21
  Verifying  : nss-tools-3.53.1-3.el7_9.x86_64                                                                               4/21
  Verifying  : nss-sysinit-3.53.1-3.el7_9.x86_64                                                                             5/21
  Verifying  : nss-3.53.1-3.el7_9.x86_64                                                                                     6/21
  Verifying  : nss-softokn-freebl-3.53.1-6.el7_9.x86_64                                                                      7/21
  Verifying  : nspr-4.25.0-2.el7_9.x86_64                                                                                    8/21
  Verifying  : libcurl-7.29.0-59.el7_9.1.x86_64                                                                              9/21
  Verifying  : nss-util-3.53.1-1.el7_9.x86_64                                                                               10/21
  Verifying  : nss-softokn-3.53.1-6.el7_9.x86_64                                                                            11/21
  Verifying  : libssh2-1.4.3-8.el7.x86_64                                                                                   12/21
  Verifying  : nss-softokn-freebl-3.16.2.3-9.el7.x86_64                                                                     13/21
  Verifying  : nss-util-3.16.2.3-2.el7.x86_64                                                                               14/21
  Verifying  : nss-sysinit-3.16.2.3-5.el7.x86_64                                                                            15/21
  Verifying  : nss-tools-3.16.2.3-5.el7.x86_64                                                                              16/21
  Verifying  : nss-softokn-3.16.2.3-9.el7.x86_64                                                                            17/21
  Verifying  : curl-7.29.0-19.el7.x86_64                                                                                    18/21
  Verifying  : nss-3.16.2.3-5.el7.x86_64                                                                                    19/21
  Verifying  : nspr-4.10.6-3.el7.x86_64                                                                                     20/21
  Verifying  : libcurl-7.29.0-19.el7.x86_64                                                                                 21/21

Dependency Installed:
  nss-pem.x86_64 0:1.0.3-7.el7

Updated:
  curl.x86_64 0:7.29.0-59.el7_9.1            libcurl.x86_64 0:7.29.0-59.el7_9.1            nss.x86_64 0:3.53.1-3.el7_9

Dependency Updated:
  libssh2.x86_64 0:1.8.0-4.el7                   nspr.x86_64 0:4.25.0-2.el7_9            nss-softokn.x86_64 0:3.53.1-6.el7_9
  nss-softokn-freebl.x86_64 0:3.53.1-6.el7_9     nss-sysinit.x86_64 0:3.53.1-3.el7_9     nss-tools.x86_64 0:3.53.1-3.el7_9
  nss-util.x86_64 0:3.53.1-1.el7_9

Complete!
[root@localhost ~]#

The error solved
[root@localhost ~]# rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
[root@localhost ~]#