FATAL: using recovery command file "recovery.conf" is not supported while postgresql replication

Viewed 79

I am following this tutorial to get a replication of PostgreSQL DB this is the connected Vlog. while running the following command sudo pg_ctlcluster 14 replica1 start I got this error:

Job for postgresql@14-replica1.service failed because the service did not take the steps required by its unit configuration. See "systemctl status postgresql@14-replica1.service" and "journalctl -xe" for details.

I have tried checking the logs using systemctl status postgresql@14-replica1.service

This is my log enter image description here

restore_command = 'cp /var/lib/postgresql/pg_log_archive/replica1/%f %p' 
recovery_target_timeline = 'latest'
standby_mode = 'on'
primary_conninfo = 'user=rep_user passfile=''/var/lib/postgresql/.pgpass'' host''/var/run/postgresql'' port=5432 sslmode=prefer sslcompression=1 krbsrvname=postgres target_session_attrs=any'
archive_cleanup_command = 'pg_archivecleanup /var/lib/postgresql/pg_log_archive/replica1 %r'

Here's the result of my pg_lsclusters

enter image description here

I think the issue is with the recovery.conf file

0 Answers
Related