Security Server installation on RHEL 9 fails

Description

Security Server installation on RHEL 9.3 fails.

When running dnf install xroad-securityserver, during installation errors are logged, but install continues:

When installation completes, postgresql service is left in a failed state:

serverconf and messagelog databases are not configured, /etc/xroad.properties is empty and /etc/xroad/db.properties is not created and the x-road services can’t be started.

Environment

None

Root cause (migrated)

None

Implementation notes

None

Activity

Show:

Petteri Kivimäki December 16, 2024 at 10:13 AM

The postgresql service needs /var/run/postgresql folder to run. The previous version (v13.16) of postgresql-server package created the required folder when unpacking rpm, so it was available when xroad-proxy install scriptlets started to run, and they can start the postgresql service and perform the db creation, running liquibase.

But in postgresql-server v13.18 the /var/run/postgresql is not created during package installation. While yum install is running, postgresql service can't be started, it fails with the error that /var/run/postgresql is not found. The required /var/run/postgresql folder appears only when yum install completes. It gets created by the systemd-tmpfiles util.

Justas Samuolis December 13, 2024 at 12:42 PM
Edited

It was a bugfix in postgresql rpm package https://issues.redhat.com/browse/RHEL-25756

Done

Details

Assignee

Reporter

Sprint

Priority

Created December 9, 2024 at 1:05 PM
Updated February 17, 2025 at 7:03 AM
Resolved December 16, 2024 at 12:39 PM