Skip to main content

Hi

I am installing centreon according to the instructions on oracle 8 (lxd) and I am not going to the end of the script

# curl -L -s https://raw.githubusercontent.com/centreon/centreon/21.10.x/unattended.sh | sh
2022-06-14 11:15:55+00:00 - WARN - No provided operation : default value [install] will be used
2022-06-14 11:15:55+00:00 - WARN - No topology provided : default value [central] will be used
2022-06-14 11:15:55+00:00 - WARN - No version provided : default value [21.10] will be used
2022-06-14 11:15:55+00:00 - WARN - No repository provided : default value [stable] will be used
2022-06-14 11:15:55+00:00 - INFO - Start to execute operation [install] with following configuration parameters:
2022-06-14 11:15:55+00:00 - INFO - topology : [central]
2022-06-14 11:15:55+00:00 - INFO - version : [21.10]
2022-06-14 11:15:55+00:00 - INFO - repository : [stable]
2022-06-14 11:15:55+00:00 - WARN - It will start in [5] seconds. If you don't want to wait, press any key to continue or Ctrl-C to exit

2022-06-14 11:15:55+00:00 - INFO - Check if the system OS is supported and set the environment variables
2022-06-14 11:15:55+00:00 - INFO - Your running OS is oraclelinux-release-8.6-1.0.5.el8.x86_64 (version: 8.6)
2022-06-14 11:15:55+00:00 - INFO - Setting specific part for v8 (8.6)
Error: No matching repo to modify: ol8_codeready_builder.
Last metadata expiration check: 0:11:18 ago on Tue Jun 14 11:04:38 2022.
epel-release-latest-8.noarch.rpm 46 kB/s | 23 kB 00:00
Package epel-release-8-15.el8.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
2022-06-14 11:15:57+00:00 - INFO - Remi repositories installation...
2022-06-14 11:15:57+00:00 - INFO - Remi repository seems to be already installed
Error: No matching repo to modify: powertools.
2022-06-14 11:15:57+00:00 - INFO - Installing PHP 8.0 and enable it
Error:
Problem: cannot install the best candidate for the job
- nothing provides httpd-filesystem >= 2.4.10 needed by php-fpm-8.0.20-1.el8.remi.x86_64
- nothing provides httpd-filesystem needed by php-fpm-8.0.20-1.el8.remi.x86_64
2022-06-14 11:16:21+00:00 - INFO - Installing packages dnf-plugins-core
2022-06-14 11:16:22+00:00 - INFO - Updating package gnutls
2022-06-14 11:16:23+00:00 - INFO - Following Centreon repo will be used [centreon-stable*]
2022-06-14 11:16:23+00:00 - INFO - Systemd is running
2022-06-14 11:16:23+00:00 - INFO - Set runtime SELinux mode to [disabled]
2022-06-14 11:16:23+00:00 - INFO - Centreon official repositories installation...
2022-06-14 11:16:23+00:00 - INFO - Centreon repository seems to be already installed
2022-06-14 11:16:23+00:00 - INFO - Centreon [central] installation from [centreon-stable*]
Error:
Problem: package centreon-21.10.7-1.el8.noarch requires centreon-base-config = 21.10.7-1.el8, but none of the providers can be installed
- package centreon-base-config-centreon-engine-21.10.7-1.el8.noarch requires centreon-web = 21.10.7-1.el8, but none of the providers can be installed
- cannot install the best candidate for the job
- nothing provides net-snmp needed by centreon-web-21.10.7-1.el8.noarch
- nothing provides perl-DBD-MySQL needed by centreon-web-21.10.7-1.el8.noarch
- nothing provides net-snmp-utils needed by centreon-web-21.10.7-1.el8.noarch
- nothing provides rrdtool-perl needed by centreon-web-21.10.7-1.el8.noarch
- nothing provides rrdtool needed by centreon-web-21.10.7-1.el8.noarch
- nothing provides perl-HTML-Parser needed by centreon-web-21.10.7-1.el8.noarch
- nothing provides httpd needed by centreon-web-21.10.7-1.el8.noarch
2022-06-14 11:16:46+00:00 - ERROR - Could not install Centreon (package centreon)

 

 

According to information, Oracle 8 is supported

 

 

 

Hi !

Can you retry installation with following command line please ?

sh -x unattended.sh install -t central -v 21.10 -r stable -l DEBUG  2>&1 |tee -a /tmp/unattended$(date +"%m-%d-%Y-%H%M%S").log

Then, you will have some debug in /tmp/unattendedXXX.log


[root@centreon2110 ~]# sh -x unattended.sh install -t central -v 21.10 -r stable -l DEBUG  2>&1 |tee -a /tmp/unattended$(date +"%m-%d-%Y-%H%M%S").log
+ OPTIONS=:t:v:r:l:
+ SUPPORTED_LOG_LEVEL=([debug]=0 [info]=1 [warn]=2 [error]=3)
+ declare -A SUPPORTED_LOG_LEVEL
+ SUPPORTED_TOPOLOGY=([central]=1 [poller]=1)
+ declare -A SUPPORTED_TOPOLOGY
+ SUPPORTED_VERSION=([21.10]=1)
+ declare -A SUPPORTED_VERSION
+ SUPPORTED_REPOSITORY=([testing]=1 [unstable]=1 [stable]=1)
+ declare -A SUPPORTED_REPOSITORY
+ default_timeout_in_sec=5
++ basename unattended.sh
+ script_short_name=unattended.sh
++ hostname -I
++ awk '{print $1}'
+ default_ip=10.193.12.207
+ passwords_file=/etc/centreon/generated.tobesecured
++ mktemp /tmp/generated.XXXXXXXXXXXXXX
+ tmp_passwords_file=/tmp/generated.wweUDnPhGL8Kkw
+ topology=central
+ version=21.10
+ repo=stable
+ operation=install
+ runtime_log_level=INFO
+ selinux_mode=permissive
+ wizard_autoplay=false
+ central_ip=10.193.12.207
++ genpasswd 'MariaDB user : root'
++ local _pwd
+++ date +%s%N
+++ sha256sum
+++ base64
+++ head -c 32
++ _pwd=MDRmNGMyNWU5NDBkYWFhZjZjMmE2ZDFh
++ echo 'Random password generated for user [MariaDB user : root] is [MDRmNGMyNWU5NDBkYWFhZjZjMmE2ZDFh]'
++ '[' 0 -ne 0 ']'
++ echo MDRmNGMyNWU5NDBkYWFhZjZjMmE2ZDFh
+ mariadb_root_password=MDRmNGMyNWU5NDBkYWFhZjZjMmE2ZDFh
+ '[' false == true ']'
+ CENTREON_MAJOR_VERSION=21.10
+ CENTREON_RELEASE_VERSION=21.10-2
+ PHP_BIN=/usr/bin/php
+ PHP_ETC=/etc/php.d/
+ detected_os_release=
+ detected_os_version=
+ BASE_PACKAGES=
+ CENTREON_SELINUX_PACKAGES=
+ RELEASE_RPM_URL=
+ OS_SPEC_SERVICES=
+ PKG_MGR=
+ has_systemd=
+ CENTREON_REPO=
+ CENTREON_DOC_URL=
+ '[' 0 -ne 0 ']'
+ case "$1" in
+ operation=install
+ parse_subcommand_options install -t central -v 21.10 -r stable -l DEBUG
+ local requested_topology=
+ local requested_version=
+ local requested_repo=
+ local OPTIND
+ OPTIND=2
+ getopts :t:v:r:l: opt
+ case ${opt} in
+ requested_topology=central
+ log INFO 'Requested topology : '\''central'\'''
++ date --rfc-3339=seconds
+ TIMESTAMP='2022-06-15 10:04:24+00:00'
+ [[ -z INFO ]]
+ [[ -z Requested topology : 'central' ]]
+ log_message_level=INFO
+ shift
+ log_message='Requested topology : '\''central'\'''
+ [[ -n 1 ]]
+ (( 1 < 1 ))
+ echo -e '2022-06-15 10:04:24+00:00 - INFO - Requested topology : '\''central'\'''
2022-06-15 10:04:24+00:00 - INFO - Requested topology : 'central'
+ [[ ! -n 1 ]]
+ getopts :t:v:r:l: opt
+ case ${opt} in
+ requested_version=21.10
+ log INFO 'Requested version : '\''21.10'\'''
++ date --rfc-3339=seconds
+ TIMESTAMP='2022-06-15 10:04:24+00:00'
+ [[ -z INFO ]]
+ [[ -z Requested version : '21.10' ]]
+ log_message_level=INFO
+ shift
+ log_message='Requested version : '\''21.10'\'''
+ [[ -n 1 ]]
+ (( 1 < 1 ))
+ echo -e '2022-06-15 10:04:24+00:00 - INFO - Requested version : '\''21.10'\'''
2022-06-15 10:04:24+00:00 - INFO - Requested version : '21.10'
+ [[ ! -n 1 ]]
+ getopts :t:v:r:l: opt
+ case ${opt} in
+ requested_repo=stable
+ log INFO 'Requested repository : '\''stable'\'''
++ date --rfc-3339=seconds
+ TIMESTAMP='2022-06-15 10:04:24+00:00'
+ [[ -z INFO ]]
+ [[ -z Requested repository : 'stable' ]]
+ log_message_level=INFO
+ shift
+ log_message='Requested repository : '\''stable'\'''
+ [[ -n 1 ]]
+ (( 1 < 1 ))
+ echo -e '2022-06-15 10:04:24+00:00 - INFO - Requested repository : '\''stable'\'''
2022-06-15 10:04:24+00:00 - INFO - Requested repository : 'stable'
+ set_centreon_repos stable
+ IFS=', '
+ read -r -a array_repos
+ CENTREON_REPO=
+ for _repo in "${array_repos[@]}"
+ [[ ! -n 1 ]]
+ CENTREON_REPO+='centreon-stable*'
+ '[' stable == stable ']'
+ log INFO 'Following Centreon repo will be used [centreon-stable*]'
++ date --rfc-3339=seconds
+ TIMESTAMP='2022-06-15 10:04:24+00:00'
+ [[ -z INFO ]]
+ [[ -z Following Centreon repo will be used [centreon-stable*] ]]
+ log_message_level=INFO
+ shift
+ log_message='Following Centreon repo will be used [centreon-stable*]'
+ [[ -n 1 ]]
+ (( 1 < 1 ))
+ echo -e '2022-06-15 10:04:24+00:00 - INFO - Following Centreon repo will be used [centreon-stable*]'
2022-06-15 10:04:24+00:00 - INFO - Following Centreon repo will be used [centreon-stable*]
+ getopts :t:v:r:l: opt
+ case ${opt} in
+ log_level=DEBUG
+ '[' '!' 0 ']'
+ runtime_log_level=DEBUG
+ log INFO 'Runtime log level set : DEBUG'
++ date --rfc-3339=seconds
+ TIMESTAMP='2022-06-15 10:04:24+00:00'
+ [[ -z INFO ]]
+ [[ -z Runtime log level set : DEBUG ]]
+ log_message_level=INFO
+ shift
+ log_message='Runtime log level set : DEBUG'
+ [[ -n 1 ]]
+ (( 1 < 0 ))
+ echo -e '2022-06-15 10:04:24+00:00 - INFO - Runtime log level set : DEBUG'
2022-06-15 10:04:24+00:00 - INFO - Runtime log level set : DEBUG
+ getopts :t:v:r:l: opt
+ shift 9
+ '[' -z central ']'
+ topology=central
+ '[' -z 21.10 ']'
+ version=21.10
+ '[' -z stable ']'
+ repo=stable
+ log INFO 'Start to execute operation [install] with following configuration parameters:'
++ date --rfc-3339=seconds
+ TIMESTAMP='2022-06-15 10:04:24+00:00'
+ [[ -z INFO ]]
+ [[ -z Start to execute operation [install] with following configuration parameters: ]]
+ log_message_level=INFO
+ shift
+ log_message='Start to execute operation [install] with following configuration parameters:'
+ [[ -n 1 ]]
+ (( 1 < 0 ))
+ echo -e '2022-06-15 10:04:24+00:00 - INFO - Start to execute operation [install] with following configuration parameters:'
2022-06-15 10:04:24+00:00 - INFO - Start to execute operation [install] with following configuration parameters:
+ log INFO ' topology : \t[central]'
++ date --rfc-3339=seconds
+ TIMESTAMP='2022-06-15 10:04:24+00:00'
+ [[ -z INFO ]]
+ [[ -z topology : \t[central] ]]
+ log_message_level=INFO
+ shift
+ log_message=' topology : \t[central]'
+ [[ -n 1 ]]
+ (( 1 < 0 ))
+ echo -e '2022-06-15 10:04:24+00:00 - INFO - topology : \t[central]'
2022-06-15 10:04:24+00:00 - INFO - topology : [central]
+ log INFO ' version : \t[21.10]'
++ date --rfc-3339=seconds
+ TIMESTAMP='2022-06-15 10:04:24+00:00'
+ [[ -z INFO ]]
+ [[ -z version : \t[21.10] ]]
+ log_message_level=INFO
+ shift
+ log_message=' version : \t[21.10]'
+ [[ -n 1 ]]
+ (( 1 < 0 ))
+ echo -e '2022-06-15 10:04:24+00:00 - INFO - version : \t[21.10]'
2022-06-15 10:04:24+00:00 - INFO - version : [21.10]
+ log INFO ' repository : \t[stable]'
++ date --rfc-3339=seconds
+ TIMESTAMP='2022-06-15 10:04:24+00:00'
+ [[ -z INFO ]]
+ [[ -z repository : \t[stable] ]]
+ log_message_level=INFO
+ shift
+ log_message=' repository : \t[stable]'
+ [[ -n 1 ]]
+ (( 1 < 0 ))
+ echo -e '2022-06-15 10:04:24+00:00 - INFO - repository : \t[stable]'
2022-06-15 10:04:24+00:00 - INFO - repository : [stable]
+ log WARN 'It will start in [5] seconds. If you don'\''t want to wait, press any key to continue or Ctrl-C to exit'
++ date --rfc-3339=seconds
+ TIMESTAMP='2022-06-15 10:04:24+00:00'
+ [[ -z WARN ]]
+ [[ -z It will start in [5] seconds. If you don't want to wait, press any key to continue or Ctrl-C to exit ]]
+ log_message_level=WARN
+ shift
+ log_message='It will start in [5] seconds. If you don'\''t want to wait, press any key to continue or Ctrl-C to exit'
+ [[ -n 2 ]]
+ (( 2 < 0 ))
+ echo -e '2022-06-15 10:04:24+00:00 - WARN - It will start in [5] seconds. If you don'\''t want to wait, press any key to continue or Ctrl-C to exit'
2022-06-15 10:04:24+00:00 - WARN - It will start in [5] seconds. If you don't want to wait, press any key to continue or Ctrl-C to exit
+ pause '' 5
+ local timeout=5
+ '[' -n 5 ']'
+ timeout=5
+ read -t 5 -s -n 1 -p ''
+ echo ''

+ set_required_prerequisite
+ log INFO 'Check if the system OS is supported and set the environment variables'
++ date --rfc-3339=seconds
+ TIMESTAMP='2022-06-15 10:04:29+00:00'
+ [[ -z INFO ]]
+ [[ -z Check if the system OS is supported and set the environment variables ]]
+ log_message_level=INFO
+ shift
+ log_message='Check if the system OS is supported and set the environment variables'
+ [[ -n 1 ]]
+ (( 1 < 0 ))
+ echo -e '2022-06-15 10:04:29+00:00 - INFO - Check if the system OS is supported and set the environment variables'
2022-06-15 10:04:29+00:00 - INFO - Check if the system OS is supported and set the environment variables
+ get_os_information
++ rpm -q --whatprovides /etc/redhat-release
+ detected_os_release=oraclelinux-release-8.6-1.0.5.el8.x86_64
++ echo oraclelinux-release-8.6-1.0.5.el8.x86_64
++ wc -l
+ '[' 1 -ne 1 ']'
++ rpm -q oraclelinux-release-8.6-1.0.5.el8.x86_64 --qf '%{version}'
+ detected_os_version=8.6
+ log INFO 'Your running OS is oraclelinux-release-8.6-1.0.5.el8.x86_64 (version: 8.6)'
++ date --rfc-3339=seconds
+ TIMESTAMP='2022-06-15 10:04:29+00:00'
+ [[ -z INFO ]]
+ [[ -z Your running OS is oraclelinux-release-8.6-1.0.5.el8.x86_64 (version: 8.6) ]]
+ log_message_level=INFO
+ shift
+ log_message='Your running OS is oraclelinux-release-8.6-1.0.5.el8.x86_64 (version: 8.6)'
+ [[ -n 1 ]]
+ (( 1 < 0 ))
+ echo -e '2022-06-15 10:04:29+00:00 - INFO - Your running OS is oraclelinux-release-8.6-1.0.5.el8.x86_64 (version: 8.6)'
2022-06-15 10:04:29+00:00 - INFO - Your running OS is oraclelinux-release-8.6-1.0.5.el8.x86_64 (version: 8.6)
+ case "$detected_os_version" in
+ log INFO 'Setting specific part for v8 (8.6)'
++ date --rfc-3339=seconds
+ TIMESTAMP='2022-06-15 10:04:29+00:00'
+ [[ -z INFO ]]
+ [[ -z Setting specific part for v8 (8.6) ]]
+ log_message_level=INFO
+ shift
+ log_message='Setting specific part for v8 (8.6)'
+ [[ -n 1 ]]
+ (( 1 < 0 ))
+ echo -e '2022-06-15 10:04:29+00:00 - INFO - Setting specific part for v8 (8.6)'
2022-06-15 10:04:29+00:00 - INFO - Setting specific part for v8 (8.6)
+ RELEASE_RPM_URL=http://yum.centreon.com/standard/21.10/el8/stable/noarch/RPMS/centreon-release-21.10-2.el8.noarch.rpm
+ REMI_RELEASE_RPM_URL=https://rpms.remirepo.net/enterprise/remi-release-8.rpm
+ OS_SPEC_SERVICES='php-fpm httpd'
+ PKG_MGR=dnf
+ case "$detected_os_release" in
+ BASE_PACKAGES=(dnf-plugins-core)
+ dnf config-manager --set-enabled ol8_codeready_builder
Error: No matching repo to modify: ol8_codeready_builder.
+ dnf install -y http://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
Last metadata expiration check: 22:03:39 ago on Tue Jun 14 12:00:50 2022.
epel-release-latest-8.noarch.rpm 23 kB/s | 23 kB 00:00
Package epel-release-8-15.el8.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
+ install_remi_repo
+ log INFO 'Remi repositories installation...'
++ date --rfc-3339=seconds
+ TIMESTAMP='2022-06-15 10:04:30+00:00'
+ [[ -z INFO ]]
+ [[ -z Remi repositories installation... ]]
+ log_message_level=INFO
+ shift
+ log_message='Remi repositories installation...'
+ [[ -n 1 ]]
+ (( 1 < 0 ))
+ echo -e '2022-06-15 10:04:30+00:00 - INFO - Remi repositories installation...'
2022-06-15 10:04:30+00:00 - INFO - Remi repositories installation...
+ dnf -q clean all
+ rpm -q remi-release
+ '[' 0 -ne 0 ']'
+ log INFO 'Remi repository seems to be already installed'
++ date --rfc-3339=seconds
+ TIMESTAMP='2022-06-15 10:04:31+00:00'
+ [[ -z INFO ]]
+ [[ -z Remi repository seems to be already installed ]]
+ log_message_level=INFO
+ shift
+ log_message='Remi repository seems to be already installed'
+ [[ -n 1 ]]
+ (( 1 < 0 ))
+ echo -e '2022-06-15 10:04:31+00:00 - INFO - Remi repository seems to be already installed'
2022-06-15 10:04:31+00:00 - INFO - Remi repository seems to be already installed
+ dnf config-manager --set-enabled powertools
Error: No matching repo to modify: powertools.
+ log INFO 'Installing PHP 8.0 and enable it'
++ date --rfc-3339=seconds
+ TIMESTAMP='2022-06-15 10:04:31+00:00'
+ [[ -z INFO ]]
+ [[ -z Installing PHP 8.0 and enable it ]]
+ log_message_level=INFO
+ shift
+ log_message='Installing PHP 8.0 and enable it'
+ [[ -n 1 ]]
+ (( 1 < 0 ))
+ echo -e '2022-06-15 10:04:31+00:00 - INFO - Installing PHP 8.0 and enable it'
2022-06-15 10:04:31+00:00 - INFO - Installing PHP 8.0 and enable it
+ dnf module install php:remi-8.0 -y -q
Error:
Problem: cannot install the best candidate for the job
- nothing provides httpd-filesystem >= 2.4.10 needed by php-fpm-8.0.20-1.el8.remi.x86_64
- nothing provides httpd-filesystem needed by php-fpm-8.0.20-1.el8.remi.x86_64
+ dnf module enable php:remi-8.0 -y -q
+ log INFO 'Installing packages dnf-plugins-core'
++ date --rfc-3339=seconds
+ TIMESTAMP='2022-06-15 10:04:53+00:00'
+ [[ -z INFO ]]
+ [[ -z Installing packages dnf-plugins-core ]]
+ log_message_level=INFO
+ shift
+ log_message='Installing packages dnf-plugins-core'
+ [[ -n 1 ]]
+ (( 1 < 0 ))
+ echo -e '2022-06-15 10:04:53+00:00 - INFO - Installing packages dnf-plugins-core'
2022-06-15 10:04:53+00:00 - INFO - Installing packages dnf-plugins-core
+ dnf -y -q install dnf-plugins-core
+ log INFO 'Updating package gnutls'
++ date --rfc-3339=seconds
+ TIMESTAMP='2022-06-15 10:04:54+00:00'
+ [[ -z INFO ]]
+ [[ -z Updating package gnutls ]]
+ log_message_level=INFO
+ shift
+ log_message='Updating package gnutls'
+ [[ -n 1 ]]
+ (( 1 < 0 ))
+ echo -e '2022-06-15 10:04:54+00:00 - INFO - Updating package gnutls'
2022-06-15 10:04:54+00:00 - INFO - Updating package gnutls
+ dnf -y -q update gnutls
+ set_centreon_repos
+ IFS=', '
+ read -r -a array_repos
+ CENTREON_REPO=
+ for _repo in "${array_repos[@]}"
+ [[ ! -n 1 ]]
+ CENTREON_REPO+='centreon-stable*'
+ '[' stable == stable ']'
+ log INFO 'Following Centreon repo will be used [centreon-stable*]'
++ date --rfc-3339=seconds
+ TIMESTAMP='2022-06-15 10:04:54+00:00'
+ [[ -z INFO ]]
+ [[ -z Following Centreon repo will be used [centreon-stable*] ]]
+ log_message_level=INFO
+ shift
+ log_message='Following Centreon repo will be used [centreon-stable*]'
+ [[ -n 1 ]]
+ (( 1 < 0 ))
+ echo -e '2022-06-15 10:04:54+00:00 - INFO - Following Centreon repo will be used [centreon-stable*]'
2022-06-15 10:04:54+00:00 - INFO - Following Centreon repo will be used [centreon-stable*]
+ is_systemd_present
++ ps --no-headers -o comm 1
+ running_process=systemd
+ '[' systemd == systemd ']'
+ has_systemd=1
+ log INFO 'Systemd is running'
++ date --rfc-3339=seconds
+ TIMESTAMP='2022-06-15 10:04:54+00:00'
+ [[ -z INFO ]]
+ [[ -z Systemd is running ]]
+ log_message_level=INFO
+ shift
+ log_message='Systemd is running'
+ [[ -n 1 ]]
+ (( 1 < 0 ))
+ echo -e '2022-06-15 10:04:54+00:00 - INFO - Systemd is running'
2022-06-15 10:04:54+00:00 - INFO - Systemd is running
+ case $operation in
+ setup_before_installation
+ set_runtime_selinux_mode disabled
+ log INFO 'Set runtime SELinux mode to [disabled]'
++ date --rfc-3339=seconds
+ TIMESTAMP='2022-06-15 10:04:54+00:00'
+ [[ -z INFO ]]
+ [[ -z Set runtime SELinux mode to [disabled] ]]
+ log_message_level=INFO
+ shift
+ log_message='Set runtime SELinux mode to [disabled]'
+ [[ -n 1 ]]
+ (( 1 < 0 ))
+ echo -e '2022-06-15 10:04:54+00:00 - INFO - Set runtime SELinux mode to [disabled]'
2022-06-15 10:04:54+00:00 - INFO - Set runtime SELinux mode to [disabled]
++ getenforce
++ tr '[:upper:]' '[:lower:]'
+ _current_mode=disabled
+ log DEBUG 'Current SELinux mode is [disabled]'
++ date --rfc-3339=seconds
+ TIMESTAMP='2022-06-15 10:04:54+00:00'
+ [[ -z DEBUG ]]
+ [[ -z Current SELinux mode is [disabled] ]]
+ log_message_level=DEBUG
+ shift
+ log_message='Current SELinux mode is [disabled]'
+ [[ -n 0 ]]
+ (( 0 < 0 ))
+ echo -e '2022-06-15 10:04:54+00:00 - DEBUG - Current SELinux mode is [disabled]'
2022-06-15 10:04:54+00:00 - DEBUG - Current SELinux mode is [disabled]
+ shopt -s nocasematch
+ '[' disabled == disabled ']'
+ log DEBUG 'Current SELinux mode is already set as requested. Nothing to do'
++ date --rfc-3339=seconds
+ TIMESTAMP='2022-06-15 10:04:54+00:00'
+ [[ -z DEBUG ]]
+ [[ -z Current SELinux mode is already set as requested. Nothing to do ]]
+ log_message_level=DEBUG
+ shift
+ log_message='Current SELinux mode is already set as requested. Nothing to do'
+ [[ -n 0 ]]
+ (( 0 < 0 ))
+ echo -e '2022-06-15 10:04:54+00:00 - DEBUG - Current SELinux mode is already set as requested. Nothing to do'
2022-06-15 10:04:54+00:00 - DEBUG - Current SELinux mode is already set as requested. Nothing to do
+ return
+ install_centreon_repo
+ log INFO 'Centreon official repositories installation...'
++ date --rfc-3339=seconds
+ TIMESTAMP='2022-06-15 10:04:54+00:00'
+ [[ -z INFO ]]
+ [[ -z Centreon official repositories installation... ]]
+ log_message_level=INFO
+ shift
+ log_message='Centreon official repositories installation...'
+ [[ -n 1 ]]
+ (( 1 < 0 ))
+ echo -e '2022-06-15 10:04:54+00:00 - INFO - Centreon official repositories installation...'
2022-06-15 10:04:54+00:00 - INFO - Centreon official repositories installation...
+ dnf -q clean all
+ rpm -q centreon-release-21.10
+ '[' 0 -ne 0 ']'
+ log INFO 'Centreon repository seems to be already installed'
++ date --rfc-3339=seconds
+ TIMESTAMP='2022-06-15 10:04:55+00:00'
+ [[ -z INFO ]]
+ [[ -z Centreon repository seems to be already installed ]]
+ log_message_level=INFO
+ shift
+ log_message='Centreon repository seems to be already installed'
+ [[ -n 1 ]]
+ (( 1 < 0 ))
+ echo -e '2022-06-15 10:04:55+00:00 - INFO - Centreon repository seems to be already installed'
2022-06-15 10:04:55+00:00 - INFO - Centreon repository seems to be already installed
+ case $topology in
+ CENTREON_SELINUX_PACKAGES=(centreon-common-selinux centreon-web-selinux centreon-broker-selinux centreon-engine-selinux centreon-gorgoned-selinux centreon-plugins-selinux)
+ install_central
+ log INFO 'Centreon [central] installation from [centreon-stable*]'
++ date --rfc-3339=seconds
+ TIMESTAMP='2022-06-15 10:04:55+00:00'
+ [[ -z INFO ]]
+ [[ -z Centreon [central] installation from [centreon-stable*] ]]
+ log_message_level=INFO
+ shift
+ log_message='Centreon [central] installation from [centreon-stable*]'
+ [[ -n 1 ]]
+ (( 1 < 0 ))
+ echo -e '2022-06-15 10:04:55+00:00 - INFO - Centreon [central] installation from [centreon-stable*]'
2022-06-15 10:04:55+00:00 - INFO - Centreon [central] installation from [centreon-stable*]
+ dnf -q clean all '--enablerepo=*'
+ dnf -q install -y centreon '--enablerepo=centreon-stable*'
Error:
Problem: package centreon-21.10.7-1.el8.noarch requires centreon-base-config = 21.10.7-1.el8, but none of the providers can be installed
- package centreon-base-config-centreon-engine-21.10.7-1.el8.noarch requires centreon-web = 21.10.7-1.el8, but none of the providers can be installed
- cannot install the best candidate for the job
- nothing provides net-snmp needed by centreon-web-21.10.7-1.el8.noarch
- nothing provides perl-DBD-MySQL needed by centreon-web-21.10.7-1.el8.noarch
- nothing provides net-snmp-utils needed by centreon-web-21.10.7-1.el8.noarch
- nothing provides rrdtool-perl needed by centreon-web-21.10.7-1.el8.noarch
- nothing provides rrdtool needed by centreon-web-21.10.7-1.el8.noarch
- nothing provides perl-HTML-Parser needed by centreon-web-21.10.7-1.el8.noarch
- nothing provides httpd needed by centreon-web-21.10.7-1.el8.noarch
+ '[' 1 -ne 0 ']'
+ error_and_exit 'Could not install Centreon (package centreon)'
+ log ERROR 'Could not install Centreon (package centreon)'
++ date --rfc-3339=seconds
+ TIMESTAMP='2022-06-15 10:05:17+00:00'
+ [[ -z ERROR ]]
+ [[ -z Could not install Centreon (package centreon) ]]
+ log_message_level=ERROR
+ shift
+ log_message='Could not install Centreon (package centreon)'
+ [[ -n 3 ]]
+ (( 3 < 0 ))
+ echo -e '2022-06-15 10:05:17+00:00 - ERROR - Could not install Centreon (package centreon)'
2022-06-15 10:05:17+00:00 - ERROR - Could not install Centreon (package centreon)
+ exit 1

 


I don’t understand why ol8_codeready_builder and powertools repositories are not available…

 

Can you give me the result of the following commands please ? 

dnf repolist enabled
dnf repolist disabled

[root@centreon2110 ~]# dnf repolist enabled
repo id repo name
base Oracle Linux
centreon-stable Centreon open source software repository.
centreon-stable-noarch Centreon open source software repository.
epel Extra Packages for Enterprise Linux 8 - x86_64
epel-modular Extra Packages for Enterprise Linux Modular 8 - x86_64
latest Oracle Linux
remi-modular Remi's Modular repository for Enterprise Linux 8 - x86_64
remi-safe Safe Remi's RPM repository for Enterprise Linux 8 - x86_64
[root@centreon2110 ~]#

 

>root@centreon2110 ~]# dnf repolist disabled
repo id repo name
centreon-canary Centreon open source software repository. (UNSUPPORTED)
centreon-canary-noarch Centreon open source software repository. (UNSUPPORTED)
centreon-testing Centreon open source software repository. (UNSUPPORTED)
centreon-testing-noarch Centreon open source software repository. (UNSUPPORTED)
centreon-unstable Centreon open source software repository. (UNSUPPORTED)
centreon-unstable-noarch Centreon open source software repository. (UNSUPPORTED)
epel-debuginfo Extra Packages for Enterprise Linux 8 - x86_64 - Debug
epel-modular-debuginfo Extra Packages for Enterprise Linux Modular 8 - x86_64 - Debug
epel-modular-source Extra Packages for Enterprise Linux Modular 8 - x86_64 - Source
epel-source Extra Packages for Enterprise Linux 8 - x86_64 - Source
epel-testing Extra Packages for Enterprise Linux 8 - Testing - x86_64
epel-testing-debuginfo Extra Packages for Enterprise Linux 8 - Testing - x86_64 - Debug
epel-testing-modular Extra Packages for Enterprise Linux Modular 8 - Testing - x86_64
epel-testing-modular-debuginfo Extra Packages for Enterprise Linux Modular 8 - Testing - x86_64 - Debug
epel-testing-modular-source Extra Packages for Enterprise Linux Modular 8 - Testing - x86_64 - Source
epel-testing-source Extra Packages for Enterprise Linux 8 - Testing - x86_64 - Source
remi Remi's RPM repository for Enterprise Linux 8 - x86_64
remi-debuginfo Remi's RPM repository for Enterprise Linux 8 - x86_64 - debuginfo
remi-modular-debuginfo Remi's Modular repository for Enterprise Linux 8 - x86_64 - debuginfo
remi-modular-test Remi's Modular testing repository for Enterprise Linux 8 - x86_64
remi-modular-test-debuginfo Remi's Modular testing repository for Enterprise Linux 8 - x86_64 - debuginfo
remi-safe-debuginfo Remi's RPM repository for Enterprise Linux 8 - x86_64 - debuginfo
remi-test Remi's test RPM repository for Enterprise Linux 8 - x86_64
remi-test-debuginfo Remi's test RPM repository for Enterprise Linux 8 - x86_64 - debuginfo

 


this is Oracle 8 on LXD 5.2


Hi !

This seems related to this question : https://discuss.linuxcontainers.org/t/basic-repositories-are-not-included-to-oracle-linux-8/12420

Currently, I don’t know how, but you have to install base repositories to make it works. Otherwise, some packages will be missing during installation.

There is this documentation for ol6 : https://docs.oracle.com/cd/E37670_01/E41138/html/ol-downloading-yum-repo.html but there is probably the equivalent for ol8


Reply