BUG #17992: Followed instructions to setup Postgresql but systemctl restart postgresql-15.service

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: salam(at)salam(dot)hd(dot)free(dot)fr
Subject: BUG #17992: Followed instructions to setup Postgresql but systemctl restart postgresql-15.service
Date: 2023-06-23 08:27:06
Message-ID: 17992-84623cdea9e409fe@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 17992
Logged by: Salam Elias
Email address: salam(at)salam(dot)hd(dot)free(dot)fr
PostgreSQL version: 15.0
Operating system: Centos 7
Description:

I followed instructions as follows to setup postgres
Sudo yum -y install
https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
981 yum list postgresql*
982 sudo yum list postgresql*
983 sudo yum install -y postgresql15-server postgresql15-contrib
984 sudo /usr/pgsql-15/bin/postgresql-15-setup initdb
status OK

but when I run
sudo systemctl start postgresql-15

I get
Job for postgresql-15.service failed because the control process exited with
error code. See "systemctl status postgresql-15.service" and "journalctl
-xe" for details.
[salam(at)pemaster ~]$ sudo systemctl restart postgresql
Failed to restart postgresql.service: Unit is not loaded properly: Invalid
argument.
See system logs and 'systemctl status postgresql.service' for details.

After googlin, I found a thread indicating that data directory should be
owned by postgres user so I did

sudo chown -R postgres:postgres /var/lib/pgsql/15/data

but it did not help. What I am missing?

After googling I tried also

Browse pgsql-bugs by date

  From Date Subject
Next Message Laurenz Albe 2023-06-23 09:37:40 Re: BUG #17991: FATAL: cannot request additional shared memory outside shmem_request_hook
Previous Message PG Bug reporting form 2023-06-22 23:17:39 BUG #17991: FATAL: cannot request additional shared memory outside shmem_request_hook