Author Topic: Error starting postgres  (Read 26 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Error starting postgres
« on: Today at 01:38:25 PM »
I have an error starting postgres 16, alma linux 8

Failed to start postgresql.service: Unit postgresql.service is masked.

Offline
*****
Re: Error starting postgres
« Reply #1 on: Today at 01:43:28 PM »
Code: [Select]
systemctl is-masked postgresql.service
systemctl unmask postgresql.service
systemctl start postgresql.service
systemctl enable postgresql.service

Offline
*
Re: Error starting postgres
« Reply #2 on: Today at 05:55:01 PM »
Not works


[root@cwp ~]# systemctl is-masked postgresql.service
Unknown operation is-masked.
[root@cwp ~]# systemctl unmask postgresql.service
[root@cwp ~]# systemctl start postgresql.service
Failed to start postgresql.service: Unit postgresql.service is masked.
[root@cwp ~]# systemctl enable postgresql.service
Failed to enable unit: Unit file /usr/lib/systemd/system/postgresql.service is masked.
[root@cwp ~]#

Online
***
Re: Error starting postgres
« Reply #3 on: Today at 06:07:11 PM »
Show the output of:

Code: [Select]
ls -l /usr/lib/systemd/system/postgresql.service

cat /usr/lib/systemd/system/postgresql.service