Problem with centos 7 install

Hello,

I have some problems after elasticsearch installation on centos 7 VM.

There is the log and if you can help me to solve.

Best Regards

[root@localhost log]# sudo yum install -y elasticsearch

Modules complémentaires chargés : fastestmirror, langpacks

Loading mirror speeds from cached hostfile

https://artifacts.elastic.co/packages/7.x/centos/repodata/repomd.xml: [Errno
14] HTTPS Error 404 - Not Found

Essai d'un autre miroir.

To address this issue please refer to the below wiki article

If above article doesn't help to resolve this issue please use
https://bugs.centos.org/.

Résolution des dépendances

--> Lancement de la transaction de test

---> Le paquet elasticsearch.x86_64 0:7.10.2-1 sera installé

--> Résolution des dépendances terminée

Dépendances résolues

============================================================================

Package Architecture Version
Dépôt Taille

============================================================================

Installation :

elasticsearch x86_64 7.10.2-1
elasticsearch-7.x 304 M

Résumé de la transaction

============================================================================

Installation 1 Paquet

Taille totale des téléchargements : 304 M

Taille d'installation : 510 M

Downloading packages:

elasticsearch-7.10.2-x86_64.rp FAILED

https://artifacts.elastic.co/packages/7.x/centos/7.10.2/elasticsearch-7.10.2
-x86_64.rpm: [Errno 14] HTTPS Error 404 - Not Found

Essai d'un autre miroir.

Error downloading packages:

elasticsearch-7.10.2-1.x86_64: [Errno 256] No more mirrors to try.

[root@localhost log]# sudo kwrite /etc/yum.repos.d/elasticsearch.repo

[root@localhost log]# sudo yum install -y elasticsearch

Modules complémentaires chargés : fastestmirror, langpacks

Loading mirror speeds from cached hostfile

elasticsearch-7.x
| 1.3 kB 00:00:00

Résolution des dépendances

--> Lancement de la transaction de test

---> Le paquet elasticsearch.x86_64 0:7.10.2-1 sera installé

--> Résolution des dépendances terminée

Dépendances résolues

============================================================================

Package Architecture Version
Dépôt Taille

============================================================================

Installation :

elasticsearch x86_64 7.10.2-1
elasticsearch-7.x 304 M

Résumé de la transaction

============================================================================

Installation 1 Paquet

Taille totale des téléchargements : 304 M

Taille d'installation : 510 M

Downloading packages:

elasticsearch-7.10.2-x86_64.rpm
| 304 MB 00:01:49

Running transaction check

Running transaction test

Transaction test succeeded

Running transaction

Creating elasticsearch group...groupadd: cannot open /etc/group

OK

Creating elasticsearch user...useradd: group 'elasticsearch' does not exist

OK

Installation : elasticsearch-7.10.2-1.x86_64
1/1

warning: group elasticsearch does not exist - using root

warning: group elasticsearch does not exist - using root

warning: group elasticsearch does not exist - using root

warning: group elasticsearch does not exist - using root

warning: group elasticsearch does not exist - using root

warning: group elasticsearch does not exist - using root

warning: group elasticsearch does not exist - using root

warning: group elasticsearch does not exist - using root

warning: group elasticsearch does not exist - using root

warning: group elasticsearch does not exist - using root

warning: user elasticsearch does not exist - using root

warning: group elasticsearch does not exist - using root

warning: user elasticsearch does not exist - using root

warning: group elasticsearch does not exist - using root

NOT starting on installation, please execute the following statements to

configure elasticsearch service to start automatically using systemd

sudo systemctl daemon-reload

sudo systemctl enable elasticsearch.service

You can start elasticsearch service by executing

sudo systemctl start elasticsearch.service

Created elasticsearch keystore in /etc/elasticsearch/elasticsearch.keystore

chown: groupe incorrect: « root:elasticsearch »

Vérification : elasticsearch-7.10.2-1.x86_64
1/1

Installé :

elasticsearch.x86_64 0:7.10.2-1

Terminé !

[root@localhost log]# sudo kwrite /etc/elasticsearch/jvm.options

[root@localhost log]# sudo kwrite /etc/elasticsearch/elasticsearch.yml

[root@localhost log]# systemctl daemon-reload

[root@localhost log]# getenforce

Enforcing

[root@localhost log]# getsebool -a | grep httpd_use_nfs

httpd_use_nfs --> off

[root@localhost log]# setsebool -P httpd_use_nfs on

[root@localhost log]# getsebool -a | grep httpd_use_nfs

httpd_use_nfs --> on

[root@localhost log]# systemctl enable elasticsearch.service

Created symlink from
/etc/systemd/system/multi-user.target.wants/elasticsearch.service to
/usr/lib/systemd/system/elasticsearch.service.

[root@localhost log]# systemctl start elasticsearch.service

Job for elasticsearch.service failed because the control process exited with
error code. See "systemctl status elasticsearch.service" and "journalctl
-xe" for details.

[root@localhost log]#

[root@localhost log]#

[root@localhost log]#

[root@localhost log]#

[root@localhost log]#

[root@localhost log]#

[root@localhost log]#

[root@localhost log]#

[root@localhost log]#

[root@localhost log]#

[root@localhost log]#

[root@localhost log]#

[root@localhost log]# journalctl -xel

janv. 15 21:36:51 localhost.localdomain kernel: SELinux: 2048 avtab hash
slots, 112730 rules.

janv. 15 21:36:51 localhost.localdomain kernel: SELinux: 8 users, 14 roles,
5046 types, 316 bools, 1 sens, 1024 cats

janv. 15 21:36:51 localhost.localdomain kernel: SELinux: 130 classes,
112730 rules

janv. 15 21:36:51 localhost.localdomain kernel: SELinux: Converting 2509
SID table entries...

janv. 15 21:36:52 localhost.localdomain dbus[649]: [system] Reloaded
configuration

janv. 15 21:36:53 localhost.localdomain dbus[2438]: avc: received
policyload notice (seqno=7)

janv. 15 21:36:53 localhost.localdomain dbus[2009]: avc: received
policyload notice (seqno=7)

janv. 15 21:36:53 localhost.localdomain dbus[649]: [system] Reloaded
configuration

janv. 15 21:36:53 localhost.localdomain org.a11y.Bus[2009]: Reloaded
configuration

janv. 15 21:36:53 localhost.localdomain setsebool[8433]: The httpd_use_nfs
policy boolean was changed to on by root

janv. 15 21:37:15 localhost.localdomain polkitd[658]: Registered
Authentication Agent for unix-process:8441:790577 (system bus n

janv. 15 21:37:15 localhost.localdomain systemd[1]: Reloading.

janv. 15 21:37:15 localhost.localdomain polkitd[658]: Unregistered
Authentication Agent for unix-process:8441:790577 (system bus

janv. 15 21:37:22 localhost.localdomain polkitd[658]: Registered
Authentication Agent for unix-process:8467:791279 (system bus n

janv. 15 21:37:22 localhost.localdomain systemd[1]: Starting
Elasticsearch...

-- Subject: L'unité (unit) elasticsearch.service a commencé à démarrer

-- Defined-By: systemd

-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

--

-- L'unité (unit) elasticsearch.service a commencé à démarrer.

janv. 15 21:37:22 localhost.localdomain systemd[8474]: Failed at step USER
spawning /usr/share/elasticsearch/bin/systemd-entrypo

-- Subject: Le processus /usr/share/elasticsearch/bin/systemd-entrypoint n'a
pas pu être exécuté

-- Defined-By: systemd

-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

--

-- Le processus /usr/share/elasticsearch/bin/systemd-entrypoint n'a pas pu
être exécuté, et a donc échoué.

--

-- Le code d'erreur renvoyé est 3.

janv. 15 21:37:22 localhost.localdomain systemd[1]: elasticsearch.service:
main process exited, code=exited, status=217/USER

janv. 15 21:37:22 localhost.localdomain systemd[1]: Failed to start
Elasticsearch.

-- Subject: L'unité (unit) elasticsearch.service a échoué

-- Defined-By: systemd

-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

--

-- L'unité (unit) elasticsearch.service a échoué, avec le résultat failed.

janv. 15 21:37:22 localhost.localdomain systemd[1]: Unit
elasticsearch.service entered failed state.

janv. 15 21:37:22 localhost.localdomain systemd[1]: elasticsearch.service
failed.

janv. 15 21:37:22 localhost.localdomain polkitd[658]: Unregistered
Authentication Agent for unix-process:8467:791279 (system bus

lines 2491-2528/2528 (END)

Please format your code/logs/config using the </> button, or markdown style back ticks. It helps to make things easy to read which helps us help you :slight_smile:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.