It seems pcp_watchdog_info fails because:
ERROR: connection to socket "/tmp/.s.PGSQL.50001" failed with error "No such file or directory"
Fix could be trying to wait for pcp_watchdog_info available. See if this fixes the issue.
# retun 0 if quorum exists.
function quorum_exists
{
+ $PGPOOL_INSTALL_DIR/bin/pcp_watchdog_info -v -w -p $PCP_PORT >/dev/null 2>&1
+ if [ $? != 0 ];then
+ echo "pcp_watchdog_info is not still available"
+ for i in 1 2 3 4 5
+ do
+ $PGPOOL_INSTALL_DIR/bin/pcp_watchdog_info -v -w -p $PCP_PORT >/dev/null 2>&1
+ if [ $? = 0 ];then
+ break;
+ fi
+ echo "waiting for pcp_watchdog_info becomes available"
+ sleep 1
+ done
+ fi
+
$PGPOOL_INSTALL_DIR/bin/pcp_watchdog_info -v -w -p $PCP_PORT |grep QUORUM|egrep 'EXIST|EDGE'>/dev/null
}