DB Switchover using repmgr--Error - Mailing list pgsql-general

From jayakumar s
Subject DB Switchover using repmgr--Error
Date
Msg-id CAFPcKG3rETDKASy6v1r_031qqSbwnNTL2L5O52NQ5yDfx8NK5Q@mail.gmail.com
Whole thread Raw
Responses Re: DB Switchover using repmgr--Error
List pgsql-general
Hi Team,

I have tried to configure DB switch over using repmgr. Post updated repmgr file then tried to register in primary db but getting the below error.

Kindly check and let me know to fix the issue.

Error:

[postgres@post1 bin]$ ./repmgr -f /var/lib/pgsql/repmgr.conf primary register
ERROR: following errors were found in the configuration file:
  syntax error in file "/var/lib/pgsql/repmgr.conf" line 3, near token "data_directory"
  syntax error in file "/var/lib/pgsql/repmgr.conf" line 6, near token "log_file"
[postgres@post1 bin]$

Conf file:

[postgres@post1 data]$ cat /var/lib/pgsql/repmgr.conf
node_id=1
node_name=primary
conninfo='host=192.168.29.193 user=repmgr dbname=repmgr connect_timeout=2' data_directory='/application/pgsql/data' failover=automatic
promote_command='/usr/pgsql-16/bin/repmgr standby promote -f /var/lib/pgsql/repmgr.conf --log-to-file'
follow_command='/usr/pgsql-16/bin/repmgr standby follow -f /var/lib/pgsql/repmgr.conf --log-to-file --upstream-node-id=%n'
pg_bindir='/usr/pgsql-16/bin' log_file='/usr/pgsql-16/repmgr.log'
[postgres@post1 data]$

pgsql-general by date:

Previous
From: Christophe Pettus
Date:
Subject: Re: License question
Next
From: prashant sinha
Date:
Subject: Re: License question