pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: salam@salam.hd.free.fr
Subject: BUG #17992: Followed instructions to setup Postgresql but systemctl restart postgresql-15.service
Date: Fri, 23 Jun 2023 08:27:06 +0000
Message-ID: <17992-84623cdea9e409fe@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      17992
Logged by:          Salam Elias
Email address:      salam@salam.hd.free.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.rp...
  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@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



Message-ID: <17992-84623cdea9e409fe@postgresql.org>
Permalink:  ../17992-84623cdea9e409fe@postgresql.org/
Also on:    postgresql.org/message-id/17992-84623cdea9e409fe@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, salam@salam.hd.free.fr
  Subject: Re: BUG #17992: Followed instructions to setup Postgresql but systemctl restart postgresql-15.service
  In-Reply-To: <17992-84623cdea9e409fe@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox