View Issue Details

IDProjectCategoryView StatusLast Update
0000635Pgpool-IIBugpublic2020-08-20 08:57
Reporterpgdude Assigned Tot-ishii  
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionopen 
PlatformLinuxOSUbuntu OS Version20.04
Product Version4.1.2 
Summary0000635: Cannot startup standby in watchdog mode
DescriptionError message in log file is:
Aug 18 08:18:24 michaelv4 pgpool[8972]: 2020-08-18 08:18:24 pid: 8972 db: [No Connection] usr: [No Connection] FATAL: invalid watchdog configuration. other pgpools setting is not defined

This happens when I try to startup my standby in watchdog mode after I successfully started up my watchdog on the primary.

I see this branch in the source code. So how is num of watchdogs coming out as zero?

     if (pool_config->wd_nodes.num_wd == 0)
                ereport(ERROR,
                                (errmsg("invalid watchdog configuration. other pgpools setting is not defined")));
Steps To ReproduceOn the standby as root user:
systemctl start pgpool2

Then view pgpool.log file for the errors.
TagsNo tags attached.

Activities

pgdude

2020-08-18 22:39

reporter   ~0003478

I'm wondering if pgpool fails to startup the VIP if that could cause this problem?

I haven't tested the VIP logic manually on the hosts. I just defined an ip that shows up in "ip addr" command. So I wonder if the IP up and down commands are the problem, since Ubuntu 20.04 uses netplan package not the old ifupdown package. If that is the problem, you may want to make note of that in the default VIP pgpool settings for bringing the VIP up and down.

t-ishii

2020-08-18 23:09

developer   ~0003480

It is possible that there are problems in pgpool.conf. Can you share both of pgpool.conf?

pgdude

2020-08-18 23:18

reporter   ~0003481

Attached are the pgpool.conf files for the primary, michaelv3 and the standby, michaelv4.
pgpool.conf.michaelv3 (44,546 bytes)
pgpool.conf.michaelv4 (44,552 bytes)

pgdude

2020-08-19 21:23

reporter   ~0003485

Actually I cannot start up either watchdog. And the error message occurs in two places in src/watchdog/watchdog.c:

wd_check_config(void)
{
        if (pool_config->wd_nodes.num_wd == 0)
                ereport(ERROR,
                                (errmsg("invalid watchdog configuration. other pgpools setting is not defined")));


wd_cluster_initialize():

...
...
    /* initialize remote nodes */
        g_cluster.remoteNodeCount = pool_config->wd_nodes.num_wd - 1;
        if (g_cluster.remoteNodeCount == 0)
                ereport(ERROR,
                (errmsg("invalid watchdog configuration. other pgpools setting is not defined")));

pgdude

2020-08-19 23:49

reporter   ~0003486

While waiting for a response, I decided to download the source code and compile it with debug statements that I added. It became apparent that one of the "other_" parameters was not uncommented even though the other ones were:

other_pgpool_hostname0 = 'michaelv4'
other_pgpool_port0 = 5432
#other_wd_port0 = 9000

That last one, "other_wd_port0" was the culprit. Once I un-commented it, I was able to get it started.

t-ishii

2020-08-20 08:37

developer   ~0003488

Yes, you need "other_wd_port0" to be defined. So,
> That last one, "other_wd_port0" was the culprit. Once I un-commented it, I was able to get it started.
is a correct solution.

pgdude

2020-08-20 08:56

reporter   ~0003490

Please close this issue now since it was not a pgpool2 bug, but rather a configuration error on this user's part.

Issue History

Date Modified Username Field Change
2020-08-18 22:33 pgdude New Issue
2020-08-18 22:39 pgdude Note Added: 0003478
2020-08-18 23:09 t-ishii Note Added: 0003480
2020-08-18 23:09 t-ishii Assigned To => t-ishii
2020-08-18 23:09 t-ishii Status new => feedback
2020-08-18 23:18 pgdude File Added: pgpool.conf.michaelv3
2020-08-18 23:18 pgdude File Added: pgpool.conf.michaelv4
2020-08-18 23:18 pgdude Note Added: 0003481
2020-08-18 23:18 pgdude Status feedback => assigned
2020-08-19 21:23 pgdude Note Added: 0003485
2020-08-19 23:49 pgdude Note Added: 0003486
2020-08-20 08:37 t-ishii Note Added: 0003488
2020-08-20 08:37 t-ishii Status assigned => feedback
2020-08-20 08:56 pgdude Note Added: 0003490
2020-08-20 08:56 pgdude Status feedback => assigned
2020-08-20 08:57 t-ishii Status assigned => closed