Hi All,
I have tried to set this up but I am seeing the following error on both servers:
FATAL: could not connect to the server in non-replication mode: timeout expired
DETAIL: dsn was: connect_timeout=30 keepalives=1 keepalives_idle=20 keepalives_interval=20 keepalives_count=5 ho
st=xx.xx.xx.xx port=5432 dbname=fusionpbx fallback_application_name='bdr (6488268677696983006,1,16385,):bdrnodein
fo'
CONTEXT: SQL statement "SELECT * FROM bdr_get_remote_nodeinfo(node_local_dsn)"
PL/pgSQL function internal_begin_join(text,text,text,text) line 42 at SQL statement
SQL statement "SELECT bdr.internal_begin_join(
'bdr_group_join',
local_node_name,
CASE WHEN node_local_dsn IS NULL THEN node_external_dsn ELSE node_local_dsn END,
join_using_dsn)"\:
PL/pgSQL function bdr_group_join(text,text,text,text,integer,text[]) line 21 at PERFORM
SQL statement "SELECT bdr.bdr_group_join(
local_node_name := local_node_name,
node_external_dsn := node_external_dsn,
join_using_dsn := null,
node_local_dsn := node_local_dsn,
apply_delay := apply_delay,
replication_sets := replication_sets)"
PL/pgSQL function bdr_group_create(text,text,text,integer,text[]) line 84 at PERFORM
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
connection to server was lost
I then just see "Waiting for BDR sync" on the slave.
Any ideas?
Thanks in advance!
MrT
i followed the tutorial with two publicly available nodes. firewall is any to any between the two
deb 8 post 9.4 master scrip completed successfully but the slave gives me the waiting for BDR error like above
ERROR: No peer nodes or peer node count unknown, cannot acquire global lock
HINT: BDR is probably still starting up, wait a while
ERROR: No peer nodes or peer node count unknown, cannot acquire global lock
HINT: BDR is probably still starting up, wait a while
ERROR: This node is already a member of a BDR group
HINT: Connect to the node you wish to add and run bdr_group_join from it instead
CONTEXT: SQL statement "SELECT bdr.internal_begin_join(
'bdr_group_join',
local_node_name,
CASE WHEN node_local_dsn IS NULL THEN node_external_dsn ELSE node_local_dsn END,
join_using_dsn)"
PL/pgSQL function bdr_group_join(text,text,text,text,integer,text[]) line 21 at PERFORM
ERROR: This node is already a member of a BDR group
HINT: Connect to the node you wish to add and run bdr_group_join from it instead
CONTEXT: SQL statement "SELECT bdr.internal_begin_join(
'bdr_group_join',
local_node_name,
CASE WHEN node_local_dsn IS NULL THEN node_external_dsn ELSE node_local_dsn END,
join_using_dsn)"
PL/pgSQL function bdr_group_join(text,text,text,text,integer,text[]) line 21 at PERFORM
Waiting for BDR sync.
Waiting for BDR sync.
Waiting for BDR sync.
postregsql log shows
2017-12-07 18:11:31 GMT [1248-367] LOG: worker process: bdr db: freeswitch (PID 2286) exited with exit code 1
2017-12-07 18:11:36 GMT [1248-368] LOG: starting background worker process "bdr db: fusionpbx"
2017-12-07 18:11:36 GMT [1248-369] LOG: starting background worker process "bdr db: freeswitch"
2017-12-07 18:11:37 GMT [1248-370] LOG: registering background worker "bdr: catchup apply to 0/308EEC0"
2017-12-07 18:11:37 GMT [1248-371] LOG: starting background worker process "bdr: catchup apply to 0/308EEC0"
2017-12-07 18:11:38 GMT [1248-372] LOG: registering background worker "bdr: catchup apply to 0/3090D48"
2017-12-07 18:11:38 GMT [1248-373] LOG: starting background worker process "bdr: catchup apply to 0/3090D48"
2017-12-07 18:11:38 GMT [2314-1] [unknown]@fusionpbx ERROR: data stream ended
2017-12-07 18:11:38 GMT [1248-374] LOG: worker process: bdr: catchup apply to 0/308EEC0 (PID 2314) exited with exit code 1
2017-12-07 18:11:38 GMT [1248-375] LOG: unregistering background worker "bdr: catchup apply to 0/308EEC0"
2017-12-07 18:11:38 GMT [2315-1] [unknown]@freeswitch ERROR: data stream ended
2017-12-07 18:11:38 GMT [1248-376] LOG: worker process: bdr: catchup apply to 0/3090D48 (PID 2315) exited with exit code 1
2017-12-07 18:11:38 GMT [1248-377] LOG: unregistering background worker "bdr: catchup apply to 0/3090D48"
2017-12-07 18:11:38 GMT [2311-1] [unknown]@fusionpbx ERROR: catchup worker exited before catching up to target LSN 0/308EEC0
2017-12-07 18:11:38 GMT [1248-378] LOG: worker process: bdr db: fusionpbx (PID 2311) exited with exit code 1
2017-12-07 18:11:39 GMT [2312-1] [unknown]@freeswitch ERROR: catchup worker exited before catching up to target LSN 0/3090D48
2017-12-07 18:11:39 GMT [1248-379] LOG: worker process: bdr db: freeswitch (PID 2312) exited with exit code 1