If the logging_collector is enabled for vpostgres on Aria Suite Lifecycle Manager the postgres service fails to restart
Logs like the following can be seen with the command journalctl -u vpostgres | grep FATAL
:
Jan 01 00:00:00 <nodenam> postgres[<pid>] 2025-01-01 00:00:00.000 UTC [<pid>] FATAL: could not open log file "/var/log/postgres/postgresql-Mon": Permission denied
Aria Suite Lifecycle Manager 8.x
When the logging collector is enabled the postgres service will try to log to "/var/log/postgres". This directory does not exist on LCM appliance out of the box and leads to a FATAL error in the postgres service
To resolve the behavior, create the logging directory and give the postgres user permissions to write within it using the following steps:
mkdir /var/log/postgres
cd /var/log/postgres
chown -R postgres .
systemctl start vpostgres
systemctl status vpostgres