RHEL9 installation documentation tab

Description

We should add an info tab for the following error we faced in some Rocky9/RHEL9 repos.

 

In case of an error during DB initialization:

initdb: error: invalid locale settings; check LANG and LC_* environment variables

 

Commands to resolve the issue are:

sudo rm /etc/locale.conf

sudo rm -rf /var/lib/pgsql/data/log

logout 

login

Acceptance / Success Criteria

None

Cannot finish until linked issue is finished.

Lucidchart Diagrams

Activity

Show:

Bonnie Robinson January 11, 2023 at 3:23 PM

Addressed as part of .

Alexander Chadfield January 4, 2023 at 3:48 PM

My steps to install OpenNMS on RHEL 9 with no issues:


sudo dnf install langpacks-en glibc-all-langpacks -y

sudo localectl set-locale LANG=en_US.UTF-8

sudo localectl

sudo dnf makecache

sudo dnf update -y

sudo reboot

sudo dnf info postgresql-server

sudo dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm

sudo dnf install -y postgresql14-server

sudo /usr/pgsql-14/bin/postgresql-14-setup initdb

sudo systemctl enable --now postgresql-14

sudo systemctl status postgresql-14

Benjamin Reed December 14, 2022 at 3:16 PM

FYI I linked this to so we can add PG15 to the supported database versions in the documentation.

Alexander Chadfield November 29, 2022 at 5:52 PM

  this installation is not working. It will end up with errors in DB

Caused by: org.opennms.core.schema.MigrationException: OpenNMS requires a Unicode database.  Please delete and recreate your

database and try again.

at org.opennms.core.schema.Migrator.checkUnicode(Migrator.java:587)

 

I suggest we will go with the installation of Postgres 14 instead of looking for workarounds. 

Fixed

Details

Assignee

Reporter

Components

Priority

PagerDuty

Created November 22, 2022 at 5:23 PM
Updated February 7, 2023 at 2:07 PM
Resolved January 11, 2023 at 3:24 PM
Loading...