Hi, I don’t know why I can’t start my dashing-icinga2.service, I have this :
[root@PLC7Cbis dashing-icinga2]# systemctl start dashing-icinga2.service
Job for dashing-icinga2.service failed because the control process exited with error code. See "systemctl status dashing-icinga2.service" and "journalctl -xe" for details.
[root@PLC7Cbis dashing-icinga2]# systemctl status dashing-icinga2.service
● dashing-icinga2.service - Dashing-Icinga2 host/service/network monitoring system
Loaded: loaded (/usr/lib/systemd/system/dashing-icinga2.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since mar. 2022-05-24 12:17:29 CEST; 12s ago
Process: 11266 ExecStart=/usr/local/bin/puma -p 8005 --pid /var/run/puma.pid (code=exited, status=1/FAILURE)
Main PID: 11266 (code=exited, status=1/FAILURE)
mai 24 12:17:29 PLC7Cbis puma[11266]: from /usr/local/lib/ruby/gems/2.5.0/gems/puma-5.6.4/lib/puma/runner.rb:150:in `load_and_bind'
mai 24 12:17:29 PLC7Cbis puma[11266]: from /usr/local/lib/ruby/gems/2.5.0/gems/puma-5.6.4/lib/puma/single.rb:44:in `run'
mai 24 12:17:29 PLC7Cbis puma[11266]: from /usr/local/lib/ruby/gems/2.5.0/gems/puma-5.6.4/lib/puma/launcher.rb:182:in `run'
mai 24 12:17:29 PLC7Cbis puma[11266]: from /usr/local/lib/ruby/gems/2.5.0/gems/puma-5.6.4/lib/puma/cli.rb:81:in `run'
mai 24 12:17:29 PLC7Cbis puma[11266]: from /usr/local/lib/ruby/gems/2.5.0/gems/puma-5.6.4/bin/puma:10:in `<top (required)>'
mai 24 12:17:29 PLC7Cbis puma[11266]: from /usr/local/bin/puma:25:in `load'
mai 24 12:17:29 PLC7Cbis puma[11266]: from /usr/local/bin/puma:25:in `<main>'
mai 24 12:17:29 PLC7Cbis systemd[1]: Failed to start Dashing-Icinga2 host/service/network monitoring system.
mai 24 12:17:29 PLC7Cbis systemd[1]: Unit dashing-icinga2.service entered failed state.
mai 24 12:17:29 PLC7Cbis systemd[1]: dashing-icinga2.service failed.
[root@PLC7Cbis dashing-icinga2]# export PATH="/usr/local/bin:$PATH"
[root@PLC7Cbis dashing-icinga2]# puma config.ru -p 8005
Puma starting in single mode...
* Puma version: 5.6.4 (ruby 2.5.5-p157) ("Birdie's Version")
* Min threads: 0
* Max threads: 5
* Environment: development
* PID: 18754
! Unable to load application: ExecJS::RuntimeUnavailable: Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes.
Traceback (most recent call last):
31: from /usr/local/bin/puma:25:in `<main>'
30: from /usr/local/bin/puma:25:in `load'
29: from /usr/local/lib/ruby/gems/2.5.0/gems/puma-5.6.4/bin/puma:10:in `<top (required)>'
28: from /usr/local/lib/ruby/gems/2.5.0/gems/puma-5.6.4/lib/puma/cli.rb:81:in `run'
27: from /usr/local/lib/ruby/gems/2.5.0/gems/puma-5.6.4/lib/puma/launcher.rb:182:in `run'
26: from /usr/local/lib/ruby/gems/2.5.0/gems/puma-5.6.4/lib/puma/single.rb:44:in `run'
25: from /usr/local/lib/ruby/gems/2.5.0/gems/puma-5.6.4/lib/puma/runner.rb:150:in `load_and_bind'
24: from /usr/local/lib/ruby/gems/2.5.0/gems/puma-5.6.4/lib/puma/configuration.rb:270:in `app'
23: from /usr/local/lib/ruby/gems/2.5.0/gems/puma-5.6.4/lib/puma/configuration.rb:348:in `load_rackup'
22: from /usr/local/lib/ruby/gems/2.5.0/gems/rack-2.2.3/lib/rack/builder.rb:66:in `parse_file'
21: from /usr/local/lib/ruby/gems/2.5.0/gems/rack-2.2.3/lib/rack/builder.rb:105:in `load_file'
20: from /usr/local/lib/ruby/gems/2.5.0/gems/rack-2.2.3/lib/rack/builder.rb:116:in `new_from_string'
19: from /usr/local/lib/ruby/gems/2.5.0/gems/rack-2.2.3/lib/rack/builder.rb:116:in `eval'
18: from config.ru:1:in `block in <main>'
17: from /usr/local/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:37:in `require'
16: from /usr/local/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:160:in `rescue in require'
15: from /usr/local/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:160:in `require'
14: from /usr/local/lib/ruby/gems/2.5.0/gems/smashing-1.3.5/lib/dashing.rb:3:in `<top (required)>'
13: from /usr/local/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:85:in `require'
12: from /usr/local/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:85:in `require'
11: from /usr/local/lib/ruby/gems/2.5.0/gems/smashing-1.3.5/lib/dashing/app.rb:5:in `<top (required)>'
10: from /usr/local/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:85:in `require'
9: from /usr/local/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:85:in `require'
8: from /usr/local/lib/ruby/gems/2.5.0/gems/coffee-script-2.4.1/lib/coffee-script.rb:1:in `<top (required)>'
7: from /usr/local/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:85:in `require'
6: from /usr/local/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:85:in `require'
5: from /usr/local/lib/ruby/gems/2.5.0/gems/coffee-script-2.4.1/lib/coffee_script.rb:1:in `<top (required)>'
4: from /usr/local/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:85:in `require'
3: from /usr/local/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:85:in `require'
2: from /usr/local/lib/ruby/gems/2.5.0/gems/execjs-2.8.1/lib/execjs.rb:4:in `<top (required)>'
1: from /usr/local/lib/ruby/gems/2.5.0/gems/execjs-2.8.1/lib/execjs.rb:5:in `<module:ExecJS>'
/usr/local/lib/ruby/gems/2.5.0/gems/execjs-2.8.1/lib/execjs/runtimes.rb:58:in `autodetect': Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
Yesterday, I was missing nodejs but I installed it.
[root@PLC7Cbis dashing-icinga2]# yum makecache
Modules complémentaires chargés : fastestmirror, langpacks
Repository updates is listed more than once in the configuration
Loading mirror speeds from cached hostfile
base | 3.0 kB 00:00:00
centos-sclo-rh | 3.0 kB 00:00:00
centos-sclo-sclo | 3.0 kB 00:00:00
Cache des méta données créé
[root@PLC7Cbis dashing-icinga2]# yum -y install epel-release
Modules complémentaires chargés : fastestmirror, langpacks
Repository updates is listed more than once in the configuration
Loading mirror speeds from cached hostfile
Rien à faire
[root@PLC7Cbis dashing-icinga2]# yum -y install rubygems rubygem-bundler ruby-devel openssl gcc-c++ make nodejs
Modules complémentaires chargés : fastestmirror, langpacks
Repository updates is listed more than once in the configuration
Loading mirror speeds from cached hostfile
Le paquet rubygems-2.0.14.1-36.el7.noarch est déjà installé dans sa dernière version
Le paquet rubygem-bundler-1.7.8-3.el7.noarch est déjà installé dans sa dernière version
Le paquet ruby-devel-2.0.0.648-36.el7.x86_64 est déjà installé dans sa dernière version
Le paquet 1:openssl-1.0.2k-19.el7.x86_64 est déjà installé dans sa dernière version
Le paquet gcc-c++-4.8.5-44.el7.x86_64 est déjà installé dans sa dernière version
Le paquet 1:make-3.82-24.el7.x86_64 est déjà installé dans sa dernière version
Rien à faire
Looks like you’re running Ruby 2.0 which should have failed somewhere during the installation process, since
gem install bundler
which you’re required to run requires Ruby >= 2.3.
Could you give me the exact commands you executed in the process of installing dashing-icinga2? You should be able to take them from your bash_history in your/your root user’s home directory. You’re either missing a step of the installation process or your Ruby version, developer tools and depending gems are just outdated.
[root@PLC7Cbis dashing-icinga2]# yum groupinstall “Development Tools”
Modules complémentaires chargés : fastestmirror, langpacks
Repository updates is listed more than once in the configuration
Aucun fichier de groupe n’est installé.
Maybe run: yum groups mark convert (see man yum)
Loading mirror speeds from cached hostfile
Warning: group Development Tools does not exist.
Maybe run: yum groups mark install (see man yum)
Erreur : Aucun paquet disponible pour installation ou mise à jour dans les groupes demandés
[root@PLC7Cbis dashing-icinga2]# yum groups mark install “Development Tools”
Modules complémentaires chargés : fastestmirror, langpacks
Repository updates is listed more than once in the configuration
Aucun fichier de groupe n’est installé.
Maybe run: yum groups mark convert (see man yum)
Loading mirror speeds from cached hostfile
Marked install: Development Tools
[root@PLC7Cbis dashing-icinga2]# yum groups mark convert “Development Tools”
Modules complémentaires chargés : fastestmirror, langpacks
Repository updates is listed more than once in the configuration
Aucun fichier de groupe n’est installé.
Maybe run: yum groups mark convert (see man yum)
Loading mirror speeds from cached hostfile
Converted old style groups to objects.
[root@PLC7Cbis dashing-icinga2]# yum groupinstall “Development Tools”
Modules complémentaires chargés : fastestmirror, langpacks
Repository updates is listed more than once in the configuration
Aucun fichier de groupe n’est installé.
Maybe run: yum groups mark convert (see man yum)
Loading mirror speeds from cached hostfile
Warning: group Development Tools does not exist.
Maybe run: yum groups mark install (see man yum)
Erreur : Aucun paquet disponible pour installation ou mise à jour dans les groupes demandés